From 3fdb5c5bd007fba01b02227dff14068902acfe51 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 29 Apr 2024 02:41:36 +0000 Subject: [PATCH] CodeGen from PR 3323 in test-repo-billy/azure-rest-api-specs Merge d0c1285764bcd68369cbf100851d2528054bfc50 into 26ae65b7cff0082d7acce6e28ac8d6739bc19745 --- common/config/rush/pnpm-lock.yaml | 207 +- sdk/compute/arm-compute/LICENSE | 2 +- sdk/compute/arm-compute/_meta.json | 10 +- sdk/compute/arm-compute/package.json | 36 +- .../arm-compute/review/arm-compute.api.md | 335 +- .../src/computeManagementClient.ts | 55 +- sdk/compute/arm-compute/src/lroImpl.ts | 6 +- sdk/compute/arm-compute/src/models/index.ts | 1473 +- sdk/compute/arm-compute/src/models/mappers.ts | 15015 ++++++++-------- .../arm-compute/src/models/parameters.ts | 788 +- .../src/operations/availabilitySets.ts | 183 +- .../operations/capacityReservationGroups.ts | 171 +- .../src/operations/capacityReservations.ts | 249 +- .../cloudServiceOperatingSystems.ts | 121 +- .../operations/cloudServiceRoleInstances.ts | 266 +- .../src/operations/cloudServiceRoles.ts | 66 +- .../src/operations/cloudServices.ts | 502 +- .../operations/cloudServicesUpdateDomain.ts | 115 +- .../src/operations/communityGalleries.ts | 19 +- .../communityGalleryImageVersions.ts | 73 +- .../src/operations/communityGalleryImages.ts | 64 +- .../src/operations/dedicatedHostGroups.ts | 156 +- .../src/operations/dedicatedHosts.ts | 416 +- .../src/operations/diskAccesses.ts | 525 +- .../src/operations/diskEncryptionSets.ts | 290 +- .../operations/diskRestorePointOperations.ts | 171 +- .../arm-compute/src/operations/disks.ts | 294 +- .../arm-compute/src/operations/galleries.ts | 236 +- .../operations/galleryApplicationVersions.ts | 219 +- .../src/operations/galleryApplications.ts | 210 +- .../src/operations/galleryImageVersions.ts | 214 +- .../src/operations/galleryImages.ts | 210 +- .../src/operations/gallerySharingProfile.ts | 52 +- .../arm-compute/src/operations/images.ts | 238 +- .../src/operations/logAnalytics.ts | 104 +- .../arm-compute/src/operations/operations.ts | 20 +- .../operations/proximityPlacementGroups.ts | 156 +- .../src/operations/resourceSkus.ts | 32 +- .../src/operations/restorePointCollections.ts | 177 +- .../src/operations/restorePoints.ts | 117 +- .../src/operations/sharedGalleries.ts | 58 +- .../operations/sharedGalleryImageVersions.ts | 73 +- .../src/operations/sharedGalleryImages.ts | 64 +- .../arm-compute/src/operations/snapshots.ts | 298 +- .../src/operations/sshPublicKeys.ts | 177 +- .../src/operations/usageOperations.ts | 41 +- .../virtualMachineExtensionImages.ts | 74 +- .../operations/virtualMachineExtensions.ts | 178 +- .../src/operations/virtualMachineImages.ts | 138 +- .../virtualMachineImagesEdgeZone.ts | 124 +- .../operations/virtualMachineRunCommands.ts | 259 +- .../virtualMachineScaleSetExtensions.ts | 209 +- .../virtualMachineScaleSetRollingUpgrades.ts | 144 +- .../virtualMachineScaleSetVMExtensions.ts | 185 +- .../virtualMachineScaleSetVMRunCommands.ts | 217 +- .../operations/virtualMachineScaleSetVMs.ts | 868 +- .../src/operations/virtualMachineScaleSets.ts | 1061 +- .../src/operations/virtualMachineSizes.ts | 27 +- .../src/operations/virtualMachines.ts | 1067 +- .../operationsInterfaces/availabilitySets.ts | 16 +- .../capacityReservationGroups.ts | 20 +- .../capacityReservations.ts | 18 +- .../cloudServiceOperatingSystems.ts | 10 +- .../cloudServiceRoleInstances.ts | 26 +- .../operationsInterfaces/cloudServiceRoles.ts | 6 +- .../src/operationsInterfaces/cloudServices.ts | 46 +- .../cloudServicesUpdateDomain.ts | 10 +- .../communityGalleries.ts | 4 +- .../communityGalleryImageVersions.ts | 6 +- .../communityGalleryImages.ts | 6 +- .../dedicatedHostGroups.ts | 14 +- .../operationsInterfaces/dedicatedHosts.ts | 63 +- .../src/operationsInterfaces/diskAccesses.ts | 34 +- .../diskEncryptionSets.ts | 22 +- .../diskRestorePointOperations.ts | 14 +- .../src/operationsInterfaces/disks.ts | 26 +- .../src/operationsInterfaces/galleries.ts | 20 +- .../galleryApplicationVersions.ts | 18 +- .../galleryApplications.ts | 18 +- .../galleryImageVersions.ts | 18 +- .../src/operationsInterfaces/galleryImages.ts | 18 +- .../gallerySharingProfile.ts | 6 +- .../src/operationsInterfaces/images.ts | 18 +- .../src/operationsInterfaces/logAnalytics.ts | 10 +- .../src/operationsInterfaces/operations.ts | 2 +- .../proximityPlacementGroups.ts | 14 +- .../src/operationsInterfaces/resourceSkus.ts | 2 +- .../restorePointCollections.ts | 16 +- .../src/operationsInterfaces/restorePoints.ts | 12 +- .../operationsInterfaces/sharedGalleries.ts | 6 +- .../sharedGalleryImageVersions.ts | 6 +- .../sharedGalleryImages.ts | 6 +- .../src/operationsInterfaces/snapshots.ts | 28 +- .../src/operationsInterfaces/sshPublicKeys.ts | 16 +- .../operationsInterfaces/usageOperations.ts | 2 +- .../virtualMachineExtensionImages.ts | 8 +- .../virtualMachineExtensions.ts | 18 +- .../virtualMachineImages.ts | 14 +- .../virtualMachineImagesEdgeZone.ts | 12 +- .../virtualMachineRunCommands.ts | 22 +- .../virtualMachineScaleSetExtensions.ts | 18 +- .../virtualMachineScaleSetRollingUpgrades.ts | 16 +- .../virtualMachineScaleSetVMExtensions.ts | 18 +- .../virtualMachineScaleSetVMRunCommands.ts | 18 +- .../virtualMachineScaleSetVMs.ts | 129 +- .../virtualMachineScaleSets.ts | 113 +- .../virtualMachineSizes.ts | 4 +- .../operationsInterfaces/virtualMachines.ts | 120 +- sdk/compute/arm-compute/src/pagingHelper.ts | 2 +- sdk/compute/arm-compute/test/sampleTest.ts | 43 + sdk/compute/arm-compute/tsconfig.json | 10 +- 111 files changed, 16273 insertions(+), 13724 deletions(-) create mode 100644 sdk/compute/arm-compute/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 99321d0907bc..5299dda19ecd 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: @@ -1135,6 +1135,13 @@ packages: tslib: 2.6.2 dev: false + /@azure/abort-controller@2.1.2: + resolution: {integrity: sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==} + engines: {node: '>=18.0.0'} + dependencies: + tslib: 2.6.2 + dev: false + /@azure/app-configuration@1.5.0-beta.2: resolution: {integrity: sha512-FhKvFKmMhu0P57lYO4i3JN8oGyvHs+YTsdz18cmKaqYHwlHD9ITHGKX59f3hT3rWZoK02sd0OajhCGrsKOmkmQ==} engines: {node: '>=16.0.0'} @@ -1154,6 +1161,21 @@ packages: - supports-color dev: false + /@azure/arm-compute@21.6.0: + resolution: {integrity: sha512-Qk6kxoqMgzOvceUBqD1WTHrPh/iaxlTLQPp241u3iNVOE4FVSTqSzTxjG1tr/UL1rBWGvoLPZExUFddo+Qd5KQ==} + engines: {node: '>=18.0.0'} + dependencies: + '@azure/abort-controller': 1.1.0 + '@azure/core-auth': 1.7.2 + '@azure/core-client': 1.7.3 + '@azure/core-lro': 2.5.4 + '@azure/core-paging': 1.5.0 + '@azure/core-rest-pipeline': 1.15.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'} @@ -1176,6 +1198,15 @@ packages: tslib: 2.6.2 dev: false + /@azure/core-auth@1.7.2: + resolution: {integrity: sha512-Igm/S3fDYmnMq1uKS38Ae1/m37B3zigdlZw+kocwEhh5GjyKjPrXKO2J6rzpC1wAxrNil/jX9BJRqBshyjnF3g==} + engines: {node: '>=18.0.0'} + dependencies: + '@azure/abort-controller': 2.1.2 + '@azure/core-util': 1.6.1 + tslib: 2.6.2 + dev: false + /@azure/core-client@1.7.3: resolution: {integrity: sha512-kleJ1iUTxcO32Y06dH9Pfi9K4U+Tlb111WXEnbt7R/ne+NLRwppZiTGJuTD5VVoxTMK5NTbEtm5t2vcdNCFe2g==} engines: {node: '>=14.0.0'} @@ -1292,6 +1323,22 @@ packages: - supports-color dev: false + /@azure/core-rest-pipeline@1.15.2: + resolution: {integrity: sha512-BmWfpjc/QXc2ipHOh6LbUzp3ONCaa6xzIssTU0DwH9bbYNXJlGUL6tujx5TrbVd/QQknmS+vlQJGrCq2oL1gZA==} + engines: {node: '>=18.0.0'} + dependencies: + '@azure/abort-controller': 2.1.2 + '@azure/core-auth': 1.7.2 + '@azure/core-tracing': 1.0.1 + '@azure/core-util': 1.6.1 + '@azure/logger': 1.0.4 + http-proxy-agent: 7.0.0 + https-proxy-agent: 7.0.2 + tslib: 2.6.2 + transitivePeerDependencies: + - supports-color + dev: false + /@azure/core-tracing@1.0.0-preview.13: resolution: {integrity: sha512-KxDlhXyMlh2Jhj2ykX6vNEU0Vou4nHr025KoSEiz7cS3BNiHNaZcdECk/DmLkEB0as5T7b/TpRcehJ5yV6NeXQ==} engines: {node: '>=12.0.0'} @@ -1371,6 +1418,28 @@ packages: - supports-color dev: false + /@azure/identity@4.1.0: + resolution: {integrity: sha512-BhYkF8Xr2gXjyDxocm0pc9RI5J5a1jw8iW0dw6Bx95OGdYbuMyFZrrwNw4eYSqQ2BB6FZOqpJP3vjsAqRcvDhw==} + engines: {node: '>=18.0.0'} + dependencies: + '@azure/abort-controller': 1.1.0 + '@azure/core-auth': 1.7.2 + '@azure/core-client': 1.7.3 + '@azure/core-rest-pipeline': 1.15.2 + '@azure/core-tracing': 1.0.1 + '@azure/core-util': 1.6.1 + '@azure/logger': 1.0.4 + '@azure/msal-browser': 3.13.0 + '@azure/msal-node': 2.7.0 + events: 3.3.0 + jws: 4.0.0 + open: 8.4.2 + stoppable: 1.1.0 + tslib: 2.6.2 + transitivePeerDependencies: + - supports-color + dev: false + /@azure/keyvault-certificates@4.7.0: resolution: {integrity: sha512-W3v9Fj48ik2gaRiY7ra4F92hjnWM3H4oT25xy4pGl/z3zHeUB0YZTXitFiSnj4fxMTbPEx3gdmjfIjf3FIq/Yw==} engines: {node: '>=14.0.0'} @@ -1476,6 +1545,13 @@ packages: '@azure/msal-common': 13.3.1 dev: false + /@azure/msal-browser@3.13.0: + resolution: {integrity: sha512-fD906nmJei3yE7la6DZTdUtXKvpwzJURkfsiz9747Icv4pit77cegSm6prJTKLQ1fw4iiZzrrWwxnhMLrTf5gQ==} + engines: {node: '>=0.8.0'} + dependencies: + '@azure/msal-common': 14.9.0 + dev: false + /@azure/msal-browser@3.3.0: resolution: {integrity: sha512-2E9h/rvSpjLQ3kRv+4bVmsnDjMaAcw1GMc7qzEvMOlNluXCEvZHeaawnAkYaIbtkbp35gzn/0ULs3RYJXvQdQA==} engines: {node: '>=0.8.0'} @@ -1493,6 +1569,11 @@ packages: engines: {node: '>=0.8.0'} dev: false + /@azure/msal-common@14.9.0: + resolution: {integrity: sha512-yzBPRlWPnTBeixxLNI3BBIgF5/bHpbhoRVuuDBnYjCyWRavaPUsKAHUDYLqpGkBLDciA6TCc6GOxN4/S3WiSxg==} + engines: {node: '>=0.8.0'} + dev: false + /@azure/msal-common@7.6.0: resolution: {integrity: sha512-XqfbglUTVLdkHQ8F9UQJtKseRr3sSnr9ysboxtoswvaMVaEfvyLtMoHv9XdKUfOc0qKGzNgRFd9yRjIWVepl6Q==} engines: {node: '>=0.8.0'} @@ -1540,6 +1621,15 @@ packages: uuid: 8.3.2 dev: false + /@azure/msal-node@2.7.0: + resolution: {integrity: sha512-wXD8LkUvHICeSWZydqg6o8Yvv+grlBEcmLGu+QEI4FcwFendbTEZrlSygnAXXSOCVaGAirWLchca35qrgpO6Jw==} + engines: {node: '>=16'} + dependencies: + '@azure/msal-common': 14.9.0 + jsonwebtoken: 9.0.2 + uuid: 8.3.2 + dev: false + /@azure/schema-registry@1.2.0: resolution: {integrity: sha512-c0941sREjSPE6/KMVd3vrLYKwwjrKZabOP/i1YOoBS4RquFIi3aA4wUPBvsVhOs4JzN79Ztcn7/ZvO4HyzrSVQ==} engines: {node: '>=12.0.0'} @@ -3554,6 +3644,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 +4592,7 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.3.0-dev.20231030 + typescript: 5.5.0-dev.20240428 dev: false /eastasianwidth@0.2.0: @@ -9119,6 +9216,37 @@ packages: yn: 3.1.1 dev: false + /ts-node@10.9.1(@types/node@18.18.7)(typescript@5.4.5): + resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} + hasBin: true + peerDependencies: + '@swc/core': '>=1.2.50' + '@swc/wasm': '>=1.2.50' + '@types/node': '*' + typescript: '>=2.7' + peerDependenciesMeta: + '@swc/core': + optional: true + '@swc/wasm': + optional: true + dependencies: + '@cspotcode/source-map-support': 0.8.1 + '@tsconfig/node10': 1.0.9 + '@tsconfig/node12': 1.0.11 + '@tsconfig/node14': 1.0.3 + '@tsconfig/node16': 1.0.4 + '@types/node': 18.18.7 + acorn: 8.11.2 + acorn-walk: 8.3.0 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + typescript: 5.4.5 + v8-compile-cache-lib: 3.0.1 + yn: 3.1.1 + dev: false + /tsconfig-paths@3.14.2: resolution: {integrity: sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==} dependencies: @@ -9261,8 +9389,14 @@ packages: hasBin: true dev: false - /typescript@5.3.0-dev.20231030: - resolution: {integrity: sha512-azWrF0lAiu8cBHNr6yq3RDkU/DtQScvT48ea3Ngq6oXJ/GPO0n96wCFSRQA5UbZlVVf3fAAqsUfvOdohRbrPVg==} + /typescript@5.4.5: + resolution: {integrity: sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==} + engines: {node: '>=14.17'} + hasBin: true + dev: false + + /typescript@5.5.0-dev.20240428: + resolution: {integrity: sha512-CJeSji05UX6V7wZYqDivyYE2aUTjmWun7iGp8n0cQnM773e9ZboeYt6Wx14OBIhVzbwf2ot1Y5jUwTw80hStTg==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -9894,7 +10028,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 +10074,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 +10304,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 +10376,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 +10468,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 +10948,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,23 +11550,27 @@ 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-nnV2rssJdI1+vorx4uPmX4IZ885HjnIAFNM1dqC96+PzBp+w7r2RPvVVXTH9X9k7L9M9TjcLk9uewnzA8+VlNQ==, tarball: file:projects/arm-compute-1.tgz} name: '@rush-temp/arm-compute-1' version: 0.0.0 dependencies: - '@azure/identity': 3.3.2 + '@azure/core-auth': 1.7.2 + '@azure/core-rest-pipeline': 1.15.2 + '@azure/identity': 4.1.0 '@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 - mkdirp: 2.1.6 + esm: 3.2.25 + mkdirp: 3.0.1 mocha: 10.2.0 - rimraf: 3.0.2 - ts-node: 10.9.1(@types/node@18.18.7)(typescript@5.2.2) + rimraf: 5.0.5 + ts-node: 10.9.1(@types/node@18.18.7)(typescript@5.4.5) tslib: 2.6.2 - typescript: 5.2.2 + typescript: 5.4.5 uglify-js: 3.17.4 transitivePeerDependencies: - '@swc/core' @@ -11474,7 +11612,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 +11832,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 +13153,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.6.0 '@azure/identity': 3.3.2 '@microsoft/api-extractor': 7.38.0(@types/node@18.18.7) '@types/chai': 4.3.9 @@ -13963,7 +14102,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 +15384,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 +16579,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 +17742,7 @@ packages: name: '@rush-temp/dev-tool' version: 0.0.0 dependencies: - '@_ts/max': /typescript@5.2.2 + '@_ts/max': /typescript@5.4.5 '@_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 +17808,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 +18214,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 +18259,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 +18762,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 +18871,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 +18917,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 +18963,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 +19009,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 +20137,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 +20182,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 +20514,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/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..c1f7162e78e1 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,8 +1,8 @@ { - "commit": "baac183ffa684d94f697f0fc6f480e02cfb00f3d", + "commit": "adec94a7eece4f91ca08c4a42b3ccddbccd87eaa", "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.6", + "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..b54051a07b0d 100644 --- a/sdk/compute/arm-compute/package.json +++ b/sdk/compute/arm-compute/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ComputeManagementClient.", - "version": "21.2.0", + "version": "21.2.1", "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-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -29,21 +29,22 @@ "types": "./types/arm-compute.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.31.1", - "mkdirp": "^2.1.2", - "typescript": "~5.2.0", + "mkdirp": "^3.0.1", + "typescript": "~5.4.5", "uglify-js": "^3.4.9", - "rimraf": "^3.0.0", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", - "@azure/identity": "^3.3.0", + "@azure/dev-tool": "^1.0.0", + "@azure/identity": "^4.0.1", "@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": { @@ -77,8 +78,7 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", - "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", "build:test": "echo skipped", @@ -106,13 +106,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..9a9172b615dd 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 @@ -321,6 +330,7 @@ export type CapacityReservationGroupsListBySubscriptionNextResponse = CapacityRe // @public export interface CapacityReservationGroupsListBySubscriptionOptionalParams extends coreClient.OperationOptions { expand?: ExpandTypesForGetCapacityReservationGroups; + resourceIdsOnly?: ResourceIdOptionsForGetCapacityReservationGroups; } // @public @@ -337,6 +347,7 @@ export type CapacityReservationGroupsUpdateResponse = CapacityReservationGroup; export interface CapacityReservationGroupUpdate extends UpdateResource { readonly capacityReservations?: SubResourceReadOnly[]; readonly instanceView?: CapacityReservationGroupInstanceView; + sharingProfile?: ResourceSharingProfile; readonly virtualMachinesAssociated?: SubResourceReadOnly[]; } @@ -931,12 +942,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 +1011,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 +1064,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) @@ -1191,6 +1224,7 @@ export interface CreationData { imageReference?: ImageDiskReference; logicalSectorSize?: number; performancePlus?: boolean; + provisionedBandwidthCopySpeed?: ProvisionedBandwidthCopyOption; securityDataUri?: string; sourceResourceId?: string; readonly sourceUniqueId?: string; @@ -1215,6 +1249,7 @@ export interface DataDisk { lun: number; managedDisk?: ManagedDiskParameters; name?: string; + sourceResource?: ApiEntityReference; toBeDetached?: boolean; vhd?: VirtualHardDisk; writeAcceleratorEnabled?: boolean; @@ -1230,6 +1265,22 @@ export interface DataDiskImageEncryption extends DiskImageEncryption { lun: number; } +// @public +export interface DataDisksToAttach { + caching?: CachingTypes; + deleteOption?: DiskDeleteOptionTypes; + diskEncryptionSet?: DiskEncryptionSetParameters; + diskId: string; + lun?: number; + writeAcceleratorEnabled?: boolean; +} + +// @public +export interface DataDisksToDetach { + detachOption?: DiskDetachOptionTypes; + diskId: string; +} + // @public export interface DedicatedHost extends Resource { autoReplaceOnFailure?: boolean; @@ -1382,6 +1433,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 +1493,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 +2162,11 @@ export interface Encryption { type?: EncryptionType; } +// @public +export interface EncryptionIdentity { + userAssignedIdentityResourceId?: string; +} + // @public export interface EncryptionImages { dataDiskImages?: DataDiskImageEncryption[]; @@ -2126,6 +2199,11 @@ export interface EncryptionSettingsElement { // @public export type EncryptionType = string; +// @public +export interface EventGridAndResourceGraph { + enable?: boolean; +} + // @public export type ExecutionState = string; @@ -2473,6 +2551,7 @@ export interface GalleryArtifactSource { // @public export interface GalleryArtifactVersionFullSource extends GalleryArtifactVersionSource { communityGalleryImageId?: string; + virtualMachineId?: string; } // @public @@ -2636,6 +2715,7 @@ export interface GalleryImageVersion extends Resource { publishingProfile?: GalleryImageVersionPublishingProfile; readonly replicationStatus?: ReplicationStatus; safetyProfile?: GalleryImageVersionSafetyProfile; + securityProfile?: ImageVersionSecurityProfile; storageProfile?: GalleryImageVersionStorageProfile; } @@ -2720,12 +2800,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 +3058,11 @@ export interface ImageUpdate extends UpdateResource { storageProfile?: ImageStorageProfile; } +// @public +export interface ImageVersionSecurityProfile { + uefiSettings?: GalleryImageVersionUefiSettings; +} + // @public export interface InnerError { errordetail?: string; @@ -3106,7 +3198,8 @@ export enum KnownCloudServiceUpgradeMode { export enum KnownConfidentialVMEncryptionType { EncryptedVMGuestStateOnlyWithPmk = "EncryptedVMGuestStateOnlyWithPmk", EncryptedWithCmk = "EncryptedWithCmk", - EncryptedWithPmk = "EncryptedWithPmk" + EncryptedWithPmk = "EncryptedWithPmk", + NonPersistedTPM = "NonPersistedTPM" } // @public @@ -3141,6 +3234,7 @@ export enum KnownDiffDiskOptions { // @public export enum KnownDiffDiskPlacement { CacheDisk = "CacheDisk", + NvmeDisk = "NvmeDisk", ResourceDisk = "ResourceDisk" } @@ -3168,8 +3262,10 @@ export enum KnownDiskCreateOption { // @public export enum KnownDiskCreateOptionTypes { Attach = "Attach", + Copy = "Copy", Empty = "Empty", - FromImage = "FromImage" + FromImage = "FromImage", + Restore = "Restore" } // @public @@ -3202,6 +3298,7 @@ export enum KnownDiskEncryptionSetType { export enum KnownDiskSecurityTypes { ConfidentialVMDiskEncryptedWithCustomerKey = "ConfidentialVM_DiskEncryptedWithCustomerKey", ConfidentialVMDiskEncryptedWithPlatformKey = "ConfidentialVM_DiskEncryptedWithPlatformKey", + ConfidentialVMNonPersistedTPM = "ConfidentialVM_NonPersistedTPM", ConfidentialVMVmguestStateOnlyEncryptedWithPlatformKey = "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey", TrustedLaunch = "TrustedLaunch" } @@ -3385,6 +3482,12 @@ export enum KnownLinuxVMGuestPatchMode { ImageDefault = "ImageDefault" } +// @public +export enum KnownMode { + Audit = "Audit", + Enforce = "Enforce" +} + // @public export enum KnownNetworkAccessPolicy { AllowAll = "AllowAll", @@ -3492,6 +3595,12 @@ export enum KnownPrivateEndpointServiceConnectionStatus { Rejected = "Rejected" } +// @public +export enum KnownProvisionedBandwidthCopyOption { + Enhanced = "Enhanced", + None = "None" +} + // @public export enum KnownProximityPlacementGroupType { Standard = "Standard", @@ -3545,7 +3654,15 @@ export enum KnownReplicationState { // @public export enum KnownReplicationStatusTypes { - ReplicationStatus = "ReplicationStatus" + ReplicationStatus = "ReplicationStatus", + UefiSettings = "UefiSettings" +} + +// @public +export enum KnownResourceIdOptionsForGetCapacityReservationGroups { + All = "All", + CreatedInSubscription = "CreatedInSubscription", + SharedWithSubscription = "SharedWithSubscription" } // @public @@ -3568,6 +3685,7 @@ export enum KnownRestorePointExpandOptions { // @public export enum KnownSecurityEncryptionTypes { DiskWithVMGuestState = "DiskWithVMGuestState", + NonPersistedTPM = "NonPersistedTPM", VMGuestStateOnly = "VMGuestStateOnly" } @@ -3623,6 +3741,12 @@ export enum KnownSnapshotStorageAccountTypes { StandardZRS = "Standard_ZRS" } +// @public +export enum KnownSshEncryptionTypes { + Ed25519 = "Ed25519", + RSA = "RSA" +} + // @public export enum KnownStorageAccountType { PremiumLRS = "Premium_LRS", @@ -3641,6 +3765,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 +4204,9 @@ export interface ManagedDiskParameters extends SubResource { storageAccountType?: StorageAccountTypes; } +// @public +export type Mode = string; + // @public export type NetworkAccessPolicy = string; @@ -4375,6 +4515,9 @@ export interface PropertyUpdatesInProgress { // @public export type ProtocolTypes = "Http" | "Https"; +// @public +export type ProvisionedBandwidthCopyOption = string; + // @public export interface ProximityPlacementGroup extends Resource { readonly availabilitySets?: SubResourceWithColocationStatus[]; @@ -4468,6 +4611,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 +4715,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; @@ -4579,6 +4745,9 @@ export interface Resource { // @public export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | "None"; +// @public +export type ResourceIdOptionsForGetCapacityReservationGroups = string; + // @public export interface ResourceInstanceViewStatus { readonly code?: string; @@ -4594,6 +4763,11 @@ export interface ResourceRange { min?: number; } +// @public (undocumented) +export interface ResourceSharingProfile { + subscriptionIds?: SubResource[]; +} + // @public export interface ResourceSku { readonly apiVersions?: string[]; @@ -4913,6 +5087,7 @@ export interface RestorePointSourceVmosDisk { // @public export interface RestorePointSourceVMStorageProfile { dataDisks?: RestorePointSourceVMDataDisk[]; + readonly diskControllerType?: DiskControllerTypes; osDisk?: RestorePointSourceVmosDisk; } @@ -5073,6 +5248,18 @@ export interface ScaleInPolicy { rules?: VirtualMachineScaleSetScaleInRules[]; } +// @public (undocumented) +export interface ScheduledEventsAdditionalPublishingTargets { + eventGridAndResourceGraph?: EventGridAndResourceGraph; +} + +// @public +export interface ScheduledEventsPolicy { + scheduledEventsAdditionalPublishingTargets?: ScheduledEventsAdditionalPublishingTargets; + userInitiatedReboot?: UserInitiatedReboot; + userInitiatedRedeploy?: UserInitiatedRedeploy; +} + // @public (undocumented) export interface ScheduledEventsProfile { osImageNotificationProfile?: OSImageNotificationProfile; @@ -5091,6 +5278,8 @@ export interface SecurityPostureReference { // @public export interface SecurityProfile { encryptionAtHost?: boolean; + encryptionIdentity?: EncryptionIdentity; + proxyAgentSettings?: ProxyAgentSettings; securityType?: SecurityTypes; uefiSettings?: UefiSettings; } @@ -5139,6 +5328,9 @@ export type SharedGalleriesListResponse = SharedGalleryList; // @public export interface SharedGallery extends PirSharedGalleryResource { + readonly artifactTags?: { + [propertyName: string]: string; + }; } // @public @@ -5158,6 +5350,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 +5402,9 @@ export type SharedGalleryImagesListResponse = SharedGalleryImageList; // @public export interface SharedGalleryImageVersion extends PirSharedGalleryResource { + artifactTags?: { + [propertyName: string]: string; + }; endOfLifeDate?: Date; excludeFromLatest?: boolean; publishedDate?: Date; @@ -5487,6 +5685,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 +5735,7 @@ export interface SshPublicKeysDeleteOptionalParams extends coreClient.OperationO // @public export interface SshPublicKeysGenerateKeyPairOptionalParams extends coreClient.OperationOptions { + parameters?: SshGenerateKeyPairInputParameters; } // @public @@ -5657,12 +5864,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; @@ -5790,6 +6017,16 @@ export interface UserAssignedIdentitiesValue { readonly principalId?: string; } +// @public +export interface UserInitiatedReboot { + automaticallyApprove?: boolean; +} + +// @public +export interface UserInitiatedRedeploy { + automaticallyApprove?: boolean; +} + // @public export interface VaultCertificate { certificateStore?: string; @@ -5815,6 +6052,7 @@ export interface VirtualMachine extends Resource { billingProfile?: BillingProfile; capacityReservation?: CapacityReservationProfile; diagnosticsProfile?: DiagnosticsProfile; + readonly etag?: string; evictionPolicy?: VirtualMachineEvictionPolicyTypes; extendedLocation?: ExtendedLocation; extensionsTimeBudget?: string; @@ -5824,6 +6062,7 @@ export interface VirtualMachine extends Resource { identity?: VirtualMachineIdentity; readonly instanceView?: VirtualMachineInstanceView; licenseType?: string; + readonly managedBy?: string; networkProfile?: NetworkProfile; osProfile?: OSProfile; plan?: Plan; @@ -5832,6 +6071,7 @@ export interface VirtualMachine extends Resource { readonly provisioningState?: string; proximityPlacementGroup?: SubResource; readonly resources?: VirtualMachineExtension[]; + scheduledEventsPolicy?: ScheduledEventsPolicy; scheduledEventsProfile?: ScheduledEventsProfile; securityProfile?: SecurityProfile; storageProfile?: StorageProfile; @@ -6207,6 +6447,7 @@ export interface VirtualMachineInstanceView { disks?: DiskInstanceView[]; extensions?: VirtualMachineExtensionInstanceView[]; hyperVGeneration?: HyperVGenerationType; + readonly isVMInStandbyPool?: boolean; maintenanceRedeployStatus?: MaintenanceRedeployStatus; osName?: string; osVersion?: string; @@ -6450,6 +6691,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 +6743,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,7 +6775,9 @@ export interface VirtualMachineScaleSet extends Resource { priorityMixPolicy?: PriorityMixPolicy; readonly provisioningState?: string; proximityPlacementGroup?: SubResource; + resiliencyPolicy?: ResiliencyPolicy; scaleInPolicy?: ScaleInPolicy; + scheduledEventsPolicy?: ScheduledEventsPolicy; singlePlacementGroup?: boolean; sku?: Sku; spotRestorePolicy?: SpotRestorePolicy; @@ -6843,6 +7104,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 +7147,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 +7172,8 @@ export interface VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalPar // @public export interface VirtualMachineScaleSetsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + ifNoneMatch?: string; resumeFrom?: string; updateIntervalInMs?: number; } @@ -7119,6 +7400,8 @@ export interface VirtualMachineScaleSetsUpdateInstancesOptionalParams extends co // @public export interface VirtualMachineScaleSetsUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + ifNoneMatch?: string; resumeFrom?: string; updateIntervalInMs?: number; } @@ -7136,6 +7419,7 @@ export interface VirtualMachineScaleSetUpdate extends UpdateResource { plan?: Plan; priorityMixPolicy?: PriorityMixPolicy; proximityPlacementGroup?: SubResource; + resiliencyPolicy?: ResiliencyPolicy; scaleInPolicy?: ScaleInPolicy; singlePlacementGroup?: boolean; sku?: Sku; @@ -7184,6 +7468,7 @@ export interface VirtualMachineScaleSetUpdateNetworkProfile { export interface VirtualMachineScaleSetUpdateOSDisk { caching?: CachingTypes; deleteOption?: DiskDeleteOptionTypes; + diffDiskSettings?: DiffDiskSettings; diskSizeGB?: number; image?: VirtualHardDisk; managedDisk?: VirtualMachineScaleSetManagedDiskParameters; @@ -7237,6 +7522,7 @@ export interface VirtualMachineScaleSetVM extends Resource { additionalCapabilities?: AdditionalCapabilities; availabilitySet?: SubResource; diagnosticsProfile?: DiagnosticsProfile; + readonly etag?: string; hardwareProfile?: HardwareProfile; identity?: VirtualMachineIdentity; readonly instanceId?: string; @@ -7418,6 +7704,7 @@ export interface VirtualMachineScaleSetVMProfile { securityProfile?: SecurityProfile; serviceArtifactReference?: ServiceArtifactReference; storageProfile?: VirtualMachineScaleSetStorageProfile; + readonly timeCreated?: Date; userData?: string; } @@ -7429,6 +7716,7 @@ export interface VirtualMachineScaleSetVMProtectionPolicy { // @public export interface VirtualMachineScaleSetVMReimageParameters extends VirtualMachineReimageParameters { + forceUpdateOSDiskForEphemeral?: boolean; } // @public @@ -7492,6 +7780,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 +7813,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 +7955,8 @@ export interface VirtualMachineScaleSetVMsStartOptionalParams extends coreClient // @public export interface VirtualMachineScaleSetVMsUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + ifNoneMatch?: string; resumeFrom?: string; updateIntervalInMs?: number; } @@ -7657,6 +7981,8 @@ export interface VirtualMachinesConvertToManagedDisksOptionalParams extends core // @public export interface VirtualMachinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + ifNoneMatch?: string; resumeFrom?: string; updateIntervalInMs?: number; } @@ -7877,6 +8203,8 @@ export interface VirtualMachineStatusCodeCount { // @public export interface VirtualMachinesUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + ifNoneMatch?: string; resumeFrom?: string; updateIntervalInMs?: number; } @@ -7907,6 +8235,7 @@ export interface VirtualMachineUpdate extends UpdateResource { priority?: VirtualMachinePriorityTypes; readonly provisioningState?: string; proximityPlacementGroup?: SubResource; + scheduledEventsPolicy?: ScheduledEventsPolicy; scheduledEventsProfile?: ScheduledEventsProfile; securityProfile?: SecurityProfile; storageProfile?: StorageProfile; diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index e1fc45dbf8c3..3d827e7fb107 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -58,7 +58,7 @@ import { CloudServiceRolesImpl, CloudServicesImpl, CloudServicesUpdateDomainImpl, - CloudServiceOperatingSystemsImpl + CloudServiceOperatingSystemsImpl, } from "./operations"; import { Operations, @@ -109,7 +109,7 @@ import { CloudServiceRoles, CloudServices, CloudServicesUpdateDomain, - CloudServiceOperatingSystems + CloudServiceOperatingSystems, } from "./operationsInterfaces"; import { ComputeManagementClientOptionalParams } from "./models"; @@ -127,7 +127,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: ComputeManagementClientOptionalParams + options?: ComputeManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -142,10 +142,10 @@ export class ComputeManagementClient extends coreClient.ServiceClient { } const defaults: ComputeManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-compute/21.2.0`; + const packageDetails = `azsdk-js-arm-compute/21.2.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -155,20 +155,21 @@ export class ComputeManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -178,7 +179,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -188,9 +189,9 @@ export class ComputeManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -202,24 +203,21 @@ export class ComputeManagementClient extends coreClient.ServiceClient { this.usageOperations = new UsageOperationsImpl(this); this.virtualMachineSizes = new VirtualMachineSizesImpl(this); this.virtualMachineScaleSets = new VirtualMachineScaleSetsImpl(this); - this.virtualMachineScaleSetExtensions = new VirtualMachineScaleSetExtensionsImpl( - this - ); - this.virtualMachineScaleSetRollingUpgrades = new VirtualMachineScaleSetRollingUpgradesImpl( - this - ); - this.virtualMachineScaleSetVMExtensions = new VirtualMachineScaleSetVMExtensionsImpl( - this - ); + this.virtualMachineScaleSetExtensions = + new VirtualMachineScaleSetExtensionsImpl(this); + this.virtualMachineScaleSetRollingUpgrades = + new VirtualMachineScaleSetRollingUpgradesImpl(this); + this.virtualMachineScaleSetVMExtensions = + new VirtualMachineScaleSetVMExtensionsImpl(this); this.virtualMachineScaleSetVMs = new VirtualMachineScaleSetVMsImpl(this); this.virtualMachineExtensions = new VirtualMachineExtensionsImpl(this); this.virtualMachines = new VirtualMachinesImpl(this); this.virtualMachineImages = new VirtualMachineImagesImpl(this); this.virtualMachineImagesEdgeZone = new VirtualMachineImagesEdgeZoneImpl( - this + this, ); this.virtualMachineExtensionImages = new VirtualMachineExtensionImagesImpl( - this + this, ); this.availabilitySets = new AvailabilitySetsImpl(this); this.proximityPlacementGroups = new ProximityPlacementGroupsImpl(this); @@ -233,9 +231,8 @@ export class ComputeManagementClient extends coreClient.ServiceClient { this.capacityReservations = new CapacityReservationsImpl(this); this.logAnalytics = new LogAnalyticsImpl(this); this.virtualMachineRunCommands = new VirtualMachineRunCommandsImpl(this); - this.virtualMachineScaleSetVMRunCommands = new VirtualMachineScaleSetVMRunCommandsImpl( - this - ); + this.virtualMachineScaleSetVMRunCommands = + new VirtualMachineScaleSetVMRunCommandsImpl(this); this.disks = new DisksImpl(this); this.diskAccesses = new DiskAccessesImpl(this); this.diskEncryptionSets = new DiskEncryptionSetsImpl(this); @@ -254,14 +251,14 @@ export class ComputeManagementClient extends coreClient.ServiceClient { this.communityGalleries = new CommunityGalleriesImpl(this); this.communityGalleryImages = new CommunityGalleryImagesImpl(this); this.communityGalleryImageVersions = new CommunityGalleryImageVersionsImpl( - this + this, ); this.cloudServiceRoleInstances = new CloudServiceRoleInstancesImpl(this); this.cloudServiceRoles = new CloudServiceRolesImpl(this); this.cloudServices = new CloudServicesImpl(this); this.cloudServicesUpdateDomain = new CloudServicesUpdateDomainImpl(this); this.cloudServiceOperatingSystems = new CloudServiceOperatingSystemsImpl( - this + this, ); } diff --git a/sdk/compute/arm-compute/src/lroImpl.ts b/sdk/compute/arm-compute/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/compute/arm-compute/src/lroImpl.ts +++ b/sdk/compute/arm-compute/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index dad43b7e80de..0a215de55e0f 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -207,6 +207,41 @@ 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 Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations. */ +export interface ScheduledEventsPolicy { + /** The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation. */ + userInitiatedRedeploy?: UserInitiatedRedeploy; + /** The configuration parameters used while creating userInitiatedReboot scheduled event setting creation. */ + userInitiatedReboot?: UserInitiatedReboot; + /** The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets. */ + scheduledEventsAdditionalPublishingTargets?: ScheduledEventsAdditionalPublishingTargets; +} + +/** Specifies Redeploy related Scheduled Event related configurations. */ +export interface UserInitiatedRedeploy { + /** Specifies Redeploy Scheduled Event related configurations. */ + automaticallyApprove?: boolean; +} + +/** Specifies Reboot related Scheduled Event related configurations. */ +export interface UserInitiatedReboot { + /** Specifies Reboot Scheduled Event related configurations. */ + automaticallyApprove?: boolean; +} + +export interface ScheduledEventsAdditionalPublishingTargets { + /** The configuration parameters used while creating eventGridAndResourceGraph Scheduled Event setting. */ + eventGridAndResourceGraph?: EventGridAndResourceGraph; +} + +/** Specifies eventGridAndResourceGraph related Scheduled Event related configurations. */ +export interface EventGridAndResourceGraph { + /** Specifies if event grid and resource graph is enabled for Scheduled event related configurations. */ + enable?: boolean; } /** Specifies the configuration parameters for automatic repairs on the virtual machine scale set. */ @@ -255,6 +290,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 2024-03-01. This value will be added to VMSS Flex VM tags when creating/updating the VMSS VM Profile with minimum api-version 2024-03-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. */ @@ -451,7 +491,7 @@ export interface VirtualMachineScaleSetOSDisk { export interface DiffDiskSettings { /** Specifies the ephemeral disk settings for operating system disk. */ option?: DiffDiskOptions; - /** Specifies the ephemeral disk placement for operating system disk. Possible values are: **CacheDisk,** **ResourceDisk.** The defaulting behavior is: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. */ + /** Specifies the ephemeral disk placement for operating system disk. Possible values are: **CacheDisk,** **ResourceDisk,** **NvmeDisk.** The defaulting behavior is: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** or **NvmeDisk** is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Minimum api-version for NvmeDisk: 2024-03-01. */ placement?: DiffDiskPlacement; } @@ -473,7 +513,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 +667,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: 2024-03-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 +681,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: 2024-03-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 +901,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 { /** @@ -960,6 +1040,8 @@ export interface VirtualMachineScaleSetUpdateOSDisk { caching?: CachingTypes; /** Specifies whether writeAccelerator should be enabled or disabled on the disk. */ writeAcceleratorEnabled?: boolean; + /** Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set. */ + diffDiskSettings?: DiffDiskSettings; /** Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.

diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023 */ diskSizeGB?: number; /** The Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist. */ @@ -1575,7 +1657,7 @@ export interface OSDisk { writeAcceleratorEnabled?: boolean; /** Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. */ diffDiskSettings?: DiffDiskSettings; - /** Specifies how the virtual machine should be created. Possible values are: **Attach.** This value is used when you are using a specialized disk to create the virtual machine. **FromImage.** This value is used when you are using an image to create the virtual machine. If you are using a platform image, you should also use the imageReference element described above. If you are using a marketplace image, you should also use the plan element previously described. */ + /** Specifies how the virtual machine disk should be created. Possible values are **Attach:** This value is used when you are using a specialized disk to create the virtual machine. **FromImage:** This value is used when you are using an image to create the virtual machine. If you are using a platform image, you should also use the imageReference element described above. If you are using a marketplace image, you should also use the plan element previously described. */ createOption: DiskCreateOptionTypes; /** Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. */ diskSizeGB?: number; @@ -1599,12 +1681,14 @@ export interface DataDisk { caching?: CachingTypes; /** Specifies whether writeAccelerator should be enabled or disabled on the disk. */ writeAcceleratorEnabled?: boolean; - /** Specifies how the virtual machine should be created. Possible values are: **Attach.** This value is used when you are using a specialized disk to create the virtual machine. **FromImage.** This value is used when you are using an image to create the virtual machine. If you are using a platform image, you should also use the imageReference element described above. If you are using a marketplace image, you should also use the plan element previously described. */ + /** Specifies how the virtual machine disk should be created. Possible values are **Attach:** This value is used when you are using a specialized disk to create the virtual machine. **FromImage:** This value is used when you are using an image to create the virtual machine data disk. If you are using a platform image, you should also use the imageReference element described above. If you are using a marketplace image, you should also use the plan element previously described. **Empty:** This value is used when creating an empty data disk. **Copy:** This value is used to create a data disk from a snapshot or another disk. **Restore:** This value is used to create a data disk from a disk restore point. */ createOption: DiskCreateOptionTypes; /** Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. */ diskSizeGB?: number; /** The managed disk parameters. */ managedDisk?: ManagedDiskParameters; + /** The source resource identifier. It can be a snapshot, or disk restore point from which to create a disk. */ + sourceResource?: ApiEntityReference; /** Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset */ toBeDetached?: boolean; /** @@ -1804,6 +1888,38 @@ 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; + /** Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The defaulting behavior is: **None for Standard storage. ReadOnly for Premium storage.** */ + caching?: CachingTypes; + /** Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the data disk is deleted when VM is deleted. **Detach.** If this value is used, the data disk is retained after VM is deleted. The default value is set to **Detach**. */ + deleteOption?: DiskDeleteOptionTypes; + /** Specifies the customer managed disk encryption set resource id for the managed disk. */ + diskEncryptionSet?: DiskEncryptionSetParameters; + /** Specifies whether writeAccelerator should be enabled or disabled on the disk. */ + writeAcceleratorEnabled?: boolean; +} + +/** 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 +1974,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 +2502,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 +2622,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 +2765,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: 2024-03-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 +2794,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: 2024-03-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 */ @@ -2878,6 +3020,8 @@ export interface CreationData { performancePlus?: boolean; /** Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot. */ elasticSanResourceId?: string; + /** If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed. */ + provisionedBandwidthCopySpeed?: ProvisionedBandwidthCopyOption; } /** The source image used for creating the disk. */ @@ -3523,7 +3667,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 +3680,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[]; @@ -3756,7 +3900,7 @@ export interface GalleryImageVersionStorageProfile { /** The gallery artifact version source. */ export interface GalleryArtifactVersionSource { - /** The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource. */ + /** The id of the gallery artifact version source. */ id?: string; } @@ -3825,6 +3969,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 +4096,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 +4159,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 +4208,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 +4216,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; } @@ -4701,7 +4893,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,8 +5167,15 @@ 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; + /** The ScheduledEventsPolicy. */ + scheduledEventsPolicy?: ScheduledEventsPolicy; /** Policy for automatic repairs. */ automaticRepairsPolicy?: AutomaticRepairsPolicy; /** The virtual machine profile. */ @@ -5022,6 +5221,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 +5275,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,8 +5351,20 @@ 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 Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the virtual machine. */ + scheduledEventsPolicy?: ScheduledEventsPolicy; /** Specifies the storage settings for the virtual machine disks. */ storageProfile?: StorageProfile; /** Specifies additional capabilities enabled or disabled on the virtual machine. */ @@ -5398,6 +5616,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: 2024-03-01. Please refer to https://aka.ms/computereservationsharing for more details. */ + sharingProfile?: ResourceSharingProfile; } /** Specifies information about the capacity reservation. */ @@ -5756,7 +5976,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 +6021,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 +6037,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 +6091,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. */ @@ -5905,6 +6129,8 @@ export interface VirtualMachineUpdate extends UpdateResource { zones?: string[]; /** Specifies the hardware settings for the virtual machine. */ hardwareProfile?: HardwareProfile; + /** Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the virtual machine. */ + scheduledEventsPolicy?: ScheduledEventsPolicy; /** Specifies the storage settings for the virtual machine disks. */ storageProfile?: StorageProfile; /** Specifies additional capabilities enabled or disabled on the virtual machine. */ @@ -5989,7 +6215,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 +6340,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: 2024-03-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 +6425,10 @@ export interface VirtualMachineRunCommandUpdate extends UpdateResource { /** Describes a Virtual Machine Scale Set VM Reimage Parameters. */ export interface VirtualMachineScaleSetVMReimageParameters - extends VirtualMachineReimageParameters { } + extends VirtualMachineReimageParameters { + /** Parameter to force update ephemeral OS disk for a virtual machine scale set VM */ + forceUpdateOSDiskForEphemeral?: boolean; +} /** 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 +6495,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 +6599,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 +6644,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 +6660,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 +6687,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 @@ -6489,6 +6722,8 @@ export interface GalleryArtifactVersionFullSource extends GalleryArtifactVersionSource { /** The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source. */ communityGalleryImageId?: string; + /** The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version. */ + virtualMachineId?: string; } /** The source for the disk image. */ @@ -6500,7 +6735,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 +6760,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 +6769,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 +6778,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 +6809,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 +6830,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 +6864,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 +6898,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 +6912,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 +6921,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 */ @@ -6668,7 +6953,7 @@ export enum KnownRepairAction { /** Restart */ Restart = "Restart", /** Reimage */ - Reimage = "Reimage" + Reimage = "Reimage", } /** @@ -6689,7 +6974,7 @@ export enum KnownWindowsVMGuestPatchMode { /** AutomaticByOS */ AutomaticByOS = "AutomaticByOS", /** AutomaticByPlatform */ - AutomaticByPlatform = "AutomaticByPlatform" + AutomaticByPlatform = "AutomaticByPlatform", } /** @@ -6708,7 +6993,7 @@ export enum KnownWindowsPatchAssessmentMode { /** ImageDefault */ ImageDefault = "ImageDefault", /** AutomaticByPlatform */ - AutomaticByPlatform = "AutomaticByPlatform" + AutomaticByPlatform = "AutomaticByPlatform", } /** @@ -6730,7 +7015,7 @@ export enum KnownWindowsVMGuestPatchAutomaticByPlatformRebootSetting { /** Never */ Never = "Never", /** Always */ - Always = "Always" + Always = "Always", } /** @@ -6750,7 +7035,7 @@ export enum KnownLinuxVMGuestPatchMode { /** ImageDefault */ ImageDefault = "ImageDefault", /** AutomaticByPlatform */ - AutomaticByPlatform = "AutomaticByPlatform" + AutomaticByPlatform = "AutomaticByPlatform", } /** @@ -6768,7 +7053,7 @@ export enum KnownLinuxPatchAssessmentMode { /** ImageDefault */ ImageDefault = "ImageDefault", /** AutomaticByPlatform */ - AutomaticByPlatform = "AutomaticByPlatform" + AutomaticByPlatform = "AutomaticByPlatform", } /** @@ -6790,7 +7075,7 @@ export enum KnownLinuxVMGuestPatchAutomaticByPlatformRebootSetting { /** Never */ Never = "Never", /** Always */ - Always = "Always" + Always = "Always", } /** @@ -6812,7 +7097,11 @@ export enum KnownDiskCreateOptionTypes { /** Empty */ Empty = "Empty", /** Attach */ - Attach = "Attach" + Attach = "Attach", + /** Copy */ + Copy = "Copy", + /** Restore */ + Restore = "Restore", } /** @@ -6822,14 +7111,16 @@ export enum KnownDiskCreateOptionTypes { * ### Known values supported by the service * **FromImage** \ * **Empty** \ - * **Attach** + * **Attach** \ + * **Copy** \ + * **Restore** */ export type DiskCreateOptionTypes = string; /** Known values of {@link DiffDiskOptions} that the service accepts. */ export enum KnownDiffDiskOptions { /** Local */ - Local = "Local" + Local = "Local", } /** @@ -6846,7 +7137,9 @@ export enum KnownDiffDiskPlacement { /** CacheDisk */ CacheDisk = "CacheDisk", /** ResourceDisk */ - ResourceDisk = "ResourceDisk" + ResourceDisk = "ResourceDisk", + /** NvmeDisk */ + NvmeDisk = "NvmeDisk", } /** @@ -6855,7 +7148,8 @@ export enum KnownDiffDiskPlacement { * this enum contains the known values that the service supports. * ### Known values supported by the service * **CacheDisk** \ - * **ResourceDisk** + * **ResourceDisk** \ + * **NvmeDisk** */ export type DiffDiskPlacement = string; @@ -6874,7 +7168,7 @@ export enum KnownStorageAccountTypes { /** StandardSSDZRS */ StandardSSDZRS = "StandardSSD_ZRS", /** PremiumV2LRS */ - PremiumV2LRS = "PremiumV2_LRS" + PremiumV2LRS = "PremiumV2_LRS", } /** @@ -6897,7 +7191,9 @@ export enum KnownSecurityEncryptionTypes { /** VMGuestStateOnly */ VMGuestStateOnly = "VMGuestStateOnly", /** DiskWithVMGuestState */ - DiskWithVMGuestState = "DiskWithVMGuestState" + DiskWithVMGuestState = "DiskWithVMGuestState", + /** NonPersistedTPM */ + NonPersistedTPM = "NonPersistedTPM", } /** @@ -6906,7 +7202,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; @@ -6915,7 +7212,7 @@ export enum KnownDiskDeleteOptionTypes { /** Delete */ Delete = "Delete", /** Detach */ - Detach = "Detach" + Detach = "Detach", } /** @@ -6937,7 +7234,7 @@ export enum KnownDomainNameLabelScopeTypes { /** ResourceGroupReuse */ ResourceGroupReuse = "ResourceGroupReuse", /** NoReuse */ - NoReuse = "NoReuse" + NoReuse = "NoReuse", } /** @@ -6957,7 +7254,7 @@ export enum KnownIPVersion { /** IPv4 */ IPv4 = "IPv4", /** IPv6 */ - IPv6 = "IPv6" + IPv6 = "IPv6", } /** @@ -6975,7 +7272,7 @@ export enum KnownDeleteOptions { /** Delete */ Delete = "Delete", /** Detach */ - Detach = "Detach" + Detach = "Detach", } /** @@ -6993,7 +7290,7 @@ export enum KnownPublicIPAddressSkuName { /** Basic */ Basic = "Basic", /** Standard */ - Standard = "Standard" + Standard = "Standard", } /** @@ -7011,7 +7308,7 @@ export enum KnownPublicIPAddressSkuTier { /** Regional */ Regional = "Regional", /** Global */ - Global = "Global" + Global = "Global", } /** @@ -7031,7 +7328,7 @@ export enum KnownNetworkInterfaceAuxiliaryMode { /** AcceleratedConnections */ AcceleratedConnections = "AcceleratedConnections", /** Floating */ - Floating = "Floating" + Floating = "Floating", } /** @@ -7056,7 +7353,7 @@ export enum KnownNetworkInterfaceAuxiliarySku { /** A4 */ A4 = "A4", /** A8 */ - A8 = "A8" + A8 = "A8", } /** @@ -7075,7 +7372,7 @@ export type NetworkInterfaceAuxiliarySku = string; /** Known values of {@link NetworkApiVersion} that the service accepts. */ export enum KnownNetworkApiVersion { /** TwoThousandTwenty1101 */ - TwoThousandTwenty1101 = "2020-11-01" + TwoThousandTwenty1101 = "2020-11-01", } /** @@ -7092,7 +7389,7 @@ export enum KnownSecurityTypes { /** TrustedLaunch */ TrustedLaunch = "TrustedLaunch", /** ConfidentialVM */ - ConfidentialVM = "ConfidentialVM" + ConfidentialVM = "ConfidentialVM", } /** @@ -7105,6 +7402,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 */ @@ -7112,7 +7427,7 @@ export enum KnownVirtualMachinePriorityTypes { /** Low */ Low = "Low", /** Spot */ - Spot = "Spot" + Spot = "Spot", } /** @@ -7131,7 +7446,7 @@ export enum KnownVirtualMachineEvictionPolicyTypes { /** Deallocate */ Deallocate = "Deallocate", /** Delete */ - Delete = "Delete" + Delete = "Delete", } /** @@ -7151,7 +7466,7 @@ export enum KnownVirtualMachineScaleSetScaleInRules { /** OldestVM */ OldestVM = "OldestVM", /** NewestVM */ - NewestVM = "NewestVM" + NewestVM = "NewestVM", } /** @@ -7170,7 +7485,7 @@ export enum KnownOrchestrationMode { /** Uniform */ Uniform = "Uniform", /** Flexible */ - Flexible = "Flexible" + Flexible = "Flexible", } /** @@ -7186,7 +7501,7 @@ export type OrchestrationMode = string; /** Known values of {@link ExtendedLocationTypes} that the service accepts. */ export enum KnownExtendedLocationTypes { /** EdgeZone */ - EdgeZone = "EdgeZone" + EdgeZone = "EdgeZone", } /** @@ -7201,7 +7516,7 @@ export type ExtendedLocationTypes = string; /** Known values of {@link ExpandTypesForGetVMScaleSets} that the service accepts. */ export enum KnownExpandTypesForGetVMScaleSets { /** UserData */ - UserData = "userData" + UserData = "userData", } /** @@ -7218,7 +7533,7 @@ export enum KnownOrchestrationServiceNames { /** AutomaticRepairs */ AutomaticRepairs = "AutomaticRepairs", /** DummyOrchestrationServiceName */ - DummyOrchestrationServiceName = "DummyOrchestrationServiceName" + DummyOrchestrationServiceName = "DummyOrchestrationServiceName", } /** @@ -7238,7 +7553,7 @@ export enum KnownOrchestrationServiceState { /** Running */ Running = "Running", /** Suspended */ - Suspended = "Suspended" + Suspended = "Suspended", } /** @@ -7257,7 +7572,7 @@ export enum KnownOrchestrationServiceStateAction { /** Resume */ Resume = "Resume", /** Suspend */ - Suspend = "Suspend" + Suspend = "Suspend", } /** @@ -7275,7 +7590,7 @@ export enum KnownHyperVGeneration { /** V1 */ V1 = "V1", /** V2 */ - V2 = "V2" + V2 = "V2", } /** @@ -7621,7 +7936,7 @@ export enum KnownVirtualMachineSizeTypes { /** StandardNV12 */ StandardNV12 = "Standard_NV12", /** StandardNV24 */ - StandardNV24 = "Standard_NV24" + StandardNV24 = "Standard_NV24", } /** @@ -7801,7 +8116,7 @@ export type VirtualMachineSizeTypes = string; /** Known values of {@link DiskDetachOptionTypes} that the service accepts. */ export enum KnownDiskDetachOptionTypes { /** ForceDetach */ - ForceDetach = "ForceDetach" + ForceDetach = "ForceDetach", } /** @@ -7818,7 +8133,7 @@ export enum KnownDiskControllerTypes { /** Scsi */ Scsi = "SCSI", /** NVMe */ - NVMe = "NVMe" + NVMe = "NVMe", } /** @@ -7836,7 +8151,7 @@ export enum KnownIPVersions { /** IPv4 */ IPv4 = "IPv4", /** IPv6 */ - IPv6 = "IPv6" + IPv6 = "IPv6", } /** @@ -7854,7 +8169,7 @@ export enum KnownPublicIPAllocationMethod { /** Dynamic */ Dynamic = "Dynamic", /** Static */ - Static = "Static" + Static = "Static", } /** @@ -7872,7 +8187,7 @@ export enum KnownHyperVGenerationType { /** V1 */ V1 = "V1", /** V2 */ - V2 = "V2" + V2 = "V2", } /** @@ -7896,7 +8211,7 @@ export enum KnownPatchOperationStatus { /** Succeeded */ Succeeded = "Succeeded", /** CompletedWithWarnings */ - CompletedWithWarnings = "CompletedWithWarnings" + CompletedWithWarnings = "CompletedWithWarnings", } /** @@ -7915,7 +8230,7 @@ export type PatchOperationStatus = string; /** Known values of {@link ExpandTypeForListVMs} that the service accepts. */ export enum KnownExpandTypeForListVMs { /** InstanceView */ - InstanceView = "instanceView" + InstanceView = "instanceView", } /** @@ -7930,7 +8245,7 @@ export type ExpandTypeForListVMs = string; /** Known values of {@link ExpandTypesForListVMs} that the service accepts. */ export enum KnownExpandTypesForListVMs { /** InstanceView */ - InstanceView = "instanceView" + InstanceView = "instanceView", } /** @@ -7951,7 +8266,7 @@ export enum KnownVMGuestPatchRebootBehavior { /** AlwaysRequiresReboot */ AlwaysRequiresReboot = "AlwaysRequiresReboot", /** CanRequestReboot */ - CanRequestReboot = "CanRequestReboot" + CanRequestReboot = "CanRequestReboot", } /** @@ -7971,7 +8286,7 @@ export enum KnownPatchAssessmentState { /** Unknown */ Unknown = "Unknown", /** Available */ - Available = "Available" + Available = "Available", } /** @@ -7991,7 +8306,7 @@ export enum KnownVMGuestPatchRebootSetting { /** Never */ Never = "Never", /** Always */ - Always = "Always" + Always = "Always", } /** @@ -8022,7 +8337,7 @@ export enum KnownVMGuestPatchClassificationWindows { /** Tools */ Tools = "Tools", /** Updates */ - Updates = "Updates" + Updates = "Updates", } /** @@ -8048,7 +8363,7 @@ export enum KnownVMGuestPatchClassificationLinux { /** Security */ Security = "Security", /** Other */ - Other = "Other" + Other = "Other", } /** @@ -8075,7 +8390,7 @@ export enum KnownVMGuestPatchRebootStatus { /** Failed */ Failed = "Failed", /** Completed */ - Completed = "Completed" + Completed = "Completed", } /** @@ -8105,7 +8420,7 @@ export enum KnownPatchInstallationState { /** NotSelected */ NotSelected = "NotSelected", /** Pending */ - Pending = "Pending" + Pending = "Pending", } /** @@ -8127,7 +8442,7 @@ export enum KnownHyperVGenerationTypes { /** V1 */ V1 = "V1", /** V2 */ - V2 = "V2" + V2 = "V2", } /** @@ -8145,7 +8460,7 @@ export enum KnownVmDiskTypes { /** None */ None = "None", /** Unmanaged */ - Unmanaged = "Unmanaged" + Unmanaged = "Unmanaged", } /** @@ -8163,7 +8478,7 @@ export enum KnownArchitectureTypes { /** X64 */ X64 = "x64", /** Arm64 */ - Arm64 = "Arm64" + Arm64 = "Arm64", } /** @@ -8183,7 +8498,7 @@ export enum KnownImageState { /** ScheduledForDeprecation */ ScheduledForDeprecation = "ScheduledForDeprecation", /** Deprecated */ - Deprecated = "Deprecated" + Deprecated = "Deprecated", } /** @@ -8204,7 +8519,7 @@ export enum KnownAlternativeType { /** Offer */ Offer = "Offer", /** Plan */ - Plan = "Plan" + Plan = "Plan", } /** @@ -8223,7 +8538,7 @@ export enum KnownProximityPlacementGroupType { /** Standard */ Standard = "Standard", /** Ultra */ - Ultra = "Ultra" + Ultra = "Ultra", } /** @@ -8236,12 +8551,30 @@ 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 */ Windows = "Windows", /** Linux */ - Linux = "Linux" + Linux = "Linux", } /** @@ -8261,7 +8594,7 @@ export enum KnownRestorePointEncryptionType { /** Disk Restore Point is encrypted at rest with Customer managed key that can be changed and revoked by a customer. */ EncryptionAtRestWithCustomerKey = "EncryptionAtRestWithCustomerKey", /** Disk Restore Point is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and the other key is Platform managed. */ - EncryptionAtRestWithPlatformAndCustomerKeys = "EncryptionAtRestWithPlatformAndCustomerKeys" + EncryptionAtRestWithPlatformAndCustomerKeys = "EncryptionAtRestWithPlatformAndCustomerKeys", } /** @@ -8282,7 +8615,7 @@ export enum KnownConsistencyModeTypes { /** FileSystemConsistent */ FileSystemConsistent = "FileSystemConsistent", /** ApplicationConsistent */ - ApplicationConsistent = "ApplicationConsistent" + ApplicationConsistent = "ApplicationConsistent", } /** @@ -8299,7 +8632,7 @@ export type ConsistencyModeTypes = string; /** Known values of {@link RestorePointCollectionExpandOptions} that the service accepts. */ export enum KnownRestorePointCollectionExpandOptions { /** RestorePoints */ - RestorePoints = "restorePoints" + RestorePoints = "restorePoints", } /** @@ -8314,7 +8647,7 @@ export type RestorePointCollectionExpandOptions = string; /** Known values of {@link RestorePointExpandOptions} that the service accepts. */ export enum KnownRestorePointExpandOptions { /** InstanceView */ - InstanceView = "instanceView" + InstanceView = "instanceView", } /** @@ -8329,7 +8662,7 @@ export type RestorePointExpandOptions = string; /** Known values of {@link CapacityReservationGroupInstanceViewTypes} that the service accepts. */ export enum KnownCapacityReservationGroupInstanceViewTypes { /** InstanceView */ - InstanceView = "instanceView" + InstanceView = "instanceView", } /** @@ -8346,7 +8679,7 @@ export enum KnownExpandTypesForGetCapacityReservationGroups { /** VirtualMachineScaleSetVMsRef */ VirtualMachineScaleSetVMsRef = "virtualMachineScaleSetVMs/$ref", /** VirtualMachinesRef */ - VirtualMachinesRef = "virtualMachines/$ref" + VirtualMachinesRef = "virtualMachines/$ref", } /** @@ -8359,10 +8692,31 @@ export enum KnownExpandTypesForGetCapacityReservationGroups { */ export type ExpandTypesForGetCapacityReservationGroups = string; +/** Known values of {@link ResourceIdOptionsForGetCapacityReservationGroups} that the service accepts. */ +export enum KnownResourceIdOptionsForGetCapacityReservationGroups { + /** CreatedInSubscription */ + CreatedInSubscription = "CreatedInSubscription", + /** SharedWithSubscription */ + SharedWithSubscription = "SharedWithSubscription", + /** All */ + All = "All", +} + +/** + * Defines values for ResourceIdOptionsForGetCapacityReservationGroups. \ + * {@link KnownResourceIdOptionsForGetCapacityReservationGroups} can be used interchangeably with ResourceIdOptionsForGetCapacityReservationGroups, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CreatedInSubscription** \ + * **SharedWithSubscription** \ + * **All** + */ +export type ResourceIdOptionsForGetCapacityReservationGroups = string; + /** Known values of {@link CapacityReservationInstanceViewTypes} that the service accepts. */ export enum KnownCapacityReservationInstanceViewTypes { /** InstanceView */ - InstanceView = "instanceView" + InstanceView = "instanceView", } /** @@ -8389,7 +8743,7 @@ export enum KnownExecutionState { /** TimedOut */ TimedOut = "TimedOut", /** Canceled */ - Canceled = "Canceled" + Canceled = "Canceled", } /** @@ -8422,7 +8776,7 @@ export enum KnownDiskStorageAccountTypes { /** Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev\/test that need storage resiliency against zone failures. */ StandardSSDZRS = "StandardSSD_ZRS", /** Premium SSD v2 locally redundant storage. Best for production and performance-sensitive workloads that consistently require low latency and high IOPS and throughput. */ - PremiumV2LRS = "PremiumV2_LRS" + PremiumV2LRS = "PremiumV2_LRS", } /** @@ -8445,7 +8799,7 @@ export enum KnownArchitecture { /** X64 */ X64 = "x64", /** Arm64 */ - Arm64 = "Arm64" + Arm64 = "Arm64", } /** @@ -8481,7 +8835,7 @@ export enum KnownDiskCreateOption { /** Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported disk and upload using write token in both disk and VM guest state */ UploadPreparedSecure = "UploadPreparedSecure", /** Create a new disk by exporting from elastic san volume snapshot */ - CopyFromSanSnapshot = "CopyFromSanSnapshot" + CopyFromSanSnapshot = "CopyFromSanSnapshot", } /** @@ -8503,6 +8857,24 @@ export enum KnownDiskCreateOption { */ export type DiskCreateOption = string; +/** Known values of {@link ProvisionedBandwidthCopyOption} that the service accepts. */ +export enum KnownProvisionedBandwidthCopyOption { + /** None */ + None = "None", + /** Enhanced */ + Enhanced = "Enhanced", +} + +/** + * Defines values for ProvisionedBandwidthCopyOption. \ + * {@link KnownProvisionedBandwidthCopyOption} can be used interchangeably with ProvisionedBandwidthCopyOption, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **Enhanced** + */ +export type ProvisionedBandwidthCopyOption = string; + /** Known values of {@link DiskState} that the service accepts. */ export enum KnownDiskState { /** The disk is not being used and can be attached to a VM. */ @@ -8520,7 +8892,7 @@ export enum KnownDiskState { /** A disk is ready to be created by upload by requesting a write token. */ ReadyToUpload = "ReadyToUpload", /** A disk is created for upload and a write token has been issued for uploading to it. */ - ActiveUpload = "ActiveUpload" + ActiveUpload = "ActiveUpload", } /** @@ -8546,7 +8918,7 @@ export enum KnownEncryptionType { /** Disk is encrypted at rest with Customer managed key that can be changed and revoked by a customer. */ EncryptionAtRestWithCustomerKey = "EncryptionAtRestWithCustomerKey", /** Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and the other key is Platform managed. */ - EncryptionAtRestWithPlatformAndCustomerKeys = "EncryptionAtRestWithPlatformAndCustomerKeys" + EncryptionAtRestWithPlatformAndCustomerKeys = "EncryptionAtRestWithPlatformAndCustomerKeys", } /** @@ -8567,7 +8939,7 @@ export enum KnownNetworkAccessPolicy { /** The disk can be exported or uploaded to using a DiskAccess resource's private endpoints. */ AllowPrivate = "AllowPrivate", /** The disk cannot be exported. */ - DenyAll = "DenyAll" + DenyAll = "DenyAll", } /** @@ -8590,7 +8962,9 @@ export enum KnownDiskSecurityTypes { /** Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a platform managed key */ ConfidentialVMDiskEncryptedWithPlatformKey = "ConfidentialVM_DiskEncryptedWithPlatformKey", /** Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a customer managed key */ - ConfidentialVMDiskEncryptedWithCustomerKey = "ConfidentialVM_DiskEncryptedWithCustomerKey" + ConfidentialVMDiskEncryptedWithCustomerKey = "ConfidentialVM_DiskEncryptedWithCustomerKey", + /** Indicates Confidential VM disk with a ephemeral vTPM. vTPM state is not persisted across VM reboots. */ + ConfidentialVMNonPersistedTPM = "ConfidentialVM_NonPersistedTPM", } /** @@ -8601,7 +8975,8 @@ export enum KnownDiskSecurityTypes { * **TrustedLaunch**: Trusted Launch provides security features such as secure boot and virtual Trusted Platform Module (vTPM) \ * **ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey**: Indicates Confidential VM disk with only VM guest state encrypted \ * **ConfidentialVM_DiskEncryptedWithPlatformKey**: Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a platform managed key \ - * **ConfidentialVM_DiskEncryptedWithCustomerKey**: Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a customer managed key + * **ConfidentialVM_DiskEncryptedWithCustomerKey**: Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a customer managed key \ + * **ConfidentialVM_NonPersistedTPM**: Indicates Confidential VM disk with a ephemeral vTPM. vTPM state is not persisted across VM reboots. */ export type DiskSecurityTypes = string; @@ -8610,7 +8985,7 @@ export enum KnownPublicNetworkAccess { /** You can generate a SAS URI to access the underlying data of the disk publicly on the internet when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. */ Enabled = "Enabled", /** You cannot access the underlying data of the disk publicly on the internet even when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -8628,7 +9003,7 @@ export enum KnownDataAccessAuthMode { /** When export\/upload URL is used, the system checks if the user has an identity in Azure Active Directory and has necessary permissions to export\/upload the data. Please refer to aka.ms\/DisksAzureADAuth. */ AzureActiveDirectory = "AzureActiveDirectory", /** No additional authentication would be performed when accessing export\/upload URL. */ - None = "None" + None = "None", } /** @@ -8648,7 +9023,7 @@ export enum KnownAccessLevel { /** Read */ Read = "Read", /** Write */ - Write = "Write" + Write = "Write", } /** @@ -8667,7 +9042,7 @@ export enum KnownFileFormat { /** A VHD file is a disk image file in the Virtual Hard Disk file format. */ VHD = "VHD", /** A VHDX file is a disk image file in the Virtual Hard Disk v2 file format. */ - Vhdx = "VHDX" + Vhdx = "VHDX", } /** @@ -8687,7 +9062,7 @@ export enum KnownPrivateEndpointServiceConnectionStatus { /** Approved */ Approved = "Approved", /** Rejected */ - Rejected = "Rejected" + Rejected = "Rejected", } /** @@ -8710,7 +9085,7 @@ export enum KnownPrivateEndpointConnectionProvisioningState { /** Deleting */ Deleting = "Deleting", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -8734,7 +9109,7 @@ export enum KnownDiskEncryptionSetIdentityType { /** SystemAssignedUserAssigned */ SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", /** None */ - None = "None" + None = "None", } /** @@ -8756,7 +9131,7 @@ export enum KnownDiskEncryptionSetType { /** Resource using diskEncryptionSet would be encrypted at rest with two layers of encryption. One of the keys is Customer managed and the other key is Platform managed. */ EncryptionAtRestWithPlatformAndCustomerKeys = "EncryptionAtRestWithPlatformAndCustomerKeys", /** Confidential VM supported disk and VM guest state would be encrypted with customer managed key. */ - ConfidentialVmEncryptedWithCustomerKey = "ConfidentialVmEncryptedWithCustomerKey" + ConfidentialVmEncryptedWithCustomerKey = "ConfidentialVmEncryptedWithCustomerKey", } /** @@ -8777,7 +9152,7 @@ export enum KnownSnapshotStorageAccountTypes { /** Premium SSD locally redundant storage */ PremiumLRS = "Premium_LRS", /** Standard zone redundant storage */ - StandardZRS = "Standard_ZRS" + StandardZRS = "Standard_ZRS", } /** @@ -8794,7 +9169,7 @@ 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" + CopySourceNotFound = "CopySourceNotFound", } /** @@ -8809,7 +9184,7 @@ export type CopyCompletionErrorReason = string; /** Known values of {@link ExtendedLocationType} that the service accepts. */ export enum KnownExtendedLocationType { /** EdgeZone */ - EdgeZone = "EdgeZone" + EdgeZone = "EdgeZone", } /** @@ -8834,7 +9209,7 @@ export enum KnownGalleryProvisioningState { /** Deleting */ Deleting = "Deleting", /** Migrating */ - Migrating = "Migrating" + Migrating = "Migrating", } /** @@ -8858,7 +9233,7 @@ export enum KnownGallerySharingPermissionTypes { /** Groups */ Groups = "Groups", /** Community */ - Community = "Community" + Community = "Community", } /** @@ -8877,7 +9252,7 @@ export enum KnownSharingProfileGroupTypes { /** Subscriptions */ Subscriptions = "Subscriptions", /** AADTenants */ - AADTenants = "AADTenants" + AADTenants = "AADTenants", } /** @@ -8899,7 +9274,7 @@ export enum KnownSharingState { /** Failed */ Failed = "Failed", /** Unknown */ - Unknown = "Unknown" + Unknown = "Unknown", } /** @@ -8917,7 +9292,7 @@ export type SharingState = string; /** Known values of {@link SelectPermissions} that the service accepts. */ export enum KnownSelectPermissions { /** Permissions */ - Permissions = "Permissions" + Permissions = "Permissions", } /** @@ -8932,7 +9307,7 @@ export type SelectPermissions = string; /** Known values of {@link GalleryExpandParams} that the service accepts. */ export enum KnownGalleryExpandParams { /** SharingProfileGroups */ - SharingProfileGroups = "SharingProfile/Groups" + SharingProfileGroups = "SharingProfile/Groups", } /** @@ -8951,7 +9326,7 @@ export enum KnownStorageAccountType { /** StandardZRS */ StandardZRS = "Standard_ZRS", /** PremiumLRS */ - PremiumLRS = "Premium_LRS" + PremiumLRS = "Premium_LRS", } /** @@ -8972,7 +9347,9 @@ export enum KnownConfidentialVMEncryptionType { /** EncryptedWithPmk */ EncryptedWithPmk = "EncryptedWithPmk", /** EncryptedWithCmk */ - EncryptedWithCmk = "EncryptedWithCmk" + EncryptedWithCmk = "EncryptedWithCmk", + /** NonPersistedTPM */ + NonPersistedTPM = "NonPersistedTPM", } /** @@ -8982,7 +9359,8 @@ export enum KnownConfidentialVMEncryptionType { * ### Known values supported by the service * **EncryptedVMGuestStateOnlyWithPmk** \ * **EncryptedWithPmk** \ - * **EncryptedWithCmk** + * **EncryptedWithCmk** \ + * **NonPersistedTPM** */ export type ConfidentialVMEncryptionType = string; @@ -8991,7 +9369,7 @@ export enum KnownReplicationMode { /** Full */ Full = "Full", /** Shallow */ - Shallow = "Shallow" + Shallow = "Shallow", } /** @@ -9009,7 +9387,7 @@ export enum KnownGalleryExtendedLocationType { /** EdgeZone */ EdgeZone = "EdgeZone", /** Unknown */ - Unknown = "Unknown" + Unknown = "Unknown", } /** @@ -9031,7 +9409,7 @@ export enum KnownEdgeZoneStorageAccountType { /** StandardSSDLRS */ StandardSSDLRS = "StandardSSD_LRS", /** PremiumLRS */ - PremiumLRS = "Premium_LRS" + PremiumLRS = "Premium_LRS", } /** @@ -9055,7 +9433,7 @@ export enum KnownPolicyViolationCategory { /** CopyrightValidation */ CopyrightValidation = "CopyrightValidation", /** IpTheft */ - IpTheft = "IpTheft" + IpTheft = "IpTheft", } /** @@ -9079,7 +9457,7 @@ export enum KnownAggregatedReplicationState { /** Completed */ Completed = "Completed", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -9103,7 +9481,7 @@ export enum KnownReplicationState { /** Completed */ Completed = "Completed", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -9118,10 +9496,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 +9548,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; @@ -9142,7 +9562,7 @@ export enum KnownSharingUpdateOperationTypes { /** Reset */ Reset = "Reset", /** EnableCommunity */ - EnableCommunity = "EnableCommunity" + EnableCommunity = "EnableCommunity", } /** @@ -9160,7 +9580,7 @@ export type SharingUpdateOperationTypes = string; /** Known values of {@link SharedToValues} that the service accepts. */ export enum KnownSharedToValues { /** Tenant */ - Tenant = "tenant" + Tenant = "tenant", } /** @@ -9179,7 +9599,7 @@ export enum KnownSharedGalleryHostCaching { /** ReadOnly */ ReadOnly = "ReadOnly", /** ReadWrite */ - ReadWrite = "ReadWrite" + ReadWrite = "ReadWrite", } /** @@ -9200,7 +9620,7 @@ export enum KnownCloudServiceUpgradeMode { /** Manual */ Manual = "Manual", /** Simultaneous */ - Simultaneous = "Simultaneous" + Simultaneous = "Simultaneous", } /** @@ -9219,7 +9639,7 @@ export enum KnownCloudServiceSlotType { /** Production */ Production = "Production", /** Staging */ - Staging = "Staging" + Staging = "Staging", } /** @@ -9237,7 +9657,7 @@ export enum KnownAvailabilitySetSkuTypes { /** Classic */ Classic = "Classic", /** Aligned */ - Aligned = "Aligned" + Aligned = "Aligned", } /** @@ -9324,41 +9744,46 @@ 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; +export type VirtualMachineScaleSetsListByLocationResponse = + VirtualMachineScaleSetListResult; /** 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. */ @@ -9366,11 +9791,16 @@ export interface VirtualMachineScaleSetsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetsCreateOrUpdateResponse = VirtualMachineScaleSet; +export type VirtualMachineScaleSetsCreateOrUpdateResponse = + VirtualMachineScaleSet; /** 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,38 +9857,43 @@ 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; +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; +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; +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; +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; +export type VirtualMachineScaleSetsGetOSUpgradeHistoryResponse = + VirtualMachineScaleSetListOSUpgradeHistory; /** Optional parameters. */ export interface VirtualMachineScaleSetsPowerOffOptionalParams @@ -9557,6 +9992,21 @@ 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 { @@ -9567,11 +10017,12 @@ export interface VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdate } /** Contains response data for the forceRecoveryServiceFabricPlatformUpdateDomainWalk operation. */ -export type VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse = RecoveryWalkResponse; +export type VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse = + RecoveryWalkResponse; /** Optional parameters. */ export interface VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams @@ -9584,38 +10035,43 @@ 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; +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; +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; +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; +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; +export type VirtualMachineScaleSetsGetOSUpgradeHistoryNextResponse = + VirtualMachineScaleSetListOSUpgradeHistory; /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams @@ -9627,7 +10083,8 @@ export interface VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetExtensionsCreateOrUpdateResponse = VirtualMachineScaleSetExtension; +export type VirtualMachineScaleSetExtensionsCreateOrUpdateResponse = + VirtualMachineScaleSetExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsUpdateOptionalParams @@ -9639,7 +10096,8 @@ export interface VirtualMachineScaleSetExtensionsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type VirtualMachineScaleSetExtensionsUpdateResponse = VirtualMachineScaleSetExtension; +export type VirtualMachineScaleSetExtensionsUpdateResponse = + VirtualMachineScaleSetExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsDeleteOptionalParams @@ -9658,21 +10116,24 @@ export interface VirtualMachineScaleSetExtensionsGetOptionalParams } /** Contains response data for the get operation. */ -export type VirtualMachineScaleSetExtensionsGetResponse = VirtualMachineScaleSetExtension; +export type VirtualMachineScaleSetExtensionsGetResponse = + VirtualMachineScaleSetExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type VirtualMachineScaleSetExtensionsListResponse = VirtualMachineScaleSetExtensionListResult; +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; +export type VirtualMachineScaleSetExtensionsListNextResponse = + VirtualMachineScaleSetExtensionListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetRollingUpgradesCancelOptionalParams @@ -9703,10 +10164,11 @@ 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; +export type VirtualMachineScaleSetRollingUpgradesGetLatestResponse = + RollingUpgradeStatusInfo; /** Optional parameters. */ export interface VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams @@ -9718,7 +10180,8 @@ export interface VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse = VirtualMachineScaleSetVMExtension; +export type VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse = + VirtualMachineScaleSetVMExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetVMExtensionsUpdateOptionalParams @@ -9730,7 +10193,8 @@ export interface VirtualMachineScaleSetVMExtensionsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type VirtualMachineScaleSetVMExtensionsUpdateResponse = VirtualMachineScaleSetVMExtension; +export type VirtualMachineScaleSetVMExtensionsUpdateResponse = + VirtualMachineScaleSetVMExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetVMExtensionsDeleteOptionalParams @@ -9749,7 +10213,8 @@ export interface VirtualMachineScaleSetVMExtensionsGetOptionalParams } /** Contains response data for the get operation. */ -export type VirtualMachineScaleSetVMExtensionsGetResponse = VirtualMachineScaleSetVMExtension; +export type VirtualMachineScaleSetVMExtensionsGetResponse = + VirtualMachineScaleSetVMExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetVMExtensionsListOptionalParams @@ -9759,7 +10224,8 @@ export interface VirtualMachineScaleSetVMExtensionsListOptionalParams } /** Contains response data for the list operation. */ -export type VirtualMachineScaleSetVMExtensionsListResponse = VirtualMachineScaleSetVMExtensionsListResult; +export type VirtualMachineScaleSetVMExtensionsListResponse = + VirtualMachineScaleSetVMExtensionsListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsReimageOptionalParams @@ -9781,6 +10247,19 @@ 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 +10272,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,10 +10308,11 @@ 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; +export type VirtualMachineScaleSetVMsGetInstanceViewResponse = + VirtualMachineScaleSetVMInstanceView; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsListOptionalParams @@ -9842,7 +10326,8 @@ export interface VirtualMachineScaleSetVMsListOptionalParams } /** Contains response data for the list operation. */ -export type VirtualMachineScaleSetVMsListResponse = VirtualMachineScaleSetVMListResult; +export type VirtualMachineScaleSetVMsListResponse = + VirtualMachineScaleSetVMListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsPowerOffOptionalParams @@ -9890,7 +10375,8 @@ export interface VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalPar } /** Contains response data for the retrieveBootDiagnosticsData operation. */ -export type VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResponse = RetrieveBootDiagnosticsDataResult; +export type VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResponse = + RetrieveBootDiagnosticsDataResult; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams @@ -9903,7 +10389,20 @@ 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,10 +10418,11 @@ 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; +export type VirtualMachineScaleSetVMsListNextResponse = + VirtualMachineScaleSetVMListResult; /** Optional parameters. */ export interface VirtualMachineExtensionsCreateOrUpdateOptionalParams @@ -9934,7 +10434,8 @@ export interface VirtualMachineExtensionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineExtensionsCreateOrUpdateResponse = VirtualMachineExtension; +export type VirtualMachineExtensionsCreateOrUpdateResponse = + VirtualMachineExtension; /** Optional parameters. */ export interface VirtualMachineExtensionsUpdateOptionalParams @@ -9975,11 +10476,12 @@ export interface VirtualMachineExtensionsListOptionalParams } /** Contains response data for the list operation. */ -export type VirtualMachineExtensionsListResponse = VirtualMachineExtensionsListResult; +export type VirtualMachineExtensionsListResponse = + VirtualMachineExtensionsListResult; /** Optional parameters. */ export interface VirtualMachinesListByLocationOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByLocation operation. */ export type VirtualMachinesListByLocationResponse = VirtualMachineListResult; @@ -9999,6 +10501,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 +10517,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 +10553,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 +10580,7 @@ export interface VirtualMachinesDeallocateOptionalParams /** Optional parameters. */ export interface VirtualMachinesGeneralizeOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface VirtualMachinesListOptionalParams @@ -10100,10 +10610,11 @@ 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; +export type VirtualMachinesListAvailableSizesResponse = + VirtualMachineSizeListResult; /** Optional parameters. */ export interface VirtualMachinesPowerOffOptionalParams @@ -10171,7 +10682,8 @@ export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams } /** Contains response data for the retrieveBootDiagnosticsData operation. */ -export type VirtualMachinesRetrieveBootDiagnosticsDataResponse = RetrieveBootDiagnosticsDataResult; +export type VirtualMachinesRetrieveBootDiagnosticsDataResponse = + RetrieveBootDiagnosticsDataResult; /** Optional parameters. */ export interface VirtualMachinesPerformMaintenanceOptionalParams @@ -10184,7 +10696,7 @@ export interface VirtualMachinesPerformMaintenanceOptionalParams /** Optional parameters. */ export interface VirtualMachinesSimulateEvictionOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface VirtualMachinesAssessPatchesOptionalParams @@ -10196,7 +10708,8 @@ export interface VirtualMachinesAssessPatchesOptionalParams } /** Contains response data for the assessPatches operation. */ -export type VirtualMachinesAssessPatchesResponse = VirtualMachineAssessPatchesResult; +export type VirtualMachinesAssessPatchesResponse = + VirtualMachineAssessPatchesResult; /** Optional parameters. */ export interface VirtualMachinesInstallPatchesOptionalParams @@ -10208,7 +10721,20 @@ export interface VirtualMachinesInstallPatchesOptionalParams } /** Contains response data for the installPatches operation. */ -export type VirtualMachinesInstallPatchesResponse = VirtualMachineInstallPatchesResult; +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 @@ -10224,28 +10750,29 @@ 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; +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 +10791,39 @@ 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[]; +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[]; +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[]; +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; +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; @@ -10309,42 +10840,48 @@ export interface VirtualMachineImagesEdgeZoneListOptionalParams } /** Contains response data for the list operation. */ -export type VirtualMachineImagesEdgeZoneListResponse = VirtualMachineImageResource[]; +export type VirtualMachineImagesEdgeZoneListResponse = + VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesEdgeZoneListOffersOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listOffers operation. */ -export type VirtualMachineImagesEdgeZoneListOffersResponse = VirtualMachineImageResource[]; +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[]; +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[]; +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; +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[]; +export type VirtualMachineExtensionImagesListTypesResponse = + VirtualMachineExtensionImage[]; /** Optional parameters. */ export interface VirtualMachineExtensionImagesListVersionsOptionalParams @@ -10356,29 +10893,30 @@ export interface VirtualMachineExtensionImagesListVersionsOptionalParams } /** Contains response data for the listVersions operation. */ -export type VirtualMachineExtensionImagesListVersionsResponse = VirtualMachineExtensionImage[]; +export type VirtualMachineExtensionImagesListVersionsResponse = + VirtualMachineExtensionImage[]; /** 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; @@ -10391,53 +10929,57 @@ export interface AvailabilitySetsListBySubscriptionOptionalParams } /** Contains response data for the listBySubscription operation. */ -export type AvailabilitySetsListBySubscriptionResponse = AvailabilitySetListResult; +export type AvailabilitySetsListBySubscriptionResponse = + AvailabilitySetListResult; /** 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; +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; +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; +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 +10993,53 @@ 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; +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; +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; +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; +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,31 +11053,35 @@ 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; +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; +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; +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; +export type DedicatedHostGroupsListBySubscriptionNextResponse = + DedicatedHostGroupListResult; /** Optional parameters. */ export interface DedicatedHostsCreateOrUpdateOptionalParams @@ -10578,7 +11128,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,79 +11142,100 @@ 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; +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; +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; +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; +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; +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; +export type SshPublicKeysListByResourceGroupNextResponse = + SshPublicKeysGroupListResult; /** Optional parameters. */ export interface ImagesCreateOrUpdateOptionalParams @@ -10710,41 +11281,42 @@ 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; +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,31 +11342,35 @@ 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; +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; +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; +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; +export type RestorePointCollectionsListAllNextResponse = + RestorePointCollectionListResult; /** Optional parameters. */ export interface RestorePointsCreateOptionalParams @@ -10829,21 +11405,22 @@ 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; +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 @@ -10863,31 +11440,37 @@ export interface CapacityReservationGroupsListByResourceGroupOptionalParams } /** Contains response data for the listByResourceGroup operation. */ -export type CapacityReservationGroupsListByResourceGroupResponse = CapacityReservationGroupListResult; +export type CapacityReservationGroupsListByResourceGroupResponse = + CapacityReservationGroupListResult; /** Optional parameters. */ export interface CapacityReservationGroupsListBySubscriptionOptionalParams extends coreClient.OperationOptions { /** The expand expression to apply on the operation. Based on the expand param(s) specified we return Virtual Machine or ScaleSet VM Instance or both resource Ids which are associated to capacity reservation group in the response. */ expand?: ExpandTypesForGetCapacityReservationGroups; + /** The query option to fetch Capacity Reservation Group Resource Ids.
'CreatedInSubscription' enables fetching Resource Ids for all capacity reservation group resources created in the subscription.
'SharedWithSubscription' enables fetching Resource Ids for all capacity reservation group resources shared with the subscription.
'All' enables fetching Resource Ids for all capacity reservation group resources shared with the subscription and created in the subscription. */ + resourceIdsOnly?: ResourceIdOptionsForGetCapacityReservationGroups; } /** Contains response data for the listBySubscription operation. */ -export type CapacityReservationGroupsListBySubscriptionResponse = CapacityReservationGroupListResult; +export type CapacityReservationGroupsListBySubscriptionResponse = + CapacityReservationGroupListResult; /** Optional parameters. */ export interface CapacityReservationGroupsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type CapacityReservationGroupsListByResourceGroupNextResponse = CapacityReservationGroupListResult; +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; +export type CapacityReservationGroupsListBySubscriptionNextResponse = + CapacityReservationGroupListResult; /** Optional parameters. */ export interface CapacityReservationsCreateOrUpdateOptionalParams @@ -10934,17 +11517,19 @@ 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; +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; +export type CapacityReservationsListByCapacityReservationGroupNextResponse = + CapacityReservationListResult; /** Optional parameters. */ export interface LogAnalyticsExportRequestRateByIntervalOptionalParams @@ -10956,7 +11541,8 @@ export interface LogAnalyticsExportRequestRateByIntervalOptionalParams } /** Contains response data for the exportRequestRateByInterval operation. */ -export type LogAnalyticsExportRequestRateByIntervalResponse = LogAnalyticsOperationResult; +export type LogAnalyticsExportRequestRateByIntervalResponse = + LogAnalyticsOperationResult; /** Optional parameters. */ export interface LogAnalyticsExportThrottledRequestsOptionalParams @@ -10968,18 +11554,19 @@ export interface LogAnalyticsExportThrottledRequestsOptionalParams } /** Contains response data for the exportThrottledRequests operation. */ -export type LogAnalyticsExportThrottledRequestsResponse = LogAnalyticsOperationResult; +export type LogAnalyticsExportThrottledRequestsResponse = + LogAnalyticsOperationResult; /** 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; @@ -10994,7 +11581,8 @@ export interface VirtualMachineRunCommandsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineRunCommandsCreateOrUpdateResponse = VirtualMachineRunCommand; +export type VirtualMachineRunCommandsCreateOrUpdateResponse = + VirtualMachineRunCommand; /** Optional parameters. */ export interface VirtualMachineRunCommandsUpdateOptionalParams @@ -11025,7 +11613,8 @@ export interface VirtualMachineRunCommandsGetByVirtualMachineOptionalParams } /** Contains response data for the getByVirtualMachine operation. */ -export type VirtualMachineRunCommandsGetByVirtualMachineResponse = VirtualMachineRunCommand; +export type VirtualMachineRunCommandsGetByVirtualMachineResponse = + VirtualMachineRunCommand; /** Optional parameters. */ export interface VirtualMachineRunCommandsListByVirtualMachineOptionalParams @@ -11035,21 +11624,23 @@ export interface VirtualMachineRunCommandsListByVirtualMachineOptionalParams } /** Contains response data for the listByVirtualMachine operation. */ -export type VirtualMachineRunCommandsListByVirtualMachineResponse = VirtualMachineRunCommandsListResult; +export type VirtualMachineRunCommandsListByVirtualMachineResponse = + VirtualMachineRunCommandsListResult; /** 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; +export type VirtualMachineRunCommandsListByVirtualMachineNextResponse = + VirtualMachineRunCommandsListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams @@ -11061,7 +11652,8 @@ export interface VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse = VirtualMachineRunCommand; +export type VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse = + VirtualMachineRunCommand; /** Optional parameters. */ export interface VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams @@ -11073,7 +11665,8 @@ export interface VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type VirtualMachineScaleSetVMRunCommandsUpdateResponse = VirtualMachineRunCommand; +export type VirtualMachineScaleSetVMRunCommandsUpdateResponse = + VirtualMachineRunCommand; /** Optional parameters. */ export interface VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams @@ -11092,7 +11685,8 @@ export interface VirtualMachineScaleSetVMRunCommandsGetOptionalParams } /** Contains response data for the get operation. */ -export type VirtualMachineScaleSetVMRunCommandsGetResponse = VirtualMachineRunCommand; +export type VirtualMachineScaleSetVMRunCommandsGetResponse = + VirtualMachineRunCommand; /** Optional parameters. */ export interface VirtualMachineScaleSetVMRunCommandsListOptionalParams @@ -11102,14 +11696,16 @@ export interface VirtualMachineScaleSetVMRunCommandsListOptionalParams } /** Contains response data for the list operation. */ -export type VirtualMachineScaleSetVMRunCommandsListResponse = VirtualMachineRunCommandsListResult; +export type VirtualMachineScaleSetVMRunCommandsListResponse = + VirtualMachineRunCommandsListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetVMRunCommandsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type VirtualMachineScaleSetVMRunCommandsListNextResponse = VirtualMachineRunCommandsListResult; +export type VirtualMachineScaleSetVMRunCommandsListNextResponse = + VirtualMachineRunCommandsListResult; /** Optional parameters. */ export interface DisksCreateOrUpdateOptionalParams @@ -11135,7 +11731,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 +11746,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 +11780,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 +11818,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,24 +11834,25 @@ 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; +export type DiskAccessesGetPrivateLinkResourcesResponse = + PrivateLinkResourceListResult; /** Optional parameters. */ export interface DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams @@ -11267,14 +11864,16 @@ export interface DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams } /** Contains response data for the updateAPrivateEndpointConnection operation. */ -export type DiskAccessesUpdateAPrivateEndpointConnectionResponse = PrivateEndpointConnection; +export type DiskAccessesUpdateAPrivateEndpointConnectionResponse = + PrivateEndpointConnection; /** Optional parameters. */ export interface DiskAccessesGetAPrivateEndpointConnectionOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getAPrivateEndpointConnection operation. */ -export type DiskAccessesGetAPrivateEndpointConnectionResponse = PrivateEndpointConnection; +export type DiskAccessesGetAPrivateEndpointConnectionResponse = + PrivateEndpointConnection; /** Optional parameters. */ export interface DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams @@ -11287,31 +11886,33 @@ 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; +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; +export type DiskAccessesListPrivateEndpointConnectionsNextResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface DiskEncryptionSetsCreateOrUpdateOptionalParams @@ -11339,7 +11940,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 +11956,59 @@ 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; +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; +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; +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,10 +12036,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; +export type DiskRestorePointListByRestorePointNextResponse = + DiskRestorePointList; /** Optional parameters. */ export interface SnapshotsCreateOrUpdateOptionalParams @@ -11463,7 +12068,7 @@ export type SnapshotsUpdateResponse = Snapshot; /** Optional parameters. */ export interface SnapshotsGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type SnapshotsGetResponse = Snapshot; @@ -11479,14 +12084,14 @@ export interface SnapshotsDeleteOptionalParams /** Optional parameters. */ export interface SnapshotsListByResourceGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ export type SnapshotsListByResourceGroupResponse = SnapshotList; /** Optional parameters. */ export interface SnapshotsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type SnapshotsListResponse = SnapshotList; @@ -11514,14 +12119,14 @@ export interface SnapshotsRevokeAccessOptionalParams /** Optional parameters. */ export interface SnapshotsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type SnapshotsListByResourceGroupNextResponse = SnapshotList; /** Optional parameters. */ export interface SnapshotsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type SnapshotsListNextResponse = SnapshotList; @@ -11540,7 +12145,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 +12197,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 +12249,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 +12265,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,17 +12322,19 @@ 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; +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; +export type GalleryImageVersionsListByGalleryImageNextResponse = + GalleryImageVersionList; /** Optional parameters. */ export interface GalleryApplicationsCreateOrUpdateOptionalParams @@ -11755,7 +12362,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,17 +12378,18 @@ 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; +export type GalleryApplicationsListByGalleryNextResponse = + GalleryApplicationList; /** Optional parameters. */ export interface GalleryApplicationVersionsCreateOrUpdateOptionalParams @@ -11793,7 +12401,8 @@ export interface GalleryApplicationVersionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type GalleryApplicationVersionsCreateOrUpdateResponse = GalleryApplicationVersion; +export type GalleryApplicationVersionsCreateOrUpdateResponse = + GalleryApplicationVersion; /** Optional parameters. */ export interface GalleryApplicationVersionsUpdateOptionalParams @@ -11805,7 +12414,8 @@ export interface GalleryApplicationVersionsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type GalleryApplicationVersionsUpdateResponse = GalleryApplicationVersion; +export type GalleryApplicationVersionsUpdateResponse = + GalleryApplicationVersion; /** Optional parameters. */ export interface GalleryApplicationVersionsGetOptionalParams @@ -11828,17 +12438,19 @@ 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; +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; +export type GalleryApplicationVersionsListByGalleryApplicationNextResponse = + GalleryApplicationVersionList; /** Optional parameters. */ export interface GallerySharingProfileUpdateOptionalParams @@ -11864,14 +12476,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 +12500,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; @@ -11908,70 +12520,75 @@ export interface SharedGalleryImageVersionsListOptionalParams } /** Contains response data for the list operation. */ -export type SharedGalleryImageVersionsListResponse = SharedGalleryImageVersionList; +export type SharedGalleryImageVersionsListResponse = + SharedGalleryImageVersionList; /** 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; +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; +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; +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; +export type CommunityGalleryImageVersionsListNextResponse = + CommunityGalleryImageVersionList; /** Optional parameters. */ export interface CloudServiceRoleInstancesDeleteOptionalParams @@ -11994,7 +12611,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 +12655,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 +12677,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 +12742,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 +12832,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,66 +12857,72 @@ 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; +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; +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; +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; +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; +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; +export type CloudServiceOperatingSystemsListOSFamiliesNextResponse = + OSFamilyListResult; /** Optional parameters. */ export interface ComputeManagementClientOptionalParams diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index f9f5533ae745..dd59cd325ee2 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -21,13 +21,13 @@ export const ComputeOperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ComputeOperationValue" - } - } - } - } - } - } + className: "ComputeOperationValue", + }, + }, + }, + }, + }, + }, }; export const ComputeOperationValue: coreClient.CompositeMapper = { @@ -39,46 +39,46 @@ export const ComputeOperationValue: coreClient.CompositeMapper = { serializedName: "origin", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "display.operation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "display.resource", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "display.description", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provider: { serializedName: "display.provider", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudError: coreClient.CompositeMapper = { @@ -90,11 +90,11 @@ export const CloudError: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ApiError" - } - } - } - } + className: "ApiError", + }, + }, + }, + }, }; export const ApiError: coreClient.CompositeMapper = { @@ -109,38 +109,38 @@ export const ApiError: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiErrorBase" - } - } - } + className: "ApiErrorBase", + }, + }, + }, }, innererror: { serializedName: "innererror", type: { name: "Composite", - className: "InnerError" - } + className: "InnerError", + }, }, code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiErrorBase: coreClient.CompositeMapper = { @@ -151,23 +151,23 @@ export const ApiErrorBase: coreClient.CompositeMapper = { code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const InnerError: coreClient.CompositeMapper = { @@ -178,17 +178,17 @@ export const InnerError: coreClient.CompositeMapper = { exceptiontype: { serializedName: "exceptiontype", type: { - name: "String" - } + name: "String", + }, }, errordetail: { serializedName: "errordetail", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListUsagesResult: coreClient.CompositeMapper = { @@ -204,19 +204,19 @@ export const ListUsagesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Usage" - } - } - } + className: "Usage", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Usage: coreClient.CompositeMapper = { @@ -229,32 +229,32 @@ export const Usage: coreClient.CompositeMapper = { isConstant: true, serializedName: "unit", type: { - name: "String" - } + name: "String", + }, }, currentValue: { serializedName: "currentValue", required: true, type: { - name: "Number" - } + name: "Number", + }, }, limit: { serializedName: "limit", required: true, type: { - name: "Number" - } + name: "Number", + }, }, name: { serializedName: "name", type: { name: "Composite", - className: "UsageName" - } - } - } - } + className: "UsageName", + }, + }, + }, + }, }; export const UsageName: coreClient.CompositeMapper = { @@ -265,17 +265,17 @@ export const UsageName: coreClient.CompositeMapper = { value: { serializedName: "value", type: { - name: "String" - } + name: "String", + }, }, localizedValue: { serializedName: "localizedValue", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineSizeListResult: coreClient.CompositeMapper = { @@ -290,13 +290,13 @@ export const VirtualMachineSizeListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineSize" - } - } - } - } - } - } + className: "VirtualMachineSize", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineSize: coreClient.CompositeMapper = { @@ -307,41 +307,41 @@ export const VirtualMachineSize: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, numberOfCores: { serializedName: "numberOfCores", type: { - name: "Number" - } + name: "Number", + }, }, osDiskSizeInMB: { serializedName: "osDiskSizeInMB", type: { - name: "Number" - } + name: "Number", + }, }, resourceDiskSizeInMB: { serializedName: "resourceDiskSizeInMB", type: { - name: "Number" - } + name: "Number", + }, }, memoryInMB: { serializedName: "memoryInMB", type: { - name: "Number" - } + name: "Number", + }, }, maxDataDiskCount: { serializedName: "maxDataDiskCount", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const VirtualMachineScaleSetListResult: coreClient.CompositeMapper = { @@ -357,19 +357,19 @@ export const VirtualMachineScaleSetListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineScaleSet" - } - } - } + className: "VirtualMachineScaleSet", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Sku: coreClient.CompositeMapper = { @@ -380,23 +380,23 @@ export const Sku: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const Plan: coreClient.CompositeMapper = { @@ -407,29 +407,29 @@ export const Plan: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "publisher", type: { - name: "String" - } + name: "String", + }, }, product: { serializedName: "product", type: { - name: "String" - } + name: "String", + }, }, promotionCode: { serializedName: "promotionCode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UpgradePolicy: coreClient.CompositeMapper = { @@ -441,25 +441,25 @@ export const UpgradePolicy: coreClient.CompositeMapper = { serializedName: "mode", type: { name: "Enum", - allowedValues: ["Automatic", "Manual", "Rolling"] - } + allowedValues: ["Automatic", "Manual", "Rolling"], + }, }, rollingUpgradePolicy: { serializedName: "rollingUpgradePolicy", type: { name: "Composite", - className: "RollingUpgradePolicy" - } + className: "RollingUpgradePolicy", + }, }, automaticOSUpgradePolicy: { serializedName: "automaticOSUpgradePolicy", type: { name: "Composite", - className: "AutomaticOSUpgradePolicy" - } - } - } - } + className: "AutomaticOSUpgradePolicy", + }, + }, + }, + }, }; export const RollingUpgradePolicy: coreClient.CompositeMapper = { @@ -470,65 +470,65 @@ export const RollingUpgradePolicy: coreClient.CompositeMapper = { maxBatchInstancePercent: { constraints: { InclusiveMaximum: 100, - InclusiveMinimum: 5 + InclusiveMinimum: 5, }, serializedName: "maxBatchInstancePercent", type: { - name: "Number" - } + name: "Number", + }, }, maxUnhealthyInstancePercent: { constraints: { InclusiveMaximum: 100, - InclusiveMinimum: 5 + InclusiveMinimum: 5, }, serializedName: "maxUnhealthyInstancePercent", type: { - name: "Number" - } + name: "Number", + }, }, maxUnhealthyUpgradedInstancePercent: { constraints: { InclusiveMaximum: 100, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "maxUnhealthyUpgradedInstancePercent", type: { - name: "Number" - } + name: "Number", + }, }, pauseTimeBetweenBatches: { serializedName: "pauseTimeBetweenBatches", type: { - name: "String" - } + name: "String", + }, }, enableCrossZoneUpgrade: { serializedName: "enableCrossZoneUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, prioritizeUnhealthyInstances: { serializedName: "prioritizeUnhealthyInstances", type: { - name: "Boolean" - } + name: "Boolean", + }, }, rollbackFailedInstancesOnPolicyBreach: { serializedName: "rollbackFailedInstancesOnPolicyBreach", type: { - name: "Boolean" - } + name: "Boolean", + }, }, maxSurge: { serializedName: "maxSurge", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const AutomaticOSUpgradePolicy: coreClient.CompositeMapper = { @@ -539,23 +539,121 @@ export const AutomaticOSUpgradePolicy: coreClient.CompositeMapper = { enableAutomaticOSUpgrade: { serializedName: "enableAutomaticOSUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, disableAutomaticRollback: { serializedName: "disableAutomaticRollback", type: { - name: "Boolean" - } + name: "Boolean", + }, }, useRollingUpgradePolicy: { serializedName: "useRollingUpgradePolicy", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + osRollingUpgradeDeferral: { + serializedName: "osRollingUpgradeDeferral", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const ScheduledEventsPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScheduledEventsPolicy", + modelProperties: { + userInitiatedRedeploy: { + serializedName: "userInitiatedRedeploy", + type: { + name: "Composite", + className: "UserInitiatedRedeploy", + }, + }, + userInitiatedReboot: { + serializedName: "userInitiatedReboot", + type: { + name: "Composite", + className: "UserInitiatedReboot", + }, + }, + scheduledEventsAdditionalPublishingTargets: { + serializedName: "scheduledEventsAdditionalPublishingTargets", + type: { + name: "Composite", + className: "ScheduledEventsAdditionalPublishingTargets", + }, + }, + }, + }, +}; + +export const UserInitiatedRedeploy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserInitiatedRedeploy", + modelProperties: { + automaticallyApprove: { + serializedName: "automaticallyApprove", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const UserInitiatedReboot: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserInitiatedReboot", + modelProperties: { + automaticallyApprove: { + serializedName: "automaticallyApprove", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const ScheduledEventsAdditionalPublishingTargets: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ScheduledEventsAdditionalPublishingTargets", + modelProperties: { + eventGridAndResourceGraph: { + serializedName: "eventGridAndResourceGraph", + type: { + name: "Composite", + className: "EventGridAndResourceGraph", + }, + }, + }, + }, + }; + +export const EventGridAndResourceGraph: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EventGridAndResourceGraph", + modelProperties: { + enable: { + serializedName: "enable", + type: { + name: "Boolean", + }, + }, + }, + }, }; export const AutomaticRepairsPolicy: coreClient.CompositeMapper = { @@ -566,23 +664,23 @@ export const AutomaticRepairsPolicy: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, gracePeriod: { serializedName: "gracePeriod", type: { - name: "String" - } + name: "String", + }, }, repairAction: { serializedName: "repairAction", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineScaleSetVMProfile: coreClient.CompositeMapper = { @@ -594,119 +692,126 @@ export const VirtualMachineScaleSetVMProfile: coreClient.CompositeMapper = { serializedName: "osProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetOSProfile" - } + className: "VirtualMachineScaleSetOSProfile", + }, }, storageProfile: { serializedName: "storageProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetStorageProfile" - } + className: "VirtualMachineScaleSetStorageProfile", + }, }, networkProfile: { serializedName: "networkProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetNetworkProfile" - } + className: "VirtualMachineScaleSetNetworkProfile", + }, }, securityProfile: { serializedName: "securityProfile", type: { name: "Composite", - className: "SecurityProfile" - } + className: "SecurityProfile", + }, }, diagnosticsProfile: { serializedName: "diagnosticsProfile", type: { name: "Composite", - className: "DiagnosticsProfile" - } + className: "DiagnosticsProfile", + }, }, extensionProfile: { serializedName: "extensionProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetExtensionProfile" - } + className: "VirtualMachineScaleSetExtensionProfile", + }, }, licenseType: { serializedName: "licenseType", type: { - name: "String" - } + name: "String", + }, }, priority: { serializedName: "priority", type: { - name: "String" - } + name: "String", + }, }, evictionPolicy: { serializedName: "evictionPolicy", type: { - name: "String" - } + name: "String", + }, }, billingProfile: { serializedName: "billingProfile", type: { name: "Composite", - className: "BillingProfile" - } + className: "BillingProfile", + }, }, scheduledEventsProfile: { serializedName: "scheduledEventsProfile", type: { name: "Composite", - className: "ScheduledEventsProfile" - } + className: "ScheduledEventsProfile", + }, }, userData: { serializedName: "userData", type: { - name: "String" - } + name: "String", + }, }, capacityReservation: { serializedName: "capacityReservation", type: { name: "Composite", - className: "CapacityReservationProfile" - } + className: "CapacityReservationProfile", + }, }, applicationProfile: { serializedName: "applicationProfile", type: { name: "Composite", - className: "ApplicationProfile" - } + className: "ApplicationProfile", + }, }, hardwareProfile: { serializedName: "hardwareProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetHardwareProfile" - } + className: "VirtualMachineScaleSetHardwareProfile", + }, }, serviceArtifactReference: { serializedName: "serviceArtifactReference", type: { name: "Composite", - className: "ServiceArtifactReference" - } + className: "ServiceArtifactReference", + }, }, securityPostureReference: { serializedName: "securityPostureReference", type: { name: "Composite", - className: "SecurityPostureReference" - } - } - } - } + className: "SecurityPostureReference", + }, + }, + timeCreated: { + serializedName: "timeCreated", + readOnly: true, + type: { + name: "DateTime", + }, + }, + }, + }, }; export const VirtualMachineScaleSetOSProfile: coreClient.CompositeMapper = { @@ -717,40 +822,40 @@ export const VirtualMachineScaleSetOSProfile: coreClient.CompositeMapper = { computerNamePrefix: { serializedName: "computerNamePrefix", type: { - name: "String" - } + name: "String", + }, }, adminUsername: { serializedName: "adminUsername", type: { - name: "String" - } + name: "String", + }, }, adminPassword: { serializedName: "adminPassword", type: { - name: "String" - } + name: "String", + }, }, customData: { serializedName: "customData", type: { - name: "String" - } + name: "String", + }, }, windowsConfiguration: { serializedName: "windowsConfiguration", type: { name: "Composite", - className: "WindowsConfiguration" - } + className: "WindowsConfiguration", + }, }, linuxConfiguration: { serializedName: "linuxConfiguration", type: { name: "Composite", - className: "LinuxConfiguration" - } + className: "LinuxConfiguration", + }, }, secrets: { serializedName: "secrets", @@ -759,25 +864,25 @@ export const VirtualMachineScaleSetOSProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VaultSecretGroup" - } - } - } + className: "VaultSecretGroup", + }, + }, + }, }, allowExtensionOperations: { serializedName: "allowExtensionOperations", type: { - name: "Boolean" - } + name: "Boolean", + }, }, requireGuestProvisionSignal: { serializedName: "requireGuestProvisionSignal", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const WindowsConfiguration: coreClient.CompositeMapper = { @@ -788,20 +893,20 @@ export const WindowsConfiguration: coreClient.CompositeMapper = { provisionVMAgent: { serializedName: "provisionVMAgent", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAutomaticUpdates: { serializedName: "enableAutomaticUpdates", type: { - name: "Boolean" - } + name: "Boolean", + }, }, timeZone: { serializedName: "timeZone", type: { - name: "String" - } + name: "String", + }, }, additionalUnattendContent: { serializedName: "additionalUnattendContent", @@ -810,33 +915,33 @@ export const WindowsConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AdditionalUnattendContent" - } - } - } + className: "AdditionalUnattendContent", + }, + }, + }, }, patchSettings: { serializedName: "patchSettings", type: { name: "Composite", - className: "PatchSettings" - } + className: "PatchSettings", + }, }, winRM: { serializedName: "winRM", type: { name: "Composite", - className: "WinRMConfiguration" - } + className: "WinRMConfiguration", + }, }, enableVMAgentPlatformUpdates: { serializedName: "enableVMAgentPlatformUpdates", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const AdditionalUnattendContent: coreClient.CompositeMapper = { @@ -849,32 +954,32 @@ export const AdditionalUnattendContent: coreClient.CompositeMapper = { isConstant: true, serializedName: "passName", type: { - name: "String" - } + name: "String", + }, }, componentName: { defaultValue: "Microsoft-Windows-Shell-Setup", isConstant: true, serializedName: "componentName", type: { - name: "String" - } + name: "String", + }, }, settingName: { serializedName: "settingName", type: { name: "Enum", - allowedValues: ["AutoLogon", "FirstLogonCommands"] - } + allowedValues: ["AutoLogon", "FirstLogonCommands"], + }, }, content: { serializedName: "content", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PatchSettings: coreClient.CompositeMapper = { @@ -885,52 +990,53 @@ export const PatchSettings: coreClient.CompositeMapper = { patchMode: { serializedName: "patchMode", type: { - name: "String" - } + name: "String", + }, }, enableHotpatching: { serializedName: "enableHotpatching", type: { - name: "Boolean" - } + name: "Boolean", + }, }, assessmentMode: { serializedName: "assessmentMode", type: { - name: "String" - } + name: "String", + }, }, automaticByPlatformSettings: { serializedName: "automaticByPlatformSettings", type: { name: "Composite", - className: "WindowsVMGuestPatchAutomaticByPlatformSettings" - } - } - } - } -}; - -export const WindowsVMGuestPatchAutomaticByPlatformSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WindowsVMGuestPatchAutomaticByPlatformSettings", - modelProperties: { - rebootSetting: { - serializedName: "rebootSetting", - type: { - name: "String" - } + className: "WindowsVMGuestPatchAutomaticByPlatformSettings", + }, }, - bypassPlatformSafetyChecksOnUserSchedule: { - serializedName: "bypassPlatformSafetyChecksOnUserSchedule", - type: { - name: "Boolean" - } - } - } - } -}; + }, + }, +}; + +export const WindowsVMGuestPatchAutomaticByPlatformSettings: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "WindowsVMGuestPatchAutomaticByPlatformSettings", + modelProperties: { + rebootSetting: { + serializedName: "rebootSetting", + type: { + name: "String", + }, + }, + bypassPlatformSafetyChecksOnUserSchedule: { + serializedName: "bypassPlatformSafetyChecksOnUserSchedule", + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const WinRMConfiguration: coreClient.CompositeMapper = { type: { @@ -944,13 +1050,13 @@ export const WinRMConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "WinRMListener" - } - } - } - } - } - } + className: "WinRMListener", + }, + }, + }, + }, + }, + }, }; export const WinRMListener: coreClient.CompositeMapper = { @@ -962,17 +1068,17 @@ export const WinRMListener: coreClient.CompositeMapper = { serializedName: "protocol", type: { name: "Enum", - allowedValues: ["Http", "Https"] - } + allowedValues: ["Http", "Https"], + }, }, certificateUrl: { serializedName: "certificateUrl", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LinuxConfiguration: coreClient.CompositeMapper = { @@ -983,37 +1089,37 @@ export const LinuxConfiguration: coreClient.CompositeMapper = { disablePasswordAuthentication: { serializedName: "disablePasswordAuthentication", type: { - name: "Boolean" - } + name: "Boolean", + }, }, ssh: { serializedName: "ssh", type: { name: "Composite", - className: "SshConfiguration" - } + className: "SshConfiguration", + }, }, provisionVMAgent: { serializedName: "provisionVMAgent", type: { - name: "Boolean" - } + name: "Boolean", + }, }, patchSettings: { serializedName: "patchSettings", type: { name: "Composite", - className: "LinuxPatchSettings" - } + className: "LinuxPatchSettings", + }, }, enableVMAgentPlatformUpdates: { serializedName: "enableVMAgentPlatformUpdates", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SshConfiguration: coreClient.CompositeMapper = { @@ -1028,13 +1134,13 @@ export const SshConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SshPublicKey" - } - } - } - } - } - } + className: "SshPublicKey", + }, + }, + }, + }, + }, + }, }; export const SshPublicKey: coreClient.CompositeMapper = { @@ -1045,17 +1151,17 @@ export const SshPublicKey: coreClient.CompositeMapper = { path: { serializedName: "path", type: { - name: "String" - } + name: "String", + }, }, keyData: { serializedName: "keyData", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LinuxPatchSettings: coreClient.CompositeMapper = { @@ -1066,46 +1172,47 @@ export const LinuxPatchSettings: coreClient.CompositeMapper = { patchMode: { serializedName: "patchMode", type: { - name: "String" - } + name: "String", + }, }, assessmentMode: { serializedName: "assessmentMode", type: { - name: "String" - } + name: "String", + }, }, automaticByPlatformSettings: { serializedName: "automaticByPlatformSettings", type: { name: "Composite", - className: "LinuxVMGuestPatchAutomaticByPlatformSettings" - } - } - } - } -}; - -export const LinuxVMGuestPatchAutomaticByPlatformSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LinuxVMGuestPatchAutomaticByPlatformSettings", - modelProperties: { - rebootSetting: { - serializedName: "rebootSetting", - type: { - name: "String" - } + className: "LinuxVMGuestPatchAutomaticByPlatformSettings", + }, }, - bypassPlatformSafetyChecksOnUserSchedule: { - serializedName: "bypassPlatformSafetyChecksOnUserSchedule", - type: { - name: "Boolean" - } - } - } - } -}; + }, + }, +}; + +export const LinuxVMGuestPatchAutomaticByPlatformSettings: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "LinuxVMGuestPatchAutomaticByPlatformSettings", + modelProperties: { + rebootSetting: { + serializedName: "rebootSetting", + type: { + name: "String", + }, + }, + bypassPlatformSafetyChecksOnUserSchedule: { + serializedName: "bypassPlatformSafetyChecksOnUserSchedule", + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const VaultSecretGroup: coreClient.CompositeMapper = { type: { @@ -1116,8 +1223,8 @@ export const VaultSecretGroup: coreClient.CompositeMapper = { serializedName: "sourceVault", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, vaultCertificates: { serializedName: "vaultCertificates", @@ -1126,13 +1233,13 @@ export const VaultSecretGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VaultCertificate" - } - } - } - } - } - } + className: "VaultCertificate", + }, + }, + }, + }, + }, + }, }; export const SubResource: coreClient.CompositeMapper = { @@ -1143,11 +1250,11 @@ export const SubResource: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VaultCertificate: coreClient.CompositeMapper = { @@ -1158,59 +1265,60 @@ export const VaultCertificate: coreClient.CompositeMapper = { certificateUrl: { serializedName: "certificateUrl", type: { - name: "String" - } + name: "String", + }, }, certificateStore: { serializedName: "certificateStore", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetStorageProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetStorageProfile", - modelProperties: { - imageReference: { - serializedName: "imageReference", - type: { - name: "Composite", - className: "ImageReference" - } - }, - osDisk: { - serializedName: "osDisk", - type: { - name: "Composite", - className: "VirtualMachineScaleSetOSDisk" - } + name: "String", + }, }, - dataDisks: { - serializedName: "dataDisks", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetDataDisk" - } - } - } + }, + }, +}; + +export const VirtualMachineScaleSetStorageProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetStorageProfile", + modelProperties: { + imageReference: { + serializedName: "imageReference", + type: { + name: "Composite", + className: "ImageReference", + }, + }, + osDisk: { + serializedName: "osDisk", + type: { + name: "Composite", + className: "VirtualMachineScaleSetOSDisk", + }, + }, + dataDisks: { + serializedName: "dataDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetDataDisk", + }, + }, + }, + }, + diskControllerType: { + serializedName: "diskControllerType", + type: { + name: "String", + }, + }, }, - diskControllerType: { - serializedName: "diskControllerType", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const VirtualMachineScaleSetOSDisk: coreClient.CompositeMapper = { type: { @@ -1220,55 +1328,55 @@ export const VirtualMachineScaleSetOSDisk: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, caching: { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, createOption: { serializedName: "createOption", required: true, type: { - name: "String" - } + name: "String", + }, }, diffDiskSettings: { serializedName: "diffDiskSettings", type: { name: "Composite", - className: "DiffDiskSettings" - } + className: "DiffDiskSettings", + }, }, diskSizeGB: { serializedName: "diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, osType: { serializedName: "osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, image: { serializedName: "image", type: { name: "Composite", - className: "VirtualHardDisk" - } + className: "VirtualHardDisk", + }, }, vhdContainers: { serializedName: "vhdContainers", @@ -1276,26 +1384,26 @@ export const VirtualMachineScaleSetOSDisk: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "VirtualMachineScaleSetManagedDiskParameters" - } + className: "VirtualMachineScaleSetManagedDiskParameters", + }, }, deleteOption: { serializedName: "deleteOption", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiffDiskSettings: coreClient.CompositeMapper = { @@ -1306,17 +1414,17 @@ export const DiffDiskSettings: coreClient.CompositeMapper = { option: { serializedName: "option", type: { - name: "String" - } + name: "String", + }, }, placement: { serializedName: "placement", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualHardDisk: coreClient.CompositeMapper = { @@ -1327,41 +1435,42 @@ export const VirtualHardDisk: coreClient.CompositeMapper = { uri: { serializedName: "uri", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetManagedDiskParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetManagedDiskParameters", - modelProperties: { - storageAccountType: { - serializedName: "storageAccountType", - type: { - name: "String" - } + name: "String", + }, }, - diskEncryptionSet: { - serializedName: "diskEncryptionSet", - type: { - name: "Composite", - className: "DiskEncryptionSetParameters" - } + }, + }, +}; + +export const VirtualMachineScaleSetManagedDiskParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetManagedDiskParameters", + modelProperties: { + storageAccountType: { + serializedName: "storageAccountType", + type: { + name: "String", + }, + }, + diskEncryptionSet: { + serializedName: "diskEncryptionSet", + type: { + name: "Composite", + className: "DiskEncryptionSetParameters", + }, + }, + securityProfile: { + serializedName: "securityProfile", + type: { + name: "Composite", + className: "VMDiskSecurityProfile", + }, + }, }, - securityProfile: { - serializedName: "securityProfile", - type: { - name: "Composite", - className: "VMDiskSecurityProfile" - } - } - } - } -}; + }, + }; export const VMDiskSecurityProfile: coreClient.CompositeMapper = { type: { @@ -1371,18 +1480,18 @@ export const VMDiskSecurityProfile: coreClient.CompositeMapper = { securityEncryptionType: { serializedName: "securityEncryptionType", type: { - name: "String" - } + name: "String", + }, }, diskEncryptionSet: { serializedName: "diskEncryptionSet", type: { name: "Composite", - className: "DiskEncryptionSetParameters" - } - } - } - } + className: "DiskEncryptionSetParameters", + }, + }, + }, + }, }; export const VirtualMachineScaleSetDataDisk: coreClient.CompositeMapper = { @@ -1393,104 +1502,105 @@ export const VirtualMachineScaleSetDataDisk: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, lun: { serializedName: "lun", required: true, type: { - name: "Number" - } + name: "Number", + }, }, caching: { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, createOption: { serializedName: "createOption", required: true, type: { - name: "String" - } + name: "String", + }, }, diskSizeGB: { serializedName: "diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "VirtualMachineScaleSetManagedDiskParameters" - } + className: "VirtualMachineScaleSetManagedDiskParameters", + }, }, diskIopsReadWrite: { serializedName: "diskIOPSReadWrite", type: { - name: "Number" - } + name: "Number", + }, }, diskMBpsReadWrite: { serializedName: "diskMBpsReadWrite", type: { - name: "Number" - } + name: "Number", + }, }, deleteOption: { serializedName: "deleteOption", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetNetworkProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkProfile", - modelProperties: { - healthProbe: { - serializedName: "healthProbe", - type: { - name: "Composite", - className: "ApiEntityReference" - } + name: "String", + }, }, - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfiguration" - } - } - } + }, + }, +}; + +export const VirtualMachineScaleSetNetworkProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkProfile", + modelProperties: { + healthProbe: { + serializedName: "healthProbe", + type: { + name: "Composite", + className: "ApiEntityReference", + }, + }, + networkInterfaceConfigurations: { + serializedName: "networkInterfaceConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfiguration", + }, + }, + }, + }, + networkApiVersion: { + serializedName: "networkApiVersion", + type: { + name: "String", + }, + }, }, - networkApiVersion: { - serializedName: "networkApiVersion", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const ApiEntityReference: coreClient.CompositeMapper = { type: { @@ -1500,302 +1610,308 @@ export const ApiEntityReference: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetNetworkConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfiguration", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - primary: { - serializedName: "properties.primary", - type: { - name: "Boolean" - } - }, - enableAcceleratedNetworking: { - serializedName: "properties.enableAcceleratedNetworking", - type: { - name: "Boolean" - } - }, - disableTcpStateTracking: { - serializedName: "properties.disableTcpStateTracking", - type: { - name: "Boolean" - } - }, - enableFpga: { - serializedName: "properties.enableFpga", - type: { - name: "Boolean" - } - }, - networkSecurityGroup: { - serializedName: "properties.networkSecurityGroup", - type: { - name: "Composite", - className: "SubResource" - } - }, - dnsSettings: { - serializedName: "properties.dnsSettings", - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" - } - }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetIPConfiguration" - } - } - } - }, - enableIPForwarding: { - serializedName: "properties.enableIPForwarding", - type: { - name: "Boolean" - } - }, - deleteOption: { - serializedName: "properties.deleteOption", - type: { - name: "String" - } - }, - auxiliaryMode: { - serializedName: "properties.auxiliaryMode", - type: { - name: "String" - } - }, - auxiliarySku: { - serializedName: "properties.auxiliarySku", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetNetworkConfigurationDnsSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings", - modelProperties: { - dnsServers: { - serializedName: "dnsServers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetIPConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetIPConfiguration", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - subnet: { - serializedName: "properties.subnet", - type: { - name: "Composite", - className: "ApiEntityReference" - } - }, - primary: { - serializedName: "properties.primary", - type: { - name: "Boolean" - } - }, - publicIPAddressConfiguration: { - serializedName: "properties.publicIPAddressConfiguration", - type: { - name: "Composite", - className: "VirtualMachineScaleSetPublicIPAddressConfiguration" - } - }, - privateIPAddressVersion: { - serializedName: "properties.privateIPAddressVersion", - type: { - name: "String" - } - }, - applicationGatewayBackendAddressPools: { - serializedName: "properties.applicationGatewayBackendAddressPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - applicationSecurityGroups: { - serializedName: "properties.applicationSecurityGroups", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - loadBalancerBackendAddressPools: { - serializedName: "properties.loadBalancerBackendAddressPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - loadBalancerInboundNatPools: { - serializedName: "properties.loadBalancerInboundNatPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetPublicIPAddressConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetPublicIPAddressConfiguration", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "PublicIPAddressSku" - } - }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", - type: { - name: "Number" - } + name: "String", + }, }, - dnsSettings: { - serializedName: "properties.dnsSettings", - type: { - name: "Composite", - className: - "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" - } + }, + }, +}; + +export const VirtualMachineScaleSetNetworkConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean", + }, + }, + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", + type: { + name: "Boolean", + }, + }, + disableTcpStateTracking: { + serializedName: "properties.disableTcpStateTracking", + type: { + name: "Boolean", + }, + }, + enableFpga: { + serializedName: "properties.enableFpga", + type: { + name: "Boolean", + }, + }, + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", + type: { + name: "Composite", + className: "SubResource", + }, + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings", + }, + }, + ipConfigurations: { + serializedName: "properties.ipConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetIPConfiguration", + }, + }, + }, + }, + enableIPForwarding: { + serializedName: "properties.enableIPForwarding", + type: { + name: "Boolean", + }, + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String", + }, + }, + auxiliaryMode: { + serializedName: "properties.auxiliaryMode", + type: { + name: "String", + }, + }, + auxiliarySku: { + serializedName: "properties.auxiliarySku", + type: { + name: "String", + }, + }, }, - ipTags: { - serializedName: "properties.ipTags", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetIpTag" - } - } - } + }, + }; + +export const VirtualMachineScaleSetNetworkConfigurationDnsSettings: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings", + modelProperties: { + dnsServers: { + serializedName: "dnsServers", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, }, - publicIPPrefix: { - serializedName: "properties.publicIPPrefix", - type: { - name: "Composite", - className: "SubResource" - } + }, + }; + +export const VirtualMachineScaleSetIPConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetIPConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "ApiEntityReference", + }, + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean", + }, + }, + publicIPAddressConfiguration: { + serializedName: "properties.publicIPAddressConfiguration", + type: { + name: "Composite", + className: "VirtualMachineScaleSetPublicIPAddressConfiguration", + }, + }, + privateIPAddressVersion: { + serializedName: "properties.privateIPAddressVersion", + type: { + name: "String", + }, + }, + applicationGatewayBackendAddressPools: { + serializedName: "properties.applicationGatewayBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + applicationSecurityGroups: { + serializedName: "properties.applicationSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + loadBalancerBackendAddressPools: { + serializedName: "properties.loadBalancerBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + loadBalancerInboundNatPools: { + serializedName: "properties.loadBalancerInboundNatPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, }, - publicIPAddressVersion: { - serializedName: "properties.publicIPAddressVersion", - type: { - name: "String" - } + }, + }; + +export const VirtualMachineScaleSetPublicIPAddressConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetPublicIPAddressConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "PublicIPAddressSku", + }, + }, + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number", + }, + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: + "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings", + }, + }, + ipTags: { + serializedName: "properties.ipTags", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetIpTag", + }, + }, + }, + }, + publicIPPrefix: { + serializedName: "properties.publicIPPrefix", + type: { + name: "Composite", + className: "SubResource", + }, + }, + publicIPAddressVersion: { + serializedName: "properties.publicIPAddressVersion", + type: { + name: "String", + }, + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String", + }, + }, }, - deleteOption: { - serializedName: "properties.deleteOption", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings", - modelProperties: { - domainNameLabel: { - serializedName: "domainNameLabel", - required: true, - type: { - name: "String" - } + }, + }; + +export const VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: + "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings", + modelProperties: { + domainNameLabel: { + serializedName: "domainNameLabel", + required: true, + type: { + name: "String", + }, + }, + domainNameLabelScope: { + serializedName: "domainNameLabelScope", + type: { + name: "String", + }, + }, }, - domainNameLabelScope: { - serializedName: "domainNameLabelScope", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const VirtualMachineScaleSetIpTag: coreClient.CompositeMapper = { type: { @@ -1805,17 +1921,17 @@ export const VirtualMachineScaleSetIpTag: coreClient.CompositeMapper = { ipTagType: { serializedName: "ipTagType", type: { - name: "String" - } + name: "String", + }, }, tag: { serializedName: "tag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PublicIPAddressSku: coreClient.CompositeMapper = { @@ -1826,17 +1942,17 @@ export const PublicIPAddressSku: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SecurityProfile: coreClient.CompositeMapper = { @@ -1848,23 +1964,37 @@ export const SecurityProfile: coreClient.CompositeMapper = { serializedName: "uefiSettings", type: { name: "Composite", - className: "UefiSettings" - } + className: "UefiSettings", + }, }, encryptionAtHost: { serializedName: "encryptionAtHost", type: { - name: "Boolean" - } + name: "Boolean", + }, }, securityType: { serializedName: "securityType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + encryptionIdentity: { + serializedName: "encryptionIdentity", + type: { + name: "Composite", + className: "EncryptionIdentity", + }, + }, + proxyAgentSettings: { + serializedName: "proxyAgentSettings", + type: { + name: "Composite", + className: "ProxyAgentSettings", + }, + }, + }, + }, }; export const UefiSettings: coreClient.CompositeMapper = { @@ -1875,83 +2005,126 @@ export const UefiSettings: coreClient.CompositeMapper = { secureBootEnabled: { serializedName: "secureBootEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, vTpmEnabled: { serializedName: "vTpmEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; -export const DiagnosticsProfile: coreClient.CompositeMapper = { +export const EncryptionIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiagnosticsProfile", + className: "EncryptionIdentity", modelProperties: { - bootDiagnostics: { - serializedName: "bootDiagnostics", + userAssignedIdentityResourceId: { + serializedName: "userAssignedIdentityResourceId", type: { - name: "Composite", - className: "BootDiagnostics" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BootDiagnostics: coreClient.CompositeMapper = { +export const ProxyAgentSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BootDiagnostics", + className: "ProxyAgentSettings", modelProperties: { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, - storageUri: { - serializedName: "storageUri", + mode: { + serializedName: "mode", + type: { + name: "String", + }, + }, + keyIncarnationId: { + serializedName: "keyIncarnationId", type: { - name: "String" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; -export const VirtualMachineScaleSetExtensionProfile: coreClient.CompositeMapper = { +export const DiagnosticsProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetExtensionProfile", + className: "DiagnosticsProfile", modelProperties: { - extensions: { - serializedName: "extensions", + bootDiagnostics: { + serializedName: "bootDiagnostics", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetExtension" - } - } - } + name: "Composite", + className: "BootDiagnostics", + }, }, - extensionsTimeBudget: { - serializedName: "extensionsTimeBudget", - type: { - name: "String" - } - } - } - } + }, + }, }; +export const BootDiagnostics: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BootDiagnostics", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", + }, + }, + storageUri: { + serializedName: "storageUri", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetExtensionProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtensionProfile", + modelProperties: { + extensions: { + serializedName: "extensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtension", + }, + }, + }, + }, + extensionsTimeBudget: { + serializedName: "extensionsTimeBudget", + type: { + name: "String", + }, + }, + }, + }, + }; + export const KeyVaultSecretReference: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1961,18 +2134,18 @@ export const KeyVaultSecretReference: coreClient.CompositeMapper = { serializedName: "secretUrl", required: true, type: { - name: "String" - } + name: "String", + }, }, sourceVault: { serializedName: "sourceVault", type: { name: "Composite", - className: "SubResource" - } - } - } - } + className: "SubResource", + }, + }, + }, + }, }; export const SubResourceReadOnly: coreClient.CompositeMapper = { @@ -1984,11 +2157,11 @@ export const SubResourceReadOnly: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BillingProfile: coreClient.CompositeMapper = { @@ -1999,11 +2172,11 @@ export const BillingProfile: coreClient.CompositeMapper = { maxPrice: { serializedName: "maxPrice", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ScheduledEventsProfile: coreClient.CompositeMapper = { @@ -2015,18 +2188,18 @@ export const ScheduledEventsProfile: coreClient.CompositeMapper = { serializedName: "terminateNotificationProfile", type: { name: "Composite", - className: "TerminateNotificationProfile" - } + className: "TerminateNotificationProfile", + }, }, osImageNotificationProfile: { serializedName: "osImageNotificationProfile", type: { name: "Composite", - className: "OSImageNotificationProfile" - } - } - } - } + className: "OSImageNotificationProfile", + }, + }, + }, + }, }; export const TerminateNotificationProfile: coreClient.CompositeMapper = { @@ -2037,17 +2210,17 @@ export const TerminateNotificationProfile: coreClient.CompositeMapper = { notBeforeTimeout: { serializedName: "notBeforeTimeout", type: { - name: "String" - } + name: "String", + }, }, enable: { serializedName: "enable", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const OSImageNotificationProfile: coreClient.CompositeMapper = { @@ -2058,17 +2231,17 @@ export const OSImageNotificationProfile: coreClient.CompositeMapper = { notBeforeTimeout: { serializedName: "notBeforeTimeout", type: { - name: "String" - } + name: "String", + }, }, enable: { serializedName: "enable", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const CapacityReservationProfile: coreClient.CompositeMapper = { @@ -2080,11 +2253,11 @@ export const CapacityReservationProfile: coreClient.CompositeMapper = { serializedName: "capacityReservationGroup", type: { name: "Composite", - className: "SubResource" - } - } - } - } + className: "SubResource", + }, + }, + }, + }, }; export const ApplicationProfile: coreClient.CompositeMapper = { @@ -2099,13 +2272,13 @@ export const ApplicationProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VMGalleryApplication" - } - } - } - } - } - } + className: "VMGalleryApplication", + }, + }, + }, + }, + }, + }, }; export const VMGalleryApplication: coreClient.CompositeMapper = { @@ -2116,59 +2289,60 @@ export const VMGalleryApplication: coreClient.CompositeMapper = { tags: { serializedName: "tags", type: { - name: "String" - } + name: "String", + }, }, order: { serializedName: "order", type: { - name: "Number" - } + name: "Number", + }, }, packageReferenceId: { serializedName: "packageReferenceId", required: true, type: { - name: "String" - } + name: "String", + }, }, configurationReference: { serializedName: "configurationReference", type: { - name: "String" - } + name: "String", + }, }, treatFailureAsDeploymentFailure: { serializedName: "treatFailureAsDeploymentFailure", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAutomaticUpgrade: { serializedName: "enableAutomaticUpgrade", type: { - name: "Boolean" - } - } - } - } -}; - -export const VirtualMachineScaleSetHardwareProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetHardwareProfile", - modelProperties: { - vmSizeProperties: { - serializedName: "vmSizeProperties", - type: { - name: "Composite", - className: "VMSizeProperties" - } - } - } - } -}; + name: "Boolean", + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetHardwareProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetHardwareProfile", + modelProperties: { + vmSizeProperties: { + serializedName: "vmSizeProperties", + type: { + name: "Composite", + className: "VMSizeProperties", + }, + }, + }, + }, + }; export const VMSizeProperties: coreClient.CompositeMapper = { type: { @@ -2178,17 +2352,17 @@ export const VMSizeProperties: coreClient.CompositeMapper = { vCPUsAvailable: { serializedName: "vCPUsAvailable", type: { - name: "Number" - } + name: "Number", + }, }, vCPUsPerCore: { serializedName: "vCPUsPerCore", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ServiceArtifactReference: coreClient.CompositeMapper = { @@ -2199,11 +2373,11 @@ export const ServiceArtifactReference: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SecurityPostureReference: coreClient.CompositeMapper = { @@ -2214,8 +2388,8 @@ export const SecurityPostureReference: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, excludeExtensions: { serializedName: "excludeExtensions", @@ -2224,13 +2398,13 @@ export const SecurityPostureReference: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtension" - } - } - } - } - } - } + className: "VirtualMachineExtension", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { @@ -2241,20 +2415,20 @@ export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, typeHandlerVersion: { serializedName: "typeHandlerVersion", type: { - name: "String" - } + name: "String", + }, }, substatuses: { serializedName: "substatuses", @@ -2263,10 +2437,10 @@ export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } + className: "InstanceViewStatus", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -2275,13 +2449,13 @@ export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const InstanceViewStatus: coreClient.CompositeMapper = { @@ -2292,36 +2466,36 @@ export const InstanceViewStatus: coreClient.CompositeMapper = { code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, level: { serializedName: "level", type: { name: "Enum", - allowedValues: ["Info", "Warning", "Error"] - } + allowedValues: ["Info", "Warning", "Error"], + }, }, displayStatus: { serializedName: "displayStatus", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } + name: "String", + }, }, time: { serializedName: "time", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const ResourceWithOptionalLocation: coreClient.CompositeMapper = { @@ -2332,39 +2506,39 @@ export const ResourceWithOptionalLocation: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const AdditionalCapabilities: coreClient.CompositeMapper = { @@ -2375,17 +2549,17 @@ export const AdditionalCapabilities: coreClient.CompositeMapper = { ultraSSDEnabled: { serializedName: "ultraSSDEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, hibernationEnabled: { serializedName: "hibernationEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ScaleInPolicy: coreClient.CompositeMapper = { @@ -2399,19 +2573,19 @@ export const ScaleInPolicy: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, forceDeletion: { serializedName: "forceDeletion", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SpotRestorePolicy: coreClient.CompositeMapper = { @@ -2422,17 +2596,17 @@ export const SpotRestorePolicy: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, restoreTimeout: { serializedName: "restoreTimeout", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PriorityMixPolicy: coreClient.CompositeMapper = { @@ -2442,25 +2616,78 @@ export const PriorityMixPolicy: coreClient.CompositeMapper = { modelProperties: { baseRegularPriorityCount: { constraints: { - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "baseRegularPriorityCount", type: { - name: "Number" - } + name: "Number", + }, }, regularPriorityPercentageAboveBase: { constraints: { InclusiveMaximum: 100, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "regularPriorityPercentageAboveBase", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, +}; + +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 = { @@ -2472,15 +2699,15 @@ export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", @@ -2490,9 +2717,9 @@ export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", - "None" - ] - } + "None", + ], + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", @@ -2501,13 +2728,13 @@ export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { value: { type: { name: "Composite", - className: "UserAssignedIdentitiesValue" - } - } - } - } - } - } + className: "UserAssignedIdentitiesValue", + }, + }, + }, + }, + }, + }, }; export const UserAssignedIdentitiesValue: coreClient.CompositeMapper = { @@ -2519,18 +2746,18 @@ export const UserAssignedIdentitiesValue: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ExtendedLocation: coreClient.CompositeMapper = { @@ -2541,17 +2768,17 @@ export const ExtendedLocation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -2563,519 +2790,534 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; + value: { type: { name: "String" } }, + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetUpdateVMProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateVMProfile", + modelProperties: { + osProfile: { + serializedName: "osProfile", + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateOSProfile", + }, + }, + storageProfile: { + serializedName: "storageProfile", + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateStorageProfile", + }, + }, + networkProfile: { + serializedName: "networkProfile", + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateNetworkProfile", + }, + }, + securityProfile: { + serializedName: "securityProfile", + type: { + name: "Composite", + className: "SecurityProfile", + }, + }, + diagnosticsProfile: { + serializedName: "diagnosticsProfile", + type: { + name: "Composite", + className: "DiagnosticsProfile", + }, + }, + extensionProfile: { + serializedName: "extensionProfile", + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtensionProfile", + }, + }, + licenseType: { + serializedName: "licenseType", + type: { + name: "String", + }, + }, + billingProfile: { + serializedName: "billingProfile", + type: { + name: "Composite", + className: "BillingProfile", + }, + }, + scheduledEventsProfile: { + serializedName: "scheduledEventsProfile", + type: { + name: "Composite", + className: "ScheduledEventsProfile", + }, + }, + userData: { + serializedName: "userData", + type: { + name: "String", + }, + }, + hardwareProfile: { + serializedName: "hardwareProfile", + type: { + name: "Composite", + className: "VirtualMachineScaleSetHardwareProfile", + }, + }, + }, + }, + }; + +export const VirtualMachineScaleSetUpdateOSProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateOSProfile", + modelProperties: { + customData: { + serializedName: "customData", + type: { + name: "String", + }, + }, + windowsConfiguration: { + serializedName: "windowsConfiguration", + type: { + name: "Composite", + className: "WindowsConfiguration", + }, + }, + linuxConfiguration: { + serializedName: "linuxConfiguration", + type: { + name: "Composite", + className: "LinuxConfiguration", + }, + }, + secrets: { + serializedName: "secrets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VaultSecretGroup", + }, + }, + }, + }, + }, + }, + }; + +export const VirtualMachineScaleSetUpdateStorageProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateStorageProfile", + modelProperties: { + imageReference: { + serializedName: "imageReference", + type: { + name: "Composite", + className: "ImageReference", + }, + }, + osDisk: { + serializedName: "osDisk", + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateOSDisk", + }, + }, + dataDisks: { + serializedName: "dataDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetDataDisk", + }, + }, + }, + }, + diskControllerType: { + serializedName: "diskControllerType", + type: { + name: "String", + }, + }, + }, + }, + }; -export const VirtualMachineScaleSetUpdateVMProfile: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetUpdateOSDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateVMProfile", + className: "VirtualMachineScaleSetUpdateOSDisk", modelProperties: { - osProfile: { - serializedName: "osProfile", - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateOSProfile" - } - }, - storageProfile: { - serializedName: "storageProfile", + caching: { + serializedName: "caching", type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateStorageProfile" - } + name: "Enum", + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, - networkProfile: { - serializedName: "networkProfile", + writeAcceleratorEnabled: { + serializedName: "writeAcceleratorEnabled", type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkProfile" - } + name: "Boolean", + }, }, - securityProfile: { - serializedName: "securityProfile", + diffDiskSettings: { + serializedName: "diffDiskSettings", type: { name: "Composite", - className: "SecurityProfile" - } + className: "DiffDiskSettings", + }, }, - diagnosticsProfile: { - serializedName: "diagnosticsProfile", + diskSizeGB: { + serializedName: "diskSizeGB", type: { - name: "Composite", - className: "DiagnosticsProfile" - } + name: "Number", + }, }, - extensionProfile: { - serializedName: "extensionProfile", + image: { + serializedName: "image", type: { name: "Composite", - className: "VirtualMachineScaleSetExtensionProfile" - } + className: "VirtualHardDisk", + }, }, - licenseType: { - serializedName: "licenseType", + vhdContainers: { + serializedName: "vhdContainers", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - billingProfile: { - serializedName: "billingProfile", + managedDisk: { + serializedName: "managedDisk", type: { name: "Composite", - className: "BillingProfile" - } + className: "VirtualMachineScaleSetManagedDiskParameters", + }, }, - scheduledEventsProfile: { - serializedName: "scheduledEventsProfile", + deleteOption: { + serializedName: "deleteOption", type: { - name: "Composite", - className: "ScheduledEventsProfile" - } + name: "String", + }, }, - userData: { - serializedName: "userData", - type: { - name: "String" - } - }, - hardwareProfile: { - serializedName: "hardwareProfile", - type: { - name: "Composite", - className: "VirtualMachineScaleSetHardwareProfile" - } - } - } - } -}; - -export const VirtualMachineScaleSetUpdateOSProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateOSProfile", - modelProperties: { - customData: { - serializedName: "customData", - type: { - name: "String" - } - }, - windowsConfiguration: { - serializedName: "windowsConfiguration", - type: { - name: "Composite", - className: "WindowsConfiguration" - } - }, - linuxConfiguration: { - serializedName: "linuxConfiguration", - type: { - name: "Composite", - className: "LinuxConfiguration" - } - }, - secrets: { - serializedName: "secrets", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VaultSecretGroup" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetUpdateStorageProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateStorageProfile", - modelProperties: { - imageReference: { - serializedName: "imageReference", - type: { - name: "Composite", - className: "ImageReference" - } - }, - osDisk: { - serializedName: "osDisk", - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateOSDisk" - } - }, - dataDisks: { - serializedName: "dataDisks", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetDataDisk" - } - } - } - }, - diskControllerType: { - serializedName: "diskControllerType", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetUpdateOSDisk: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateOSDisk", - modelProperties: { - caching: { - serializedName: "caching", - type: { - name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } - }, - writeAcceleratorEnabled: { - serializedName: "writeAcceleratorEnabled", - type: { - name: "Boolean" - } - }, - diskSizeGB: { - serializedName: "diskSizeGB", - type: { - name: "Number" - } - }, - image: { - serializedName: "image", - type: { - name: "Composite", - className: "VirtualHardDisk" - } - }, - vhdContainers: { - serializedName: "vhdContainers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - managedDisk: { - serializedName: "managedDisk", - type: { - name: "Composite", - className: "VirtualMachineScaleSetManagedDiskParameters" - } - }, - deleteOption: { - serializedName: "deleteOption", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetUpdateNetworkProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkProfile", - modelProperties: { - healthProbe: { - serializedName: "healthProbe", - type: { - name: "Composite", - className: "ApiEntityReference" - } - }, - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkConfiguration" - } - } - } - }, - networkApiVersion: { - serializedName: "networkApiVersion", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetUpdateNetworkConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkConfiguration", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - primary: { - serializedName: "properties.primary", - type: { - name: "Boolean" - } - }, - enableAcceleratedNetworking: { - serializedName: "properties.enableAcceleratedNetworking", - type: { - name: "Boolean" - } - }, - disableTcpStateTracking: { - serializedName: "properties.disableTcpStateTracking", - type: { - name: "Boolean" - } - }, - enableFpga: { - serializedName: "properties.enableFpga", - type: { - name: "Boolean" - } - }, - networkSecurityGroup: { - serializedName: "properties.networkSecurityGroup", - type: { - name: "Composite", - className: "SubResource" - } - }, - dnsSettings: { - serializedName: "properties.dnsSettings", - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" - } - }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateIPConfiguration" - } - } - } - }, - enableIPForwarding: { - serializedName: "properties.enableIPForwarding", - type: { - name: "Boolean" - } - }, - deleteOption: { - serializedName: "properties.deleteOption", - type: { - name: "String" - } - }, - auxiliaryMode: { - serializedName: "properties.auxiliaryMode", - type: { - name: "String" - } - }, - auxiliarySku: { - serializedName: "properties.auxiliarySku", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetUpdateIPConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateIPConfiguration", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - subnet: { - serializedName: "properties.subnet", - type: { - name: "Composite", - className: "ApiEntityReference" - } - }, - primary: { - serializedName: "properties.primary", - type: { - name: "Boolean" - } - }, - publicIPAddressConfiguration: { - serializedName: "properties.publicIPAddressConfiguration", - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration" - } - }, - privateIPAddressVersion: { - serializedName: "properties.privateIPAddressVersion", - type: { - name: "String" - } - }, - applicationGatewayBackendAddressPools: { - serializedName: "properties.applicationGatewayBackendAddressPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - applicationSecurityGroups: { - serializedName: "properties.applicationSecurityGroups", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - loadBalancerBackendAddressPools: { - serializedName: "properties.loadBalancerBackendAddressPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - loadBalancerInboundNatPools: { - serializedName: "properties.loadBalancerInboundNatPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetUpdatePublicIPAddressConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } + }, + }, +}; + +export const VirtualMachineScaleSetUpdateNetworkProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateNetworkProfile", + modelProperties: { + healthProbe: { + serializedName: "healthProbe", + type: { + name: "Composite", + className: "ApiEntityReference", + }, + }, + networkInterfaceConfigurations: { + serializedName: "networkInterfaceConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateNetworkConfiguration", + }, + }, + }, + }, + networkApiVersion: { + serializedName: "networkApiVersion", + type: { + name: "String", + }, + }, }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", - type: { - name: "Number" - } + }, + }; + +export const VirtualMachineScaleSetUpdateNetworkConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateNetworkConfiguration", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean", + }, + }, + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", + type: { + name: "Boolean", + }, + }, + disableTcpStateTracking: { + serializedName: "properties.disableTcpStateTracking", + type: { + name: "Boolean", + }, + }, + enableFpga: { + serializedName: "properties.enableFpga", + type: { + name: "Boolean", + }, + }, + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", + type: { + name: "Composite", + className: "SubResource", + }, + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings", + }, + }, + ipConfigurations: { + serializedName: "properties.ipConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateIPConfiguration", + }, + }, + }, + }, + enableIPForwarding: { + serializedName: "properties.enableIPForwarding", + type: { + name: "Boolean", + }, + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String", + }, + }, + auxiliaryMode: { + serializedName: "properties.auxiliaryMode", + type: { + name: "String", + }, + }, + auxiliarySku: { + serializedName: "properties.auxiliarySku", + type: { + name: "String", + }, + }, }, - dnsSettings: { - serializedName: "properties.dnsSettings", - type: { - name: "Composite", - className: - "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" - } + }, + }; + +export const VirtualMachineScaleSetUpdateIPConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateIPConfiguration", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "ApiEntityReference", + }, + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean", + }, + }, + publicIPAddressConfiguration: { + serializedName: "properties.publicIPAddressConfiguration", + type: { + name: "Composite", + className: + "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration", + }, + }, + privateIPAddressVersion: { + serializedName: "properties.privateIPAddressVersion", + type: { + name: "String", + }, + }, + applicationGatewayBackendAddressPools: { + serializedName: "properties.applicationGatewayBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + applicationSecurityGroups: { + serializedName: "properties.applicationSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + loadBalancerBackendAddressPools: { + serializedName: "properties.loadBalancerBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + loadBalancerInboundNatPools: { + serializedName: "properties.loadBalancerInboundNatPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, }, - publicIPPrefix: { - serializedName: "properties.publicIPPrefix", - type: { - name: "Composite", - className: "SubResource" - } + }, + }; + +export const VirtualMachineScaleSetUpdatePublicIPAddressConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number", + }, + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: + "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings", + }, + }, + publicIPPrefix: { + serializedName: "properties.publicIPPrefix", + type: { + name: "Composite", + className: "SubResource", + }, + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String", + }, + }, }, - deleteOption: { - serializedName: "properties.deleteOption", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const UpdateResource: coreClient.CompositeMapper = { type: { @@ -3086,11 +3328,11 @@ export const UpdateResource: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const VirtualMachineScaleSetVMInstanceIDs: coreClient.CompositeMapper = { @@ -3104,35 +3346,36 @@ export const VirtualMachineScaleSetVMInstanceIDs: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetVMInstanceRequiredIDs: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMInstanceRequiredIDs", - modelProperties: { - instanceIds: { - serializedName: "instanceIds", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetVMInstanceRequiredIDs: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMInstanceRequiredIDs", + modelProperties: { + instanceIds: { + serializedName: "instanceIds", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { type: { @@ -3143,8 +3386,8 @@ export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { serializedName: "virtualMachine", type: { name: "Composite", - className: "VirtualMachineScaleSetInstanceViewStatusesSummary" - } + className: "VirtualMachineScaleSetInstanceViewStatusesSummary", + }, }, extensions: { serializedName: "extensions", @@ -3154,10 +3397,10 @@ export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineScaleSetVMExtensionsSummary" - } - } - } + className: "VirtualMachineScaleSetVMExtensionsSummary", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -3166,10 +3409,10 @@ export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } + className: "InstanceViewStatus", + }, + }, + }, }, orchestrationServices: { serializedName: "orchestrationServices", @@ -3179,36 +3422,37 @@ export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OrchestrationServiceSummary" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetInstanceViewStatusesSummary: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetInstanceViewStatusesSummary", - modelProperties: { - statusesSummary: { - serializedName: "statusesSummary", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineStatusCodeCount" - } - } - } - } - } - } -}; + className: "OrchestrationServiceSummary", + }, + }, + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetInstanceViewStatusesSummary: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetInstanceViewStatusesSummary", + modelProperties: { + statusesSummary: { + serializedName: "statusesSummary", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineStatusCodeCount", + }, + }, + }, + }, + }, + }, + }; export const VirtualMachineStatusCodeCount: coreClient.CompositeMapper = { type: { @@ -3219,48 +3463,49 @@ export const VirtualMachineStatusCodeCount: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, count: { serializedName: "count", readOnly: true, type: { - name: "Number" - } - } - } - } -}; - -export const VirtualMachineScaleSetVMExtensionsSummary: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMExtensionsSummary", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } + name: "Number", + }, }, - statusesSummary: { - serializedName: "statusesSummary", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineStatusCodeCount" - } - } - } - } - } - } -}; + }, + }, +}; + +export const VirtualMachineScaleSetVMExtensionsSummary: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtensionsSummary", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + statusesSummary: { + serializedName: "statusesSummary", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineStatusCodeCount", + }, + }, + }, + }, + }, + }, + }; export const OrchestrationServiceSummary: coreClient.CompositeMapper = { type: { @@ -3271,281 +3516,287 @@ export const OrchestrationServiceSummary: coreClient.CompositeMapper = { serializedName: "serviceName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, serviceState: { serializedName: "serviceState", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetExtensionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetExtensionListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetExtension" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetListWithLinkResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetListWithLinkResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSet" - } - } - } + }, + }, +}; + +export const VirtualMachineScaleSetExtensionListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtensionListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtension", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetListSkusResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetListSkusResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetSku" - } - } - } + }, + }; + +export const VirtualMachineScaleSetListWithLinkResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetListWithLinkResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSet", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + }, + }; + +export const VirtualMachineScaleSetListSkusResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetListSkusResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetSku", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; export const VirtualMachineScaleSetSku: coreClient.CompositeMapper = { type: { name: "Composite", className: "VirtualMachineScaleSetSku", modelProperties: { - resourceType: { - serializedName: "resourceType", - readOnly: true, - type: { - name: "String" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - capacity: { - serializedName: "capacity", - type: { - name: "Composite", - className: "VirtualMachineScaleSetSkuCapacity" - } - } - } - } -}; - -export const VirtualMachineScaleSetSkuCapacity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetSkuCapacity", - modelProperties: { - minimum: { - serializedName: "minimum", - readOnly: true, - type: { - name: "Number" - } - }, - maximum: { - serializedName: "maximum", - readOnly: true, - type: { - name: "Number" - } - }, - defaultCapacity: { - serializedName: "defaultCapacity", - readOnly: true, - type: { - name: "Number" - } - }, - scaleType: { - serializedName: "scaleType", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["Automatic", "None"] - } - } - } - } -}; - -export const VirtualMachineScaleSetListOSUpgradeHistory: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetListOSUpgradeHistory", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UpgradeOperationHistoricalStatusInfo" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const UpgradeOperationHistoricalStatusInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpgradeOperationHistoricalStatusInfo", - modelProperties: { - properties: { - serializedName: "properties", + resourceType: { + serializedName: "resourceType", + readOnly: true, type: { - name: "Composite", - className: "UpgradeOperationHistoricalStatusInfoProperties" - } + name: "String", + }, }, - type: { - serializedName: "type", - readOnly: true, + sku: { + serializedName: "sku", type: { - name: "String" - } + name: "Composite", + className: "Sku", + }, }, - location: { - serializedName: "location", - readOnly: true, + capacity: { + serializedName: "capacity", type: { - name: "String" - } - } - } - } + name: "Composite", + className: "VirtualMachineScaleSetSkuCapacity", + }, + }, + }, + }, }; -export const UpgradeOperationHistoricalStatusInfoProperties: coreClient.CompositeMapper = { +export const VirtualMachineScaleSetSkuCapacity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpgradeOperationHistoricalStatusInfoProperties", + className: "VirtualMachineScaleSetSkuCapacity", modelProperties: { - runningStatus: { - serializedName: "runningStatus", + minimum: { + serializedName: "minimum", + readOnly: true, type: { - name: "Composite", - className: "UpgradeOperationHistoryStatus" - } + name: "Number", + }, }, - progress: { - serializedName: "progress", + maximum: { + serializedName: "maximum", + readOnly: true, type: { - name: "Composite", - className: "RollingUpgradeProgressInfo" - } + name: "Number", + }, }, - error: { - serializedName: "error", + defaultCapacity: { + serializedName: "defaultCapacity", + readOnly: true, type: { - name: "Composite", - className: "ApiError" - } + name: "Number", + }, }, - startedBy: { - serializedName: "startedBy", + scaleType: { + serializedName: "scaleType", readOnly: true, type: { name: "Enum", - allowedValues: ["Unknown", "User", "Platform"] - } + allowedValues: ["Automatic", "None"], + }, }, - targetImageReference: { - serializedName: "targetImageReference", - type: { - name: "Composite", - className: "ImageReference" - } + }, + }, +}; + +export const VirtualMachineScaleSetListOSUpgradeHistory: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetListOSUpgradeHistory", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpgradeOperationHistoricalStatusInfo", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, - rollbackInfo: { - serializedName: "rollbackInfo", + }, + }; + +export const UpgradeOperationHistoricalStatusInfo: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "UpgradeOperationHistoricalStatusInfo", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "UpgradeOperationHistoricalStatusInfoProperties", + }, + }, type: { - name: "Composite", - className: "RollbackStatusInfo" - } - } - } - } -}; + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const UpgradeOperationHistoricalStatusInfoProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "UpgradeOperationHistoricalStatusInfoProperties", + modelProperties: { + runningStatus: { + serializedName: "runningStatus", + type: { + name: "Composite", + className: "UpgradeOperationHistoryStatus", + }, + }, + progress: { + serializedName: "progress", + type: { + name: "Composite", + className: "RollingUpgradeProgressInfo", + }, + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ApiError", + }, + }, + startedBy: { + serializedName: "startedBy", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Unknown", "User", "Platform"], + }, + }, + targetImageReference: { + serializedName: "targetImageReference", + type: { + name: "Composite", + className: "ImageReference", + }, + }, + rollbackInfo: { + serializedName: "rollbackInfo", + type: { + name: "Composite", + className: "RollbackStatusInfo", + }, + }, + }, + }, + }; export const UpgradeOperationHistoryStatus: coreClient.CompositeMapper = { type: { @@ -3557,25 +3808,30 @@ export const UpgradeOperationHistoryStatus: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["RollingForward", "Cancelled", "Completed", "Faulted"] - } + allowedValues: [ + "RollingForward", + "Cancelled", + "Completed", + "Faulted", + ], + }, }, startTime: { serializedName: "startTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, endTime: { serializedName: "endTime", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const RollingUpgradeProgressInfo: coreClient.CompositeMapper = { @@ -3587,32 +3843,32 @@ export const RollingUpgradeProgressInfo: coreClient.CompositeMapper = { serializedName: "successfulInstanceCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, failedInstanceCount: { serializedName: "failedInstanceCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, inProgressInstanceCount: { serializedName: "inProgressInstanceCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, pendingInstanceCount: { serializedName: "pendingInstanceCount", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const RollbackStatusInfo: coreClient.CompositeMapper = { @@ -3624,25 +3880,25 @@ export const RollbackStatusInfo: coreClient.CompositeMapper = { serializedName: "successfullyRolledbackInstanceCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, failedRolledbackInstanceCount: { serializedName: "failedRolledbackInstanceCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, rollbackError: { serializedName: "rollbackError", type: { name: "Composite", - className: "ApiError" - } - } - } - } + className: "ApiError", + }, + }, + }, + }, }; export const VirtualMachineReimageParameters: coreClient.CompositeMapper = { @@ -3653,24 +3909,24 @@ export const VirtualMachineReimageParameters: coreClient.CompositeMapper = { tempDisk: { serializedName: "tempDisk", type: { - name: "Boolean" - } + name: "Boolean", + }, }, exactVersion: { serializedName: "exactVersion", type: { - name: "String" - } + name: "String", + }, }, osProfile: { serializedName: "osProfile", type: { name: "Composite", - className: "OSProfileProvisioningData" - } - } - } - } + className: "OSProfileProvisioningData", + }, + }, + }, + }, }; export const OSProfileProvisioningData: coreClient.CompositeMapper = { @@ -3681,17 +3937,17 @@ export const OSProfileProvisioningData: coreClient.CompositeMapper = { adminPassword: { serializedName: "adminPassword", type: { - name: "String" - } + name: "String", + }, }, customData: { serializedName: "customData", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RollingUpgradeRunningStatus: coreClient.CompositeMapper = { @@ -3704,33 +3960,38 @@ export const RollingUpgradeRunningStatus: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["RollingForward", "Cancelled", "Completed", "Faulted"] - } + allowedValues: [ + "RollingForward", + "Cancelled", + "Completed", + "Faulted", + ], + }, }, startTime: { serializedName: "startTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastAction: { serializedName: "lastAction", readOnly: true, type: { name: "Enum", - allowedValues: ["Start", "Cancel"] - } + allowedValues: ["Start", "Cancel"], + }, }, lastActionTime: { serializedName: "lastActionTime", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const RecoveryWalkResponse: coreClient.CompositeMapper = { @@ -3742,34 +4003,35 @@ export const RecoveryWalkResponse: coreClient.CompositeMapper = { serializedName: "walkPerformed", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, nextPlatformUpdateDomain: { serializedName: "nextPlatformUpdateDomain", readOnly: true, type: { - name: "Number" - } - } - } - } -}; - -export const VMScaleSetConvertToSinglePlacementGroupInput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VMScaleSetConvertToSinglePlacementGroupInput", - modelProperties: { - activePlacementGroupId: { - serializedName: "activePlacementGroupId", - type: { - name: "String" - } - } - } - } -}; + name: "Number", + }, + }, + }, + }, +}; + +export const VMScaleSetConvertToSinglePlacementGroupInput: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VMScaleSetConvertToSinglePlacementGroupInput", + modelProperties: { + activePlacementGroupId: { + serializedName: "activePlacementGroupId", + type: { + name: "String", + }, + }, + }, + }, + }; export const OrchestrationServiceStateInput: coreClient.CompositeMapper = { type: { @@ -3780,168 +4042,170 @@ export const OrchestrationServiceStateInput: coreClient.CompositeMapper = { serializedName: "serviceName", required: true, type: { - name: "String" - } + name: "String", + }, }, action: { serializedName: "action", required: true, type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetVMExtensionsListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMExtensionsListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMExtension" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetVMInstanceView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMInstanceView", - modelProperties: { - platformUpdateDomain: { - serializedName: "platformUpdateDomain", - type: { - name: "Number" - } - }, - platformFaultDomain: { - serializedName: "platformFaultDomain", - type: { - name: "Number" - } - }, - rdpThumbPrint: { - serializedName: "rdpThumbPrint", - type: { - name: "String" - } - }, - vmAgent: { - serializedName: "vmAgent", - type: { - name: "Composite", - className: "VirtualMachineAgentInstanceView" - } - }, - maintenanceRedeployStatus: { - serializedName: "maintenanceRedeployStatus", - type: { - name: "Composite", - className: "MaintenanceRedeployStatus" - } - }, - disks: { - serializedName: "disks", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiskInstanceView" - } - } - } - }, - extensions: { - serializedName: "extensions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineExtensionInstanceView" - } - } - } - }, - vmHealth: { - serializedName: "vmHealth", - type: { - name: "Composite", - className: "VirtualMachineHealthStatus" - } - }, - bootDiagnostics: { - serializedName: "bootDiagnostics", - type: { - name: "Composite", - className: "BootDiagnosticsInstanceView" - } - }, - statuses: { - serializedName: "statuses", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } - }, - assignedHost: { - serializedName: "assignedHost", - readOnly: true, - type: { - name: "String" - } - }, - placementGroupId: { - serializedName: "placementGroupId", - type: { - name: "String" - } - }, - computerName: { - serializedName: "computerName", - type: { - name: "String" - } + name: "String", + }, }, - osName: { - serializedName: "osName", - type: { - name: "String" - } + }, + }, +}; + +export const VirtualMachineScaleSetVMExtensionsListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtensionsListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtension", + }, + }, + }, + }, }, - osVersion: { - serializedName: "osVersion", - type: { - name: "String" - } + }, + }; + +export const VirtualMachineScaleSetVMInstanceView: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMInstanceView", + modelProperties: { + platformUpdateDomain: { + serializedName: "platformUpdateDomain", + type: { + name: "Number", + }, + }, + platformFaultDomain: { + serializedName: "platformFaultDomain", + type: { + name: "Number", + }, + }, + rdpThumbPrint: { + serializedName: "rdpThumbPrint", + type: { + name: "String", + }, + }, + vmAgent: { + serializedName: "vmAgent", + type: { + name: "Composite", + className: "VirtualMachineAgentInstanceView", + }, + }, + maintenanceRedeployStatus: { + serializedName: "maintenanceRedeployStatus", + type: { + name: "Composite", + className: "MaintenanceRedeployStatus", + }, + }, + disks: { + serializedName: "disks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskInstanceView", + }, + }, + }, + }, + extensions: { + serializedName: "extensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineExtensionInstanceView", + }, + }, + }, + }, + vmHealth: { + serializedName: "vmHealth", + type: { + name: "Composite", + className: "VirtualMachineHealthStatus", + }, + }, + bootDiagnostics: { + serializedName: "bootDiagnostics", + type: { + name: "Composite", + className: "BootDiagnosticsInstanceView", + }, + }, + statuses: { + serializedName: "statuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus", + }, + }, + }, + }, + assignedHost: { + serializedName: "assignedHost", + readOnly: true, + type: { + name: "String", + }, + }, + placementGroupId: { + serializedName: "placementGroupId", + type: { + name: "String", + }, + }, + computerName: { + serializedName: "computerName", + type: { + name: "String", + }, + }, + osName: { + serializedName: "osName", + type: { + name: "String", + }, + }, + osVersion: { + serializedName: "osVersion", + type: { + name: "String", + }, + }, + hyperVGeneration: { + serializedName: "hyperVGeneration", + type: { + name: "String", + }, + }, }, - hyperVGeneration: { - serializedName: "hyperVGeneration", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const VirtualMachineAgentInstanceView: coreClient.CompositeMapper = { type: { @@ -3951,8 +4215,8 @@ export const VirtualMachineAgentInstanceView: coreClient.CompositeMapper = { vmAgentVersion: { serializedName: "vmAgentVersion", type: { - name: "String" - } + name: "String", + }, }, extensionHandlers: { serializedName: "extensionHandlers", @@ -3961,10 +4225,10 @@ export const VirtualMachineAgentInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtensionHandlerInstanceView" - } - } - } + className: "VirtualMachineExtensionHandlerInstanceView", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -3973,42 +4237,43 @@ export const VirtualMachineAgentInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; -export const VirtualMachineExtensionHandlerInstanceView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineExtensionHandlerInstanceView", - modelProperties: { - type: { - serializedName: "type", +export const VirtualMachineExtensionHandlerInstanceView: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineExtensionHandlerInstanceView", + modelProperties: { type: { - name: "String" - } - }, - typeHandlerVersion: { - serializedName: "typeHandlerVersion", - type: { - name: "String" - } + serializedName: "type", + type: { + name: "String", + }, + }, + typeHandlerVersion: { + serializedName: "typeHandlerVersion", + type: { + name: "String", + }, + }, + status: { + serializedName: "status", + type: { + name: "Composite", + className: "InstanceViewStatus", + }, + }, }, - status: { - serializedName: "status", - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } - } -}; + }, + }; export const MaintenanceRedeployStatus: coreClient.CompositeMapper = { type: { @@ -4018,32 +4283,32 @@ export const MaintenanceRedeployStatus: coreClient.CompositeMapper = { isCustomerInitiatedMaintenanceAllowed: { serializedName: "isCustomerInitiatedMaintenanceAllowed", type: { - name: "Boolean" - } + name: "Boolean", + }, }, preMaintenanceWindowStartTime: { serializedName: "preMaintenanceWindowStartTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, preMaintenanceWindowEndTime: { serializedName: "preMaintenanceWindowEndTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, maintenanceWindowStartTime: { serializedName: "maintenanceWindowStartTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, maintenanceWindowEndTime: { serializedName: "maintenanceWindowEndTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastOperationResultCode: { serializedName: "lastOperationResultCode", @@ -4053,18 +4318,18 @@ export const MaintenanceRedeployStatus: coreClient.CompositeMapper = { "None", "RetryLater", "MaintenanceAborted", - "MaintenanceCompleted" - ] - } + "MaintenanceCompleted", + ], + }, }, lastOperationMessage: { serializedName: "lastOperationMessage", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskInstanceView: coreClient.CompositeMapper = { @@ -4075,8 +4340,8 @@ export const DiskInstanceView: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, encryptionSettings: { serializedName: "encryptionSettings", @@ -4085,10 +4350,10 @@ export const DiskInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskEncryptionSettings" - } - } - } + className: "DiskEncryptionSettings", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -4097,13 +4362,13 @@ export const DiskInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const DiskEncryptionSettings: coreClient.CompositeMapper = { @@ -4115,24 +4380,24 @@ export const DiskEncryptionSettings: coreClient.CompositeMapper = { serializedName: "diskEncryptionKey", type: { name: "Composite", - className: "KeyVaultSecretReference" - } + className: "KeyVaultSecretReference", + }, }, keyEncryptionKey: { serializedName: "keyEncryptionKey", type: { name: "Composite", - className: "KeyVaultKeyReference" - } + className: "KeyVaultKeyReference", + }, }, enabled: { serializedName: "enabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const KeyVaultKeyReference: coreClient.CompositeMapper = { @@ -4144,18 +4409,18 @@ export const KeyVaultKeyReference: coreClient.CompositeMapper = { serializedName: "keyUrl", required: true, type: { - name: "String" - } + name: "String", + }, }, sourceVault: { serializedName: "sourceVault", type: { name: "Composite", - className: "SubResource" - } - } - } - } + className: "SubResource", + }, + }, + }, + }, }; export const VirtualMachineHealthStatus: coreClient.CompositeMapper = { @@ -4167,11 +4432,11 @@ export const VirtualMachineHealthStatus: coreClient.CompositeMapper = { serializedName: "status", type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, }; export const BootDiagnosticsInstanceView: coreClient.CompositeMapper = { @@ -4183,25 +4448,25 @@ export const BootDiagnosticsInstanceView: coreClient.CompositeMapper = { serializedName: "consoleScreenshotBlobUri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, serialConsoleLogBlobUri: { serializedName: "serialConsoleLogBlobUri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, }; export const HardwareProfile: coreClient.CompositeMapper = { @@ -4212,18 +4477,18 @@ export const HardwareProfile: coreClient.CompositeMapper = { vmSize: { serializedName: "vmSize", type: { - name: "String" - } + name: "String", + }, }, vmSizeProperties: { serializedName: "vmSizeProperties", type: { name: "Composite", - className: "VMSizeProperties" - } - } - } - } + className: "VMSizeProperties", + }, + }, + }, + }, }; export const StorageProfile: coreClient.CompositeMapper = { @@ -4235,15 +4500,15 @@ export const StorageProfile: coreClient.CompositeMapper = { serializedName: "imageReference", type: { name: "Composite", - className: "ImageReference" - } + className: "ImageReference", + }, }, osDisk: { serializedName: "osDisk", type: { name: "Composite", - className: "OSDisk" - } + className: "OSDisk", + }, }, dataDisks: { serializedName: "dataDisks", @@ -4252,19 +4517,19 @@ export const StorageProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataDisk" - } - } - } + className: "DataDisk", + }, + }, + }, }, diskControllerType: { serializedName: "diskControllerType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OSDisk: coreClient.CompositeMapper = { @@ -4276,84 +4541,84 @@ export const OSDisk: coreClient.CompositeMapper = { serializedName: "osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, encryptionSettings: { serializedName: "encryptionSettings", type: { name: "Composite", - className: "DiskEncryptionSettings" - } + className: "DiskEncryptionSettings", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, vhd: { serializedName: "vhd", type: { name: "Composite", - className: "VirtualHardDisk" - } + className: "VirtualHardDisk", + }, }, image: { serializedName: "image", type: { name: "Composite", - className: "VirtualHardDisk" - } + className: "VirtualHardDisk", + }, }, caching: { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, diffDiskSettings: { serializedName: "diffDiskSettings", type: { name: "Composite", - className: "DiffDiskSettings" - } + className: "DiffDiskSettings", + }, }, createOption: { serializedName: "createOption", required: true, type: { - name: "String" - } + name: "String", + }, }, diskSizeGB: { serializedName: "diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "ManagedDiskParameters" - } + className: "ManagedDiskParameters", + }, }, deleteOption: { serializedName: "deleteOption", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DataDisk: coreClient.CompositeMapper = { @@ -4365,96 +4630,103 @@ export const DataDisk: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } + name: "Number", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, vhd: { serializedName: "vhd", type: { name: "Composite", - className: "VirtualHardDisk" - } + className: "VirtualHardDisk", + }, }, image: { serializedName: "image", type: { name: "Composite", - className: "VirtualHardDisk" - } + className: "VirtualHardDisk", + }, }, caching: { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, createOption: { serializedName: "createOption", required: true, type: { - name: "String" - } + name: "String", + }, }, diskSizeGB: { serializedName: "diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "ManagedDiskParameters" - } + className: "ManagedDiskParameters", + }, + }, + sourceResource: { + serializedName: "sourceResource", + type: { + name: "Composite", + className: "ApiEntityReference", + }, }, toBeDetached: { serializedName: "toBeDetached", type: { - name: "Boolean" - } + name: "Boolean", + }, }, diskIopsReadWrite: { serializedName: "diskIOPSReadWrite", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, diskMBpsReadWrite: { serializedName: "diskMBpsReadWrite", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, detachOption: { serializedName: "detachOption", type: { - name: "String" - } + name: "String", + }, }, deleteOption: { serializedName: "deleteOption", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OSProfile: coreClient.CompositeMapper = { @@ -4465,40 +4737,40 @@ export const OSProfile: coreClient.CompositeMapper = { computerName: { serializedName: "computerName", type: { - name: "String" - } + name: "String", + }, }, adminUsername: { serializedName: "adminUsername", type: { - name: "String" - } + name: "String", + }, }, adminPassword: { serializedName: "adminPassword", type: { - name: "String" - } + name: "String", + }, }, customData: { serializedName: "customData", type: { - name: "String" - } + name: "String", + }, }, windowsConfiguration: { serializedName: "windowsConfiguration", type: { name: "Composite", - className: "WindowsConfiguration" - } + className: "WindowsConfiguration", + }, }, linuxConfiguration: { serializedName: "linuxConfiguration", type: { name: "Composite", - className: "LinuxConfiguration" - } + className: "LinuxConfiguration", + }, }, secrets: { serializedName: "secrets", @@ -4507,25 +4779,25 @@ export const OSProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VaultSecretGroup" - } - } - } + className: "VaultSecretGroup", + }, + }, + }, }, allowExtensionOperations: { serializedName: "allowExtensionOperations", type: { - name: "Boolean" - } + name: "Boolean", + }, }, requireGuestProvisionSignal: { serializedName: "requireGuestProvisionSignal", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const NetworkProfile: coreClient.CompositeMapper = { @@ -4540,16 +4812,16 @@ export const NetworkProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetworkInterfaceReference" - } - } - } + className: "NetworkInterfaceReference", + }, + }, + }, }, networkApiVersion: { serializedName: "networkApiVersion", type: { - name: "String" - } + name: "String", + }, }, networkInterfaceConfigurations: { serializedName: "networkInterfaceConfigurations", @@ -4558,304 +4830,309 @@ export const NetworkProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineNetworkInterfaceConfiguration" - } - } - } - } - } - } -}; - -export const VirtualMachineNetworkInterfaceConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineNetworkInterfaceConfiguration", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - primary: { - serializedName: "properties.primary", - type: { - name: "Boolean" - } - }, - deleteOption: { - serializedName: "properties.deleteOption", - type: { - name: "String" - } - }, - enableAcceleratedNetworking: { - serializedName: "properties.enableAcceleratedNetworking", - type: { - name: "Boolean" - } - }, - disableTcpStateTracking: { - serializedName: "properties.disableTcpStateTracking", - type: { - name: "Boolean" - } - }, - enableFpga: { - serializedName: "properties.enableFpga", - type: { - name: "Boolean" - } - }, - enableIPForwarding: { - serializedName: "properties.enableIPForwarding", - type: { - name: "Boolean" - } - }, - networkSecurityGroup: { - serializedName: "properties.networkSecurityGroup", - type: { - name: "Composite", - className: "SubResource" - } - }, - dnsSettings: { - serializedName: "properties.dnsSettings", - type: { - name: "Composite", - className: "VirtualMachineNetworkInterfaceDnsSettingsConfiguration" - } - }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineNetworkInterfaceIPConfiguration" - } - } - } - }, - dscpConfiguration: { - serializedName: "properties.dscpConfiguration", - type: { - name: "Composite", - className: "SubResource" - } - }, - auxiliaryMode: { - serializedName: "properties.auxiliaryMode", - type: { - name: "String" - } - }, - auxiliarySku: { - serializedName: "properties.auxiliarySku", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineNetworkInterfaceDnsSettingsConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineNetworkInterfaceDnsSettingsConfiguration", - modelProperties: { - dnsServers: { - serializedName: "dnsServers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const VirtualMachineNetworkInterfaceIPConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineNetworkInterfaceIPConfiguration", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - subnet: { - serializedName: "properties.subnet", - type: { - name: "Composite", - className: "SubResource" - } - }, - primary: { - serializedName: "properties.primary", - type: { - name: "Boolean" - } - }, - publicIPAddressConfiguration: { - serializedName: "properties.publicIPAddressConfiguration", - type: { - name: "Composite", - className: "VirtualMachinePublicIPAddressConfiguration" - } - }, - privateIPAddressVersion: { - serializedName: "properties.privateIPAddressVersion", - type: { - name: "String" - } - }, - applicationSecurityGroups: { - serializedName: "properties.applicationSecurityGroups", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - applicationGatewayBackendAddressPools: { - serializedName: "properties.applicationGatewayBackendAddressPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - loadBalancerBackendAddressPools: { - serializedName: "properties.loadBalancerBackendAddressPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - } - } - } -}; - -export const VirtualMachinePublicIPAddressConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachinePublicIPAddressConfiguration", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "PublicIPAddressSku" - } - }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", - type: { - name: "Number" - } - }, - deleteOption: { - serializedName: "properties.deleteOption", - type: { - name: "String" - } + className: "VirtualMachineNetworkInterfaceConfiguration", + }, + }, + }, }, - dnsSettings: { - serializedName: "properties.dnsSettings", - type: { - name: "Composite", - className: "VirtualMachinePublicIPAddressDnsSettingsConfiguration" - } + }, + }, +}; + +export const VirtualMachineNetworkInterfaceConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineNetworkInterfaceConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean", + }, + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String", + }, + }, + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", + type: { + name: "Boolean", + }, + }, + disableTcpStateTracking: { + serializedName: "properties.disableTcpStateTracking", + type: { + name: "Boolean", + }, + }, + enableFpga: { + serializedName: "properties.enableFpga", + type: { + name: "Boolean", + }, + }, + enableIPForwarding: { + serializedName: "properties.enableIPForwarding", + type: { + name: "Boolean", + }, + }, + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", + type: { + name: "Composite", + className: "SubResource", + }, + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: "VirtualMachineNetworkInterfaceDnsSettingsConfiguration", + }, + }, + ipConfigurations: { + serializedName: "properties.ipConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineNetworkInterfaceIPConfiguration", + }, + }, + }, + }, + dscpConfiguration: { + serializedName: "properties.dscpConfiguration", + type: { + name: "Composite", + className: "SubResource", + }, + }, + auxiliaryMode: { + serializedName: "properties.auxiliaryMode", + type: { + name: "String", + }, + }, + auxiliarySku: { + serializedName: "properties.auxiliarySku", + type: { + name: "String", + }, + }, }, - ipTags: { - serializedName: "properties.ipTags", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineIpTag" - } - } - } + }, + }; + +export const VirtualMachineNetworkInterfaceDnsSettingsConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineNetworkInterfaceDnsSettingsConfiguration", + modelProperties: { + dnsServers: { + serializedName: "dnsServers", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, }, - publicIPPrefix: { - serializedName: "properties.publicIPPrefix", - type: { - name: "Composite", - className: "SubResource" - } + }, + }; + +export const VirtualMachineNetworkInterfaceIPConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineNetworkInterfaceIPConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "SubResource", + }, + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean", + }, + }, + publicIPAddressConfiguration: { + serializedName: "properties.publicIPAddressConfiguration", + type: { + name: "Composite", + className: "VirtualMachinePublicIPAddressConfiguration", + }, + }, + privateIPAddressVersion: { + serializedName: "properties.privateIPAddressVersion", + type: { + name: "String", + }, + }, + applicationSecurityGroups: { + serializedName: "properties.applicationSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + applicationGatewayBackendAddressPools: { + serializedName: "properties.applicationGatewayBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + loadBalancerBackendAddressPools: { + serializedName: "properties.loadBalancerBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, }, - publicIPAddressVersion: { - serializedName: "properties.publicIPAddressVersion", - type: { - name: "String" - } + }, + }; + +export const VirtualMachinePublicIPAddressConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachinePublicIPAddressConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "PublicIPAddressSku", + }, + }, + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number", + }, + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String", + }, + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: "VirtualMachinePublicIPAddressDnsSettingsConfiguration", + }, + }, + ipTags: { + serializedName: "properties.ipTags", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineIpTag", + }, + }, + }, + }, + publicIPPrefix: { + serializedName: "properties.publicIPPrefix", + type: { + name: "Composite", + className: "SubResource", + }, + }, + publicIPAddressVersion: { + serializedName: "properties.publicIPAddressVersion", + type: { + name: "String", + }, + }, + publicIPAllocationMethod: { + serializedName: "properties.publicIPAllocationMethod", + type: { + name: "String", + }, + }, }, - publicIPAllocationMethod: { - serializedName: "properties.publicIPAllocationMethod", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachinePublicIPAddressDnsSettingsConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachinePublicIPAddressDnsSettingsConfiguration", - modelProperties: { - domainNameLabel: { - serializedName: "domainNameLabel", - required: true, - type: { - name: "String" - } + }, + }; + +export const VirtualMachinePublicIPAddressDnsSettingsConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachinePublicIPAddressDnsSettingsConfiguration", + modelProperties: { + domainNameLabel: { + serializedName: "domainNameLabel", + required: true, + type: { + name: "String", + }, + }, + domainNameLabelScope: { + serializedName: "domainNameLabelScope", + type: { + name: "String", + }, + }, }, - domainNameLabelScope: { - serializedName: "domainNameLabelScope", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const VirtualMachineIpTag: coreClient.CompositeMapper = { type: { @@ -4865,60 +5142,62 @@ export const VirtualMachineIpTag: coreClient.CompositeMapper = { ipTagType: { serializedName: "ipTagType", type: { - name: "String" - } + name: "String", + }, }, tag: { serializedName: "tag", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetVMNetworkProfileConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMNetworkProfileConfiguration", - modelProperties: { - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfiguration" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetVMProtectionPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMProtectionPolicy", - modelProperties: { - protectFromScaleIn: { - serializedName: "protectFromScaleIn", - type: { - name: "Boolean" - } + name: "String", + }, }, - protectFromScaleSetActions: { - serializedName: "protectFromScaleSetActions", - type: { - name: "Boolean" - } - } - } - } -}; + }, + }, +}; + +export const VirtualMachineScaleSetVMNetworkProfileConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMNetworkProfileConfiguration", + modelProperties: { + networkInterfaceConfigurations: { + serializedName: "networkInterfaceConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfiguration", + }, + }, + }, + }, + }, + }, + }; + +export const VirtualMachineScaleSetVMProtectionPolicy: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMProtectionPolicy", + modelProperties: { + protectFromScaleIn: { + serializedName: "protectFromScaleIn", + type: { + name: "Boolean", + }, + }, + protectFromScaleSetActions: { + serializedName: "protectFromScaleSetActions", + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const VirtualMachineIdentity: coreClient.CompositeMapper = { type: { @@ -4929,15 +5208,15 @@ export const VirtualMachineIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", @@ -4947,9 +5226,9 @@ export const VirtualMachineIdentity: coreClient.CompositeMapper = { "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", - "None" - ] - } + "None", + ], + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", @@ -4958,13 +5237,13 @@ export const VirtualMachineIdentity: coreClient.CompositeMapper = { value: { type: { name: "Composite", - className: "UserAssignedIdentitiesValue" - } - } - } - } - } - } + className: "UserAssignedIdentitiesValue", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineScaleSetVMListResult: coreClient.CompositeMapper = { @@ -4980,19 +5259,19 @@ export const VirtualMachineScaleSetVMListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineScaleSetVM" - } - } - } + className: "VirtualMachineScaleSetVM", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RetrieveBootDiagnosticsDataResult: coreClient.CompositeMapper = { @@ -5004,18 +5283,127 @@ export const RetrieveBootDiagnosticsDataResult: coreClient.CompositeMapper = { serializedName: "consoleScreenshotBlobUri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, serialConsoleLogBlobUri: { serializedName: "serialConsoleLogBlobUri", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +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", + }, + }, + caching: { + serializedName: "caching", + type: { + name: "Enum", + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, + }, + deleteOption: { + serializedName: "deleteOption", + type: { + name: "String", + }, + }, + diskEncryptionSet: { + serializedName: "diskEncryptionSet", + type: { + name: "Composite", + className: "DiskEncryptionSetParameters", + }, + }, + writeAcceleratorEnabled: { + serializedName: "writeAcceleratorEnabled", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +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 = { @@ -5030,13 +5418,13 @@ export const VirtualMachineExtensionsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtension" - } - } - } - } - } - } + className: "VirtualMachineExtension", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineListResult: coreClient.CompositeMapper = { @@ -5052,19 +5440,19 @@ export const VirtualMachineListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachine" - } - } - } + className: "VirtualMachine", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineInstanceView: coreClient.CompositeMapper = { @@ -5075,58 +5463,58 @@ export const VirtualMachineInstanceView: coreClient.CompositeMapper = { platformUpdateDomain: { serializedName: "platformUpdateDomain", type: { - name: "Number" - } + name: "Number", + }, }, platformFaultDomain: { serializedName: "platformFaultDomain", type: { - name: "Number" - } + name: "Number", + }, }, computerName: { serializedName: "computerName", type: { - name: "String" - } + name: "String", + }, }, osName: { serializedName: "osName", type: { - name: "String" - } + name: "String", + }, }, osVersion: { serializedName: "osVersion", type: { - name: "String" - } + name: "String", + }, }, hyperVGeneration: { serializedName: "hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, rdpThumbPrint: { serializedName: "rdpThumbPrint", type: { - name: "String" - } + name: "String", + }, }, vmAgent: { serializedName: "vmAgent", type: { name: "Composite", - className: "VirtualMachineAgentInstanceView" - } + className: "VirtualMachineAgentInstanceView", + }, }, maintenanceRedeployStatus: { serializedName: "maintenanceRedeployStatus", type: { name: "Composite", - className: "MaintenanceRedeployStatus" - } + className: "MaintenanceRedeployStatus", + }, }, disks: { serializedName: "disks", @@ -5135,10 +5523,10 @@ export const VirtualMachineInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskInstanceView" - } - } - } + className: "DiskInstanceView", + }, + }, + }, }, extensions: { serializedName: "extensions", @@ -5147,31 +5535,31 @@ export const VirtualMachineInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtensionInstanceView" - } - } - } + className: "VirtualMachineExtensionInstanceView", + }, + }, + }, }, vmHealth: { serializedName: "vmHealth", type: { name: "Composite", - className: "VirtualMachineHealthStatus" - } + className: "VirtualMachineHealthStatus", + }, }, bootDiagnostics: { serializedName: "bootDiagnostics", type: { name: "Composite", - className: "BootDiagnosticsInstanceView" - } + className: "BootDiagnosticsInstanceView", + }, }, assignedHost: { serializedName: "assignedHost", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, statuses: { serializedName: "statuses", @@ -5180,20 +5568,27 @@ export const VirtualMachineInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } + className: "InstanceViewStatus", + }, + }, + }, }, patchStatus: { serializedName: "patchStatus", type: { name: "Composite", - className: "VirtualMachinePatchStatus" - } - } - } - } + className: "VirtualMachinePatchStatus", + }, + }, + isVMInStandbyPool: { + serializedName: "isVMInStandbyPool", + readOnly: true, + type: { + name: "Boolean", + }, + }, + }, + }, }; export const VirtualMachinePatchStatus: coreClient.CompositeMapper = { @@ -5205,15 +5600,15 @@ export const VirtualMachinePatchStatus: coreClient.CompositeMapper = { serializedName: "availablePatchSummary", type: { name: "Composite", - className: "AvailablePatchSummary" - } + className: "AvailablePatchSummary", + }, }, lastPatchInstallationSummary: { serializedName: "lastPatchInstallationSummary", type: { name: "Composite", - className: "LastPatchInstallationSummary" - } + className: "LastPatchInstallationSummary", + }, }, configurationStatuses: { serializedName: "configurationStatuses", @@ -5223,13 +5618,13 @@ export const VirtualMachinePatchStatus: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const AvailablePatchSummary: coreClient.CompositeMapper = { @@ -5241,60 +5636,60 @@ export const AvailablePatchSummary: coreClient.CompositeMapper = { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, assessmentActivityId: { serializedName: "assessmentActivityId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rebootPending: { serializedName: "rebootPending", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, criticalAndSecurityPatchCount: { serializedName: "criticalAndSecurityPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, otherPatchCount: { serializedName: "otherPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, startTime: { serializedName: "startTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedTime: { serializedName: "lastModifiedTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ApiError" - } - } - } - } + className: "ApiError", + }, + }, + }, + }, }; export const LastPatchInstallationSummary: coreClient.CompositeMapper = { @@ -5306,81 +5701,81 @@ export const LastPatchInstallationSummary: coreClient.CompositeMapper = { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, installationActivityId: { serializedName: "installationActivityId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, maintenanceWindowExceeded: { serializedName: "maintenanceWindowExceeded", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, notSelectedPatchCount: { serializedName: "notSelectedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, excludedPatchCount: { serializedName: "excludedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, pendingPatchCount: { serializedName: "pendingPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, installedPatchCount: { serializedName: "installedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, failedPatchCount: { serializedName: "failedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, startTime: { serializedName: "startTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedTime: { serializedName: "lastModifiedTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ApiError" - } - } - } - } + className: "ApiError", + }, + }, + }, + }, }; export const VirtualMachineCaptureParameters: coreClient.CompositeMapper = { @@ -5392,25 +5787,25 @@ export const VirtualMachineCaptureParameters: coreClient.CompositeMapper = { serializedName: "vhdPrefix", required: true, type: { - name: "String" - } + name: "String", + }, }, destinationContainerName: { serializedName: "destinationContainerName", required: true, type: { - name: "String" - } + name: "String", + }, }, overwriteVhds: { serializedName: "overwriteVhds", required: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const VirtualMachineAssessPatchesResult: coreClient.CompositeMapper = { @@ -5422,43 +5817,43 @@ export const VirtualMachineAssessPatchesResult: coreClient.CompositeMapper = { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, assessmentActivityId: { serializedName: "assessmentActivityId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rebootPending: { serializedName: "rebootPending", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, criticalAndSecurityPatchCount: { serializedName: "criticalAndSecurityPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, otherPatchCount: { serializedName: "otherPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, startDateTime: { serializedName: "startDateTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, availablePatches: { serializedName: "availablePatches", @@ -5468,141 +5863,143 @@ export const VirtualMachineAssessPatchesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineSoftwarePatchProperties" - } - } - } + className: "VirtualMachineSoftwarePatchProperties", + }, + }, + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ApiError" - } - } - } - } -}; - -export const VirtualMachineSoftwarePatchProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineSoftwarePatchProperties", - modelProperties: { - patchId: { - serializedName: "patchId", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - version: { - serializedName: "version", - readOnly: true, - type: { - name: "String" - } - }, - kbId: { - serializedName: "kbId", - readOnly: true, - type: { - name: "String" - } - }, - classifications: { - serializedName: "classifications", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - rebootBehavior: { - serializedName: "rebootBehavior", - readOnly: true, - type: { - name: "String" - } - }, - activityId: { - serializedName: "activityId", - readOnly: true, - type: { - name: "String" - } - }, - publishedDate: { - serializedName: "publishedDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - lastModifiedDateTime: { - serializedName: "lastModifiedDateTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - assessmentState: { - serializedName: "assessmentState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineInstallPatchesParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineInstallPatchesParameters", - modelProperties: { - maximumDuration: { - serializedName: "maximumDuration", - type: { - name: "String" - } + className: "ApiError", + }, }, - rebootSetting: { - serializedName: "rebootSetting", - required: true, - type: { - name: "String" - } + }, + }, +}; + +export const VirtualMachineSoftwarePatchProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineSoftwarePatchProperties", + modelProperties: { + patchId: { + serializedName: "patchId", + readOnly: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + version: { + serializedName: "version", + readOnly: true, + type: { + name: "String", + }, + }, + kbId: { + serializedName: "kbId", + readOnly: true, + type: { + name: "String", + }, + }, + classifications: { + serializedName: "classifications", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + rebootBehavior: { + serializedName: "rebootBehavior", + readOnly: true, + type: { + name: "String", + }, + }, + activityId: { + serializedName: "activityId", + readOnly: true, + type: { + name: "String", + }, + }, + publishedDate: { + serializedName: "publishedDate", + readOnly: true, + type: { + name: "DateTime", + }, + }, + lastModifiedDateTime: { + serializedName: "lastModifiedDateTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + assessmentState: { + serializedName: "assessmentState", + readOnly: true, + type: { + name: "String", + }, + }, }, - windowsParameters: { - serializedName: "windowsParameters", - type: { - name: "Composite", - className: "WindowsParameters" - } + }, + }; + +export const VirtualMachineInstallPatchesParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineInstallPatchesParameters", + modelProperties: { + maximumDuration: { + serializedName: "maximumDuration", + type: { + name: "String", + }, + }, + rebootSetting: { + serializedName: "rebootSetting", + required: true, + type: { + name: "String", + }, + }, + windowsParameters: { + serializedName: "windowsParameters", + type: { + name: "Composite", + className: "WindowsParameters", + }, + }, + linuxParameters: { + serializedName: "linuxParameters", + type: { + name: "Composite", + className: "LinuxParameters", + }, + }, }, - linuxParameters: { - serializedName: "linuxParameters", - type: { - name: "Composite", - className: "LinuxParameters" - } - } - } - } -}; + }, + }; export const WindowsParameters: coreClient.CompositeMapper = { type: { @@ -5615,10 +6012,10 @@ export const WindowsParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, kbNumbersToInclude: { serializedName: "kbNumbersToInclude", @@ -5626,10 +6023,10 @@ export const WindowsParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, kbNumbersToExclude: { serializedName: "kbNumbersToExclude", @@ -5637,25 +6034,25 @@ export const WindowsParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, excludeKbsRequiringReboot: { serializedName: "excludeKbsRequiringReboot", type: { - name: "Boolean" - } + name: "Boolean", + }, }, maxPatchPublishDate: { serializedName: "maxPatchPublishDate", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const LinuxParameters: coreClient.CompositeMapper = { @@ -5669,10 +6066,10 @@ export const LinuxParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, packageNameMasksToInclude: { serializedName: "packageNameMasksToInclude", @@ -5680,10 +6077,10 @@ export const LinuxParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, packageNameMasksToExclude: { serializedName: "packageNameMasksToExclude", @@ -5691,19 +6088,19 @@ export const LinuxParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, maintenanceRunId: { serializedName: "maintenanceRunId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineInstallPatchesResult: coreClient.CompositeMapper = { @@ -5715,64 +6112,64 @@ export const VirtualMachineInstallPatchesResult: coreClient.CompositeMapper = { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, installationActivityId: { serializedName: "installationActivityId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rebootStatus: { serializedName: "rebootStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, maintenanceWindowExceeded: { serializedName: "maintenanceWindowExceeded", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, excludedPatchCount: { serializedName: "excludedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, notSelectedPatchCount: { serializedName: "notSelectedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, pendingPatchCount: { serializedName: "pendingPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, installedPatchCount: { serializedName: "installedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, failedPatchCount: { serializedName: "failedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, patches: { serializedName: "patches", @@ -5782,27 +6179,27 @@ export const VirtualMachineInstallPatchesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PatchInstallationDetail" - } - } - } + className: "PatchInstallationDetail", + }, + }, + }, }, startDateTime: { serializedName: "startDateTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ApiError" - } - } - } - } + className: "ApiError", + }, + }, + }, + }, }; export const PatchInstallationDetail: coreClient.CompositeMapper = { @@ -5814,29 +6211,29 @@ export const PatchInstallationDetail: coreClient.CompositeMapper = { serializedName: "patchId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, kbId: { serializedName: "kbId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, classifications: { serializedName: "classifications", @@ -5845,20 +6242,20 @@ export const PatchInstallationDetail: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, installationState: { serializedName: "installationState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PurchasePlan: coreClient.CompositeMapper = { @@ -5870,25 +6267,25 @@ export const PurchasePlan: coreClient.CompositeMapper = { serializedName: "publisher", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, product: { serializedName: "product", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OSDiskImage: coreClient.CompositeMapper = { @@ -5901,11 +6298,11 @@ export const OSDiskImage: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } - } - } - } + allowedValues: ["Windows", "Linux"], + }, + }, + }, + }, }; export const DataDiskImage: coreClient.CompositeMapper = { @@ -5917,11 +6314,11 @@ export const DataDiskImage: coreClient.CompositeMapper = { serializedName: "lun", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const AutomaticOSUpgradeProperties: coreClient.CompositeMapper = { @@ -5933,11 +6330,11 @@ export const AutomaticOSUpgradeProperties: coreClient.CompositeMapper = { serializedName: "automaticOSUpgradeSupported", required: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const DisallowedConfiguration: coreClient.CompositeMapper = { @@ -5948,11 +6345,11 @@ export const DisallowedConfiguration: coreClient.CompositeMapper = { vmDiskType: { serializedName: "vmDiskType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineImageFeature: coreClient.CompositeMapper = { @@ -5963,17 +6360,17 @@ export const VirtualMachineImageFeature: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageDeprecationStatus: coreClient.CompositeMapper = { @@ -5984,24 +6381,24 @@ export const ImageDeprecationStatus: coreClient.CompositeMapper = { imageState: { serializedName: "imageState", type: { - name: "String" - } + name: "String", + }, }, scheduledDeprecationTime: { serializedName: "scheduledDeprecationTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, alternativeOption: { serializedName: "alternativeOption", type: { name: "Composite", - className: "AlternativeOption" - } - } - } - } + className: "AlternativeOption", + }, + }, + }, + }, }; export const AlternativeOption: coreClient.CompositeMapper = { @@ -6012,17 +6409,17 @@ export const AlternativeOption: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VmImagesInEdgeZoneListResult: coreClient.CompositeMapper = { @@ -6037,19 +6434,19 @@ export const VmImagesInEdgeZoneListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AvailabilitySetListResult: coreClient.CompositeMapper = { @@ -6065,40 +6462,41 @@ export const AvailabilitySetListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AvailabilitySet" - } - } - } + className: "AvailabilitySet", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const ProximityPlacementGroupPropertiesIntent: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProximityPlacementGroupPropertiesIntent", - modelProperties: { - vmSizes: { - serializedName: "vmSizes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ProximityPlacementGroupPropertiesIntent: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ProximityPlacementGroupPropertiesIntent", + modelProperties: { + vmSizes: { + serializedName: "vmSizes", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; export const ProximityPlacementGroupListResult: coreClient.CompositeMapper = { type: { @@ -6113,19 +6511,19 @@ export const ProximityPlacementGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ProximityPlacementGroup" - } - } - } + className: "ProximityPlacementGroup", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DedicatedHostGroupInstanceView: coreClient.CompositeMapper = { @@ -6140,13 +6538,13 @@ export const DedicatedHostGroupInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DedicatedHostInstanceViewWithName" - } - } - } - } - } - } + className: "DedicatedHostInstanceViewWithName", + }, + }, + }, + }, + }, + }, }; export const DedicatedHostInstanceView: coreClient.CompositeMapper = { @@ -6158,15 +6556,15 @@ export const DedicatedHostInstanceView: coreClient.CompositeMapper = { serializedName: "assetId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, availableCapacity: { serializedName: "availableCapacity", type: { name: "Composite", - className: "DedicatedHostAvailableCapacity" - } + className: "DedicatedHostAvailableCapacity", + }, }, statuses: { serializedName: "statuses", @@ -6175,13 +6573,13 @@ export const DedicatedHostInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const DedicatedHostAvailableCapacity: coreClient.CompositeMapper = { @@ -6196,13 +6594,13 @@ export const DedicatedHostAvailableCapacity: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DedicatedHostAllocatableVM" - } - } - } - } - } - } + className: "DedicatedHostAllocatableVM", + }, + }, + }, + }, + }, + }, }; export const DedicatedHostAllocatableVM: coreClient.CompositeMapper = { @@ -6213,33 +6611,34 @@ export const DedicatedHostAllocatableVM: coreClient.CompositeMapper = { vmSize: { serializedName: "vmSize", type: { - name: "String" - } + name: "String", + }, }, count: { serializedName: "count", type: { - name: "Number" - } - } - } - } -}; - -export const DedicatedHostGroupPropertiesAdditionalCapabilities: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedHostGroupPropertiesAdditionalCapabilities", - modelProperties: { - ultraSSDEnabled: { - serializedName: "ultraSSDEnabled", - type: { - name: "Boolean" - } - } - } - } -}; + name: "Number", + }, + }, + }, + }, +}; + +export const DedicatedHostGroupPropertiesAdditionalCapabilities: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DedicatedHostGroupPropertiesAdditionalCapabilities", + modelProperties: { + ultraSSDEnabled: { + serializedName: "ultraSSDEnabled", + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const DedicatedHostGroupListResult: coreClient.CompositeMapper = { type: { @@ -6254,19 +6653,19 @@ export const DedicatedHostGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DedicatedHostGroup" - } - } - } + className: "DedicatedHostGroup", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DedicatedHostListResult: coreClient.CompositeMapper = { @@ -6282,19 +6681,19 @@ export const DedicatedHostListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DedicatedHost" - } - } - } + className: "DedicatedHost", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DedicatedHostSizeListResult: coreClient.CompositeMapper = { @@ -6308,13 +6707,13 @@ export const DedicatedHostSizeListResult: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const SshPublicKeysGroupListResult: coreClient.CompositeMapper = { @@ -6330,19 +6729,34 @@ export const SshPublicKeysGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SshPublicKeyResource" - } - } - } + className: "SshPublicKeyResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const SshGenerateKeyPairInputParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SshGenerateKeyPairInputParameters", + modelProperties: { + encryptionType: { + serializedName: "encryptionType", + type: { + name: "String", + }, + }, + }, + }, }; export const SshPublicKeyGenerateKeyPairResult: coreClient.CompositeMapper = { @@ -6354,25 +6768,25 @@ export const SshPublicKeyGenerateKeyPairResult: coreClient.CompositeMapper = { serializedName: "privateKey", required: true, type: { - name: "String" - } + name: "String", + }, }, publicKey: { serializedName: "publicKey", required: true, type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageStorageProfile: coreClient.CompositeMapper = { @@ -6384,8 +6798,8 @@ export const ImageStorageProfile: coreClient.CompositeMapper = { serializedName: "osDisk", type: { name: "Composite", - className: "ImageOSDisk" - } + className: "ImageOSDisk", + }, }, dataDisks: { serializedName: "dataDisks", @@ -6394,19 +6808,19 @@ export const ImageStorageProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ImageDataDisk" - } - } - } + className: "ImageDataDisk", + }, + }, + }, }, zoneResilient: { serializedName: "zoneResilient", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ImageDisk: coreClient.CompositeMapper = { @@ -6418,50 +6832,50 @@ export const ImageDisk: coreClient.CompositeMapper = { serializedName: "snapshot", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, blobUri: { serializedName: "blobUri", type: { - name: "String" - } + name: "String", + }, }, caching: { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, diskSizeGB: { serializedName: "diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, storageAccountType: { serializedName: "storageAccountType", type: { - name: "String" - } + name: "String", + }, }, diskEncryptionSet: { serializedName: "diskEncryptionSet", type: { name: "Composite", - className: "DiskEncryptionSetParameters" - } - } - } - } + className: "DiskEncryptionSetParameters", + }, + }, + }, + }, }; export const ImageListResult: coreClient.CompositeMapper = { @@ -6477,42 +6891,43 @@ export const ImageListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Image" - } - } - } + className: "Image", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const RestorePointCollectionSourceProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorePointCollectionSourceProperties", - modelProperties: { - location: { - serializedName: "location", - readOnly: true, - type: { - name: "String" - } + name: "String", + }, }, - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const RestorePointCollectionSourceProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RestorePointCollectionSourceProperties", + modelProperties: { + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String", + }, + }, + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + }, + }, + }; export const RestorePointSourceMetadata: coreClient.CompositeMapper = { type: { @@ -6523,74 +6938,74 @@ export const RestorePointSourceMetadata: coreClient.CompositeMapper = { serializedName: "hardwareProfile", type: { name: "Composite", - className: "HardwareProfile" - } + className: "HardwareProfile", + }, }, storageProfile: { serializedName: "storageProfile", type: { name: "Composite", - className: "RestorePointSourceVMStorageProfile" - } + className: "RestorePointSourceVMStorageProfile", + }, }, osProfile: { serializedName: "osProfile", type: { name: "Composite", - className: "OSProfile" - } + className: "OSProfile", + }, }, diagnosticsProfile: { serializedName: "diagnosticsProfile", type: { name: "Composite", - className: "DiagnosticsProfile" - } + className: "DiagnosticsProfile", + }, }, licenseType: { serializedName: "licenseType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, vmId: { serializedName: "vmId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, securityProfile: { serializedName: "securityProfile", type: { name: "Composite", - className: "SecurityProfile" - } + className: "SecurityProfile", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, userData: { serializedName: "userData", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hyperVGeneration: { serializedName: "hyperVGeneration", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RestorePointSourceVMStorageProfile: coreClient.CompositeMapper = { @@ -6602,8 +7017,8 @@ export const RestorePointSourceVMStorageProfile: coreClient.CompositeMapper = { serializedName: "osDisk", type: { name: "Composite", - className: "RestorePointSourceVmosDisk" - } + className: "RestorePointSourceVmosDisk", + }, }, dataDisks: { serializedName: "dataDisks", @@ -6612,13 +7027,20 @@ export const RestorePointSourceVMStorageProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorePointSourceVMDataDisk" - } - } - } - } - } - } + className: "RestorePointSourceVMDataDisk", + }, + }, + }, + }, + diskControllerType: { + serializedName: "diskControllerType", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, }; export const RestorePointSourceVmosDisk: coreClient.CompositeMapper = { @@ -6630,61 +7052,61 @@ export const RestorePointSourceVmosDisk: coreClient.CompositeMapper = { serializedName: "osType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, encryptionSettings: { serializedName: "encryptionSettings", type: { name: "Composite", - className: "DiskEncryptionSettings" - } + className: "DiskEncryptionSettings", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, caching: { serializedName: "caching", readOnly: true, type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, diskSizeGB: { serializedName: "diskSizeGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "ManagedDiskParameters" - } + className: "ManagedDiskParameters", + }, }, diskRestorePoint: { serializedName: "diskRestorePoint", type: { name: "Composite", - className: "DiskRestorePointAttributes" - } + className: "DiskRestorePointAttributes", + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const RestorePointEncryption: coreClient.CompositeMapper = { @@ -6696,17 +7118,17 @@ export const RestorePointEncryption: coreClient.CompositeMapper = { serializedName: "diskEncryptionSet", type: { name: "Composite", - className: "DiskEncryptionSetParameters" - } + className: "DiskEncryptionSetParameters", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RestorePointSourceVMDataDisk: coreClient.CompositeMapper = { @@ -6718,54 +7140,54 @@ export const RestorePointSourceVMDataDisk: coreClient.CompositeMapper = { serializedName: "lun", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, caching: { serializedName: "caching", readOnly: true, type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, diskSizeGB: { serializedName: "diskSizeGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "ManagedDiskParameters" - } + className: "ManagedDiskParameters", + }, }, diskRestorePoint: { serializedName: "diskRestorePoint", type: { name: "Composite", - className: "DiskRestorePointAttributes" - } + className: "DiskRestorePointAttributes", + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const RestorePointInstanceView: coreClient.CompositeMapper = { @@ -6780,10 +7202,10 @@ export const RestorePointInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskRestorePointInstanceView" - } - } - } + className: "DiskRestorePointInstanceView", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -6792,13 +7214,13 @@ export const RestorePointInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const DiskRestorePointInstanceView: coreClient.CompositeMapper = { @@ -6809,18 +7231,18 @@ export const DiskRestorePointInstanceView: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, replicationStatus: { serializedName: "replicationStatus", type: { name: "Composite", - className: "DiskRestorePointReplicationStatus" - } - } - } - } + className: "DiskRestorePointReplicationStatus", + }, + }, + }, + }, }; export const DiskRestorePointReplicationStatus: coreClient.CompositeMapper = { @@ -6832,17 +7254,17 @@ export const DiskRestorePointReplicationStatus: coreClient.CompositeMapper = { serializedName: "status", type: { name: "Composite", - className: "InstanceViewStatus" - } + className: "InstanceViewStatus", + }, }, completionPercent: { serializedName: "completionPercent", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ProxyResource: coreClient.CompositeMapper = { @@ -6854,25 +7276,25 @@ export const ProxyResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RestorePointCollectionListResult: coreClient.CompositeMapper = { @@ -6887,42 +7309,56 @@ export const RestorePointCollectionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorePointCollection" - } - } - } + className: "RestorePointCollection", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const CapacityReservationGroupInstanceView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityReservationGroupInstanceView", - modelProperties: { - capacityReservations: { - serializedName: "capacityReservations", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CapacityReservationInstanceViewWithName" - } - } - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const CapacityReservationGroupInstanceView: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CapacityReservationGroupInstanceView", + modelProperties: { + capacityReservations: { + serializedName: "capacityReservations", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CapacityReservationInstanceViewWithName", + }, + }, + }, + }, + sharedSubscriptionIds: { + serializedName: "sharedSubscriptionIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly", + }, + }, + }, + }, + }, + }, + }; export const CapacityReservationInstanceView: coreClient.CompositeMapper = { type: { @@ -6933,8 +7369,8 @@ export const CapacityReservationInstanceView: coreClient.CompositeMapper = { serializedName: "utilizationInfo", type: { name: "Composite", - className: "CapacityReservationUtilization" - } + className: "CapacityReservationUtilization", + }, }, statuses: { serializedName: "statuses", @@ -6943,13 +7379,13 @@ export const CapacityReservationInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const CapacityReservationUtilization: coreClient.CompositeMapper = { @@ -6961,8 +7397,8 @@ export const CapacityReservationUtilization: coreClient.CompositeMapper = { serializedName: "currentCapacity", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, virtualMachinesAllocated: { serializedName: "virtualMachinesAllocated", @@ -6972,13 +7408,34 @@ export const CapacityReservationUtilization: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, + }, + }, + }, +}; + +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 = { @@ -6994,19 +7451,19 @@ export const CapacityReservationGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CapacityReservationGroup" - } - } - } + className: "CapacityReservationGroup", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CapacityReservationListResult: coreClient.CompositeMapper = { @@ -7022,19 +7479,19 @@ export const CapacityReservationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CapacityReservation" - } - } - } + className: "CapacityReservation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LogAnalyticsInputBase: coreClient.CompositeMapper = { @@ -7046,55 +7503,55 @@ export const LogAnalyticsInputBase: coreClient.CompositeMapper = { serializedName: "blobContainerSasUri", required: true, type: { - name: "String" - } + name: "String", + }, }, fromTime: { serializedName: "fromTime", required: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, toTime: { serializedName: "toTime", required: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, groupByThrottlePolicy: { serializedName: "groupByThrottlePolicy", type: { - name: "Boolean" - } + name: "Boolean", + }, }, groupByOperationName: { serializedName: "groupByOperationName", type: { - name: "Boolean" - } + name: "Boolean", + }, }, groupByResourceName: { serializedName: "groupByResourceName", type: { - name: "Boolean" - } + name: "Boolean", + }, }, groupByClientApplicationId: { serializedName: "groupByClientApplicationId", type: { - name: "Boolean" - } + name: "Boolean", + }, }, groupByUserAgent: { serializedName: "groupByUserAgent", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const LogAnalyticsOperationResult: coreClient.CompositeMapper = { @@ -7106,11 +7563,11 @@ export const LogAnalyticsOperationResult: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "LogAnalyticsOutput" - } - } - } - } + className: "LogAnalyticsOutput", + }, + }, + }, + }, }; export const LogAnalyticsOutput: coreClient.CompositeMapper = { @@ -7122,11 +7579,11 @@ export const LogAnalyticsOutput: coreClient.CompositeMapper = { serializedName: "output", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RunCommandListResult: coreClient.CompositeMapper = { @@ -7142,19 +7599,19 @@ export const RunCommandListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandDocumentBase" - } - } - } + className: "RunCommandDocumentBase", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RunCommandDocumentBase: coreClient.CompositeMapper = { @@ -7166,40 +7623,40 @@ export const RunCommandDocumentBase: coreClient.CompositeMapper = { serializedName: "$schema", required: true, type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", required: true, type: { - name: "String" - } + name: "String", + }, }, osType: { serializedName: "osType", required: true, type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, label: { serializedName: "label", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RunCommandParameterDefinition: coreClient.CompositeMapper = { @@ -7211,31 +7668,31 @@ export const RunCommandParameterDefinition: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, defaultValue: { serializedName: "defaultValue", type: { - name: "String" - } + name: "String", + }, }, required: { defaultValue: false, serializedName: "required", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const RunCommandInput: coreClient.CompositeMapper = { @@ -7247,8 +7704,8 @@ export const RunCommandInput: coreClient.CompositeMapper = { serializedName: "commandId", required: true, type: { - name: "String" - } + name: "String", + }, }, script: { serializedName: "script", @@ -7256,10 +7713,10 @@ export const RunCommandInput: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, parameters: { serializedName: "parameters", @@ -7268,13 +7725,13 @@ export const RunCommandInput: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandInputParameter" - } - } - } - } - } - } + className: "RunCommandInputParameter", + }, + }, + }, + }, + }, + }, }; export const RunCommandInputParameter: coreClient.CompositeMapper = { @@ -7286,18 +7743,18 @@ export const RunCommandInputParameter: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RunCommandResult: coreClient.CompositeMapper = { @@ -7312,48 +7769,49 @@ export const RunCommandResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } -}; - -export const VirtualMachineRunCommandScriptSource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineRunCommandScriptSource", - modelProperties: { - script: { - serializedName: "script", - type: { - name: "String" - } - }, - scriptUri: { - serializedName: "scriptUri", - type: { - name: "String" - } - }, - commandId: { - serializedName: "commandId", - type: { - name: "String" - } + className: "InstanceViewStatus", + }, + }, + }, }, - scriptUriManagedIdentity: { - serializedName: "scriptUriManagedIdentity", - type: { - name: "Composite", - className: "RunCommandManagedIdentity" - } - } - } - } -}; + }, + }, +}; + +export const VirtualMachineRunCommandScriptSource: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineRunCommandScriptSource", + modelProperties: { + script: { + serializedName: "script", + type: { + name: "String", + }, + }, + scriptUri: { + serializedName: "scriptUri", + type: { + name: "String", + }, + }, + commandId: { + serializedName: "commandId", + type: { + name: "String", + }, + }, + scriptUriManagedIdentity: { + serializedName: "scriptUriManagedIdentity", + type: { + name: "Composite", + className: "RunCommandManagedIdentity", + }, + }, + }, + }, + }; export const RunCommandManagedIdentity: coreClient.CompositeMapper = { type: { @@ -7363,81 +7821,82 @@ export const RunCommandManagedIdentity: coreClient.CompositeMapper = { clientId: { serializedName: "clientId", type: { - name: "String" - } + name: "String", + }, }, objectId: { serializedName: "objectId", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineRunCommandInstanceView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineRunCommandInstanceView", - modelProperties: { - executionState: { - serializedName: "executionState", - type: { - name: "String" - } - }, - executionMessage: { - serializedName: "executionMessage", - type: { - name: "String" - } - }, - exitCode: { - serializedName: "exitCode", - type: { - name: "Number" - } - }, - output: { - serializedName: "output", - type: { - name: "String" - } - }, - error: { - serializedName: "error", - type: { - name: "String" - } - }, - startTime: { - serializedName: "startTime", - type: { - name: "DateTime" - } + name: "String", + }, }, - endTime: { - serializedName: "endTime", - type: { - name: "DateTime" - } + }, + }, +}; + +export const VirtualMachineRunCommandInstanceView: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineRunCommandInstanceView", + modelProperties: { + executionState: { + serializedName: "executionState", + type: { + name: "String", + }, + }, + executionMessage: { + serializedName: "executionMessage", + type: { + name: "String", + }, + }, + exitCode: { + serializedName: "exitCode", + type: { + name: "Number", + }, + }, + output: { + serializedName: "output", + type: { + name: "String", + }, + }, + error: { + serializedName: "error", + type: { + name: "String", + }, + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime", + }, + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime", + }, + }, + statuses: { + serializedName: "statuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus", + }, + }, + }, + }, }, - statuses: { - serializedName: "statuses", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } -}; + }, + }; export const VirtualMachineRunCommandsListResult: coreClient.CompositeMapper = { type: { @@ -7452,19 +7911,19 @@ export const VirtualMachineRunCommandsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineRunCommand" - } - } - } + className: "VirtualMachineRunCommand", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskSku: coreClient.CompositeMapper = { @@ -7475,18 +7934,18 @@ export const DiskSku: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PurchasePlanAutoGenerated: coreClient.CompositeMapper = { @@ -7498,31 +7957,31 @@ export const PurchasePlanAutoGenerated: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "publisher", required: true, type: { - name: "String" - } + name: "String", + }, }, product: { serializedName: "product", required: true, type: { - name: "String" - } + name: "String", + }, }, promotionCode: { serializedName: "promotionCode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SupportedCapabilities: coreClient.CompositeMapper = { @@ -7533,23 +7992,23 @@ export const SupportedCapabilities: coreClient.CompositeMapper = { diskControllerTypes: { serializedName: "diskControllerTypes", type: { - name: "String" - } + name: "String", + }, }, acceleratedNetwork: { serializedName: "acceleratedNetwork", type: { - name: "Boolean" - } + name: "Boolean", + }, }, architecture: { serializedName: "architecture", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CreationData: coreClient.CompositeMapper = { @@ -7561,80 +8020,86 @@ export const CreationData: coreClient.CompositeMapper = { serializedName: "createOption", required: true, type: { - name: "String" - } + name: "String", + }, }, storageAccountId: { serializedName: "storageAccountId", type: { - name: "String" - } + name: "String", + }, }, imageReference: { serializedName: "imageReference", type: { name: "Composite", - className: "ImageDiskReference" - } + className: "ImageDiskReference", + }, }, galleryImageReference: { serializedName: "galleryImageReference", type: { name: "Composite", - className: "ImageDiskReference" - } + className: "ImageDiskReference", + }, }, sourceUri: { serializedName: "sourceUri", type: { - name: "String" - } + name: "String", + }, }, sourceResourceId: { serializedName: "sourceResourceId", type: { - name: "String" - } + name: "String", + }, }, sourceUniqueId: { serializedName: "sourceUniqueId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, uploadSizeBytes: { serializedName: "uploadSizeBytes", type: { - name: "Number" - } + name: "Number", + }, }, logicalSectorSize: { serializedName: "logicalSectorSize", type: { - name: "Number" - } + name: "Number", + }, }, securityDataUri: { serializedName: "securityDataUri", type: { - name: "String" - } + name: "String", + }, }, performancePlus: { serializedName: "performancePlus", type: { - name: "Boolean" - } + name: "Boolean", + }, }, elasticSanResourceId: { serializedName: "elasticSanResourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + provisionedBandwidthCopySpeed: { + serializedName: "provisionedBandwidthCopySpeed", + type: { + name: "String", + }, + }, + }, + }, }; export const ImageDiskReference: coreClient.CompositeMapper = { @@ -7645,29 +8110,29 @@ export const ImageDiskReference: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, sharedGalleryImageId: { serializedName: "sharedGalleryImageId", type: { - name: "String" - } + name: "String", + }, }, communityGalleryImageId: { serializedName: "communityGalleryImageId", type: { - name: "String" - } + name: "String", + }, }, lun: { serializedName: "lun", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const EncryptionSettingsCollection: coreClient.CompositeMapper = { @@ -7679,8 +8144,8 @@ export const EncryptionSettingsCollection: coreClient.CompositeMapper = { serializedName: "enabled", required: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, encryptionSettings: { serializedName: "encryptionSettings", @@ -7689,19 +8154,19 @@ export const EncryptionSettingsCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EncryptionSettingsElement" - } - } - } + className: "EncryptionSettingsElement", + }, + }, + }, }, encryptionSettingsVersion: { serializedName: "encryptionSettingsVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EncryptionSettingsElement: coreClient.CompositeMapper = { @@ -7713,18 +8178,18 @@ export const EncryptionSettingsElement: coreClient.CompositeMapper = { serializedName: "diskEncryptionKey", type: { name: "Composite", - className: "KeyVaultAndSecretReference" - } + className: "KeyVaultAndSecretReference", + }, }, keyEncryptionKey: { serializedName: "keyEncryptionKey", type: { name: "Composite", - className: "KeyVaultAndKeyReference" - } - } - } - } + className: "KeyVaultAndKeyReference", + }, + }, + }, + }, }; export const KeyVaultAndSecretReference: coreClient.CompositeMapper = { @@ -7736,18 +8201,18 @@ export const KeyVaultAndSecretReference: coreClient.CompositeMapper = { serializedName: "sourceVault", type: { name: "Composite", - className: "SourceVault" - } + className: "SourceVault", + }, }, secretUrl: { serializedName: "secretUrl", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SourceVault: coreClient.CompositeMapper = { @@ -7758,11 +8223,11 @@ export const SourceVault: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const KeyVaultAndKeyReference: coreClient.CompositeMapper = { @@ -7774,18 +8239,18 @@ export const KeyVaultAndKeyReference: coreClient.CompositeMapper = { serializedName: "sourceVault", type: { name: "Composite", - className: "SourceVault" - } + className: "SourceVault", + }, }, keyUrl: { serializedName: "keyUrl", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Encryption: coreClient.CompositeMapper = { @@ -7796,17 +8261,17 @@ export const Encryption: coreClient.CompositeMapper = { diskEncryptionSetId: { serializedName: "diskEncryptionSetId", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ShareInfoElement: coreClient.CompositeMapper = { @@ -7818,11 +8283,11 @@ export const ShareInfoElement: coreClient.CompositeMapper = { serializedName: "vmUri", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PropertyUpdatesInProgress: coreClient.CompositeMapper = { @@ -7833,11 +8298,11 @@ export const PropertyUpdatesInProgress: coreClient.CompositeMapper = { targetTier: { serializedName: "targetTier", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskSecurityProfile: coreClient.CompositeMapper = { @@ -7848,17 +8313,17 @@ export const DiskSecurityProfile: coreClient.CompositeMapper = { securityType: { serializedName: "securityType", type: { - name: "String" - } + name: "String", + }, }, secureVMDiskEncryptionSetId: { serializedName: "secureVMDiskEncryptionSetId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskUpdate: coreClient.CompositeMapper = { @@ -7870,144 +8335,144 @@ export const DiskUpdate: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "DiskSku" - } + className: "DiskSku", + }, }, osType: { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, diskSizeGB: { serializedName: "properties.diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, encryptionSettingsCollection: { serializedName: "properties.encryptionSettingsCollection", type: { name: "Composite", - className: "EncryptionSettingsCollection" - } + className: "EncryptionSettingsCollection", + }, }, diskIopsReadWrite: { serializedName: "properties.diskIOPSReadWrite", type: { - name: "Number" - } + name: "Number", + }, }, diskMBpsReadWrite: { serializedName: "properties.diskMBpsReadWrite", type: { - name: "Number" - } + name: "Number", + }, }, diskIopsReadOnly: { serializedName: "properties.diskIOPSReadOnly", type: { - name: "Number" - } + name: "Number", + }, }, diskMBpsReadOnly: { serializedName: "properties.diskMBpsReadOnly", type: { - name: "Number" - } + name: "Number", + }, }, maxShares: { serializedName: "properties.maxShares", type: { - name: "Number" - } + name: "Number", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "Encryption" - } + className: "Encryption", + }, }, networkAccessPolicy: { serializedName: "properties.networkAccessPolicy", type: { - name: "String" - } + name: "String", + }, }, diskAccessId: { serializedName: "properties.diskAccessId", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "properties.tier", type: { - name: "String" - } + name: "String", + }, }, burstingEnabled: { serializedName: "properties.burstingEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "PurchasePlanAutoGenerated" - } + className: "PurchasePlanAutoGenerated", + }, }, supportedCapabilities: { serializedName: "properties.supportedCapabilities", type: { name: "Composite", - className: "SupportedCapabilities" - } + className: "SupportedCapabilities", + }, }, propertyUpdatesInProgress: { serializedName: "properties.propertyUpdatesInProgress", type: { name: "Composite", - className: "PropertyUpdatesInProgress" - } + className: "PropertyUpdatesInProgress", + }, }, supportsHibernation: { serializedName: "properties.supportsHibernation", type: { - name: "Boolean" - } + name: "Boolean", + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, dataAccessAuthMode: { serializedName: "properties.dataAccessAuthMode", type: { - name: "String" - } + name: "String", + }, }, optimizedForFrequentAttach: { serializedName: "properties.optimizedForFrequentAttach", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const DiskList: coreClient.CompositeMapper = { @@ -8023,19 +8488,19 @@ export const DiskList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Disk" - } - } - } + className: "Disk", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GrantAccessData: coreClient.CompositeMapper = { @@ -8047,30 +8512,30 @@ export const GrantAccessData: coreClient.CompositeMapper = { serializedName: "access", required: true, type: { - name: "String" - } + name: "String", + }, }, durationInSeconds: { serializedName: "durationInSeconds", required: true, type: { - name: "Number" - } + name: "Number", + }, }, getSecureVMGuestStateSAS: { serializedName: "getSecureVMGuestStateSAS", type: { - name: "Boolean" - } + name: "Boolean", + }, }, fileFormat: { serializedName: "fileFormat", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AccessUri: coreClient.CompositeMapper = { @@ -8082,18 +8547,18 @@ export const AccessUri: coreClient.CompositeMapper = { serializedName: "accessSAS", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, securityDataAccessSAS: { serializedName: "securityDataAccessSAS", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpointConnection: coreClient.CompositeMapper = { @@ -8105,46 +8570,46 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, privateEndpoint: { serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "PrivateEndpoint" - } + className: "PrivateEndpoint", + }, }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" - } + className: "PrivateLinkServiceConnectionState", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpoint: coreClient.CompositeMapper = { @@ -8156,11 +8621,11 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { @@ -8171,23 +8636,23 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { status: { serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, actionsRequired: { serializedName: "actionsRequired", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskAccessUpdate: coreClient.CompositeMapper = { @@ -8199,11 +8664,11 @@ export const DiskAccessUpdate: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const DiskAccessList: coreClient.CompositeMapper = { @@ -8219,19 +8684,19 @@ export const DiskAccessList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskAccess" - } - } - } + className: "DiskAccess", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { @@ -8246,13 +8711,13 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" - } - } - } - } - } - } + className: "PrivateLinkResource", + }, + }, + }, + }, + }, + }, }; export const PrivateLinkResource: coreClient.CompositeMapper = { @@ -8264,29 +8729,29 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, groupId: { serializedName: "properties.groupId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, requiredMembers: { serializedName: "properties.requiredMembers", @@ -8295,10 +8760,10 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, requiredZoneNames: { serializedName: "properties.requiredZoneNames", @@ -8306,13 +8771,13 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { @@ -8327,19 +8792,19 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EncryptionSetIdentity: coreClient.CompositeMapper = { @@ -8350,22 +8815,22 @@ export const EncryptionSetIdentity: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, principalId: { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", @@ -8374,13 +8839,13 @@ export const EncryptionSetIdentity: coreClient.CompositeMapper = { value: { type: { name: "Composite", - className: "UserAssignedIdentitiesValue" - } - } - } - } - } - } + className: "UserAssignedIdentitiesValue", + }, + }, + }, + }, + }, + }, }; export const KeyForDiskEncryptionSet: coreClient.CompositeMapper = { @@ -8392,18 +8857,18 @@ export const KeyForDiskEncryptionSet: coreClient.CompositeMapper = { serializedName: "sourceVault", type: { name: "Composite", - className: "SourceVault" - } + className: "SourceVault", + }, }, keyUrl: { serializedName: "keyUrl", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskEncryptionSetUpdate: coreClient.CompositeMapper = { @@ -8415,43 +8880,43 @@ export const DiskEncryptionSetUpdate: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "EncryptionSetIdentity" - } + className: "EncryptionSetIdentity", + }, }, encryptionType: { serializedName: "properties.encryptionType", type: { - name: "String" - } + name: "String", + }, }, activeKey: { serializedName: "properties.activeKey", type: { name: "Composite", - className: "KeyForDiskEncryptionSet" - } + className: "KeyForDiskEncryptionSet", + }, }, rotationToLatestKeyVersionEnabled: { serializedName: "properties.rotationToLatestKeyVersionEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, federatedClientId: { serializedName: "properties.federatedClientId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskEncryptionSetList: coreClient.CompositeMapper = { @@ -8467,19 +8932,19 @@ export const DiskEncryptionSetList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskEncryptionSet" - } - } - } + className: "DiskEncryptionSet", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceUriList: coreClient.CompositeMapper = { @@ -8494,19 +8959,19 @@ export const ResourceUriList: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProxyOnlyResource: coreClient.CompositeMapper = { @@ -8518,25 +8983,25 @@ export const ProxyOnlyResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskRestorePointList: coreClient.CompositeMapper = { @@ -8552,19 +9017,19 @@ export const DiskRestorePointList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskRestorePoint" - } - } - } + className: "DiskRestorePoint", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SnapshotSku: coreClient.CompositeMapper = { @@ -8575,18 +9040,18 @@ export const SnapshotSku: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CopyCompletionError: coreClient.CompositeMapper = { @@ -8598,18 +9063,18 @@ export const CopyCompletionError: coreClient.CompositeMapper = { serializedName: "errorCode", required: true, type: { - name: "String" - } + name: "String", + }, }, errorMessage: { serializedName: "errorMessage", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SnapshotUpdate: coreClient.CompositeMapper = { @@ -8621,82 +9086,82 @@ export const SnapshotUpdate: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "SnapshotSku" - } + className: "SnapshotSku", + }, }, osType: { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, diskSizeGB: { serializedName: "properties.diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, encryptionSettingsCollection: { serializedName: "properties.encryptionSettingsCollection", type: { name: "Composite", - className: "EncryptionSettingsCollection" - } + className: "EncryptionSettingsCollection", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "Encryption" - } + className: "Encryption", + }, }, networkAccessPolicy: { serializedName: "properties.networkAccessPolicy", type: { - name: "String" - } + name: "String", + }, }, diskAccessId: { serializedName: "properties.diskAccessId", type: { - name: "String" - } + name: "String", + }, }, supportsHibernation: { serializedName: "properties.supportsHibernation", type: { - name: "Boolean" - } + name: "Boolean", + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, dataAccessAuthMode: { serializedName: "properties.dataAccessAuthMode", type: { - name: "String" - } + name: "String", + }, }, supportedCapabilities: { serializedName: "properties.supportedCapabilities", type: { name: "Composite", - className: "SupportedCapabilities" - } - } - } - } + className: "SupportedCapabilities", + }, + }, + }, + }, }; export const SnapshotList: coreClient.CompositeMapper = { @@ -8712,19 +9177,19 @@ export const SnapshotList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Snapshot" - } - } - } + className: "Snapshot", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkusResult: coreClient.CompositeMapper = { @@ -8740,19 +9205,19 @@ export const ResourceSkusResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSku" - } - } - } + className: "ResourceSku", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSku: coreClient.CompositeMapper = { @@ -8764,50 +9229,50 @@ export const ResourceSku: coreClient.CompositeMapper = { serializedName: "resourceType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, size: { serializedName: "size", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, family: { serializedName: "family", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, kind: { serializedName: "kind", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", type: { name: "Composite", - className: "ResourceSkuCapacity" - } + className: "ResourceSkuCapacity", + }, }, locations: { serializedName: "locations", @@ -8816,10 +9281,10 @@ export const ResourceSku: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, locationInfo: { serializedName: "locationInfo", @@ -8829,10 +9294,10 @@ export const ResourceSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuLocationInfo" - } - } - } + className: "ResourceSkuLocationInfo", + }, + }, + }, }, apiVersions: { serializedName: "apiVersions", @@ -8841,10 +9306,10 @@ export const ResourceSku: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, costs: { serializedName: "costs", @@ -8854,10 +9319,10 @@ export const ResourceSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuCosts" - } - } - } + className: "ResourceSkuCosts", + }, + }, + }, }, capabilities: { serializedName: "capabilities", @@ -8867,10 +9332,10 @@ export const ResourceSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuCapabilities" - } - } - } + className: "ResourceSkuCapabilities", + }, + }, + }, }, restrictions: { serializedName: "restrictions", @@ -8880,13 +9345,13 @@ export const ResourceSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuRestrictions" - } - } - } - } - } - } + className: "ResourceSkuRestrictions", + }, + }, + }, + }, + }, + }, }; export const ResourceSkuCapacity: coreClient.CompositeMapper = { @@ -8898,33 +9363,33 @@ export const ResourceSkuCapacity: coreClient.CompositeMapper = { serializedName: "minimum", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, maximum: { serializedName: "maximum", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, default: { serializedName: "default", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, scaleType: { serializedName: "scaleType", readOnly: true, type: { name: "Enum", - allowedValues: ["Automatic", "Manual", "None"] - } - } - } - } + allowedValues: ["Automatic", "Manual", "None"], + }, + }, + }, + }, }; export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { @@ -8936,8 +9401,8 @@ export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, zones: { serializedName: "zones", @@ -8946,10 +9411,10 @@ export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, zoneDetails: { serializedName: "zoneDetails", @@ -8959,10 +9424,10 @@ export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuZoneDetails" - } - } - } + className: "ResourceSkuZoneDetails", + }, + }, + }, }, extendedLocations: { serializedName: "extendedLocations", @@ -8971,20 +9436,20 @@ export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { @@ -8999,10 +9464,10 @@ export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, capabilities: { serializedName: "capabilities", @@ -9012,13 +9477,13 @@ export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuCapabilities" - } - } - } - } - } - } + className: "ResourceSkuCapabilities", + }, + }, + }, + }, + }, + }, }; export const ResourceSkuCapabilities: coreClient.CompositeMapper = { @@ -9030,18 +9495,18 @@ export const ResourceSkuCapabilities: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkuCosts: coreClient.CompositeMapper = { @@ -9053,25 +9518,25 @@ export const ResourceSkuCosts: coreClient.CompositeMapper = { serializedName: "meterID", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, quantity: { serializedName: "quantity", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, extendedUnit: { serializedName: "extendedUnit", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkuRestrictions: coreClient.CompositeMapper = { @@ -9084,8 +9549,8 @@ export const ResourceSkuRestrictions: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["Location", "Zone"] - } + allowedValues: ["Location", "Zone"], + }, }, values: { serializedName: "values", @@ -9094,28 +9559,28 @@ export const ResourceSkuRestrictions: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, restrictionInfo: { serializedName: "restrictionInfo", type: { name: "Composite", - className: "ResourceSkuRestrictionInfo" - } + className: "ResourceSkuRestrictionInfo", + }, }, reasonCode: { serializedName: "reasonCode", readOnly: true, type: { name: "Enum", - allowedValues: ["QuotaId", "NotAvailableForSubscription"] - } - } - } - } + allowedValues: ["QuotaId", "NotAvailableForSubscription"], + }, + }, + }, + }, }; export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { @@ -9130,10 +9595,10 @@ export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, zones: { serializedName: "zones", @@ -9142,13 +9607,13 @@ export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const GalleryIdentifier: coreClient.CompositeMapper = { @@ -9160,11 +9625,11 @@ export const GalleryIdentifier: coreClient.CompositeMapper = { serializedName: "uniqueName", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SharingProfile: coreClient.CompositeMapper = { @@ -9175,8 +9640,8 @@ export const SharingProfile: coreClient.CompositeMapper = { permissions: { serializedName: "permissions", type: { - name: "String" - } + name: "String", + }, }, groups: { serializedName: "groups", @@ -9186,20 +9651,20 @@ export const SharingProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharingProfileGroup" - } - } - } + className: "SharingProfileGroup", + }, + }, + }, }, communityGalleryInfo: { serializedName: "communityGalleryInfo", type: { name: "Composite", - className: "CommunityGalleryInfo" - } - } - } - } + className: "CommunityGalleryInfo", + }, + }, + }, + }, }; export const SharingProfileGroup: coreClient.CompositeMapper = { @@ -9210,8 +9675,8 @@ export const SharingProfileGroup: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, ids: { serializedName: "ids", @@ -9219,13 +9684,13 @@ export const SharingProfileGroup: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const CommunityGalleryInfo: coreClient.CompositeMapper = { @@ -9236,33 +9701,33 @@ export const CommunityGalleryInfo: coreClient.CompositeMapper = { publisherUri: { serializedName: "publisherUri", type: { - name: "String" - } + name: "String", + }, }, publisherContact: { serializedName: "publisherContact", type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "eula", type: { - name: "String" - } + name: "String", + }, }, publicNamePrefix: { serializedName: "publicNamePrefix", type: { - name: "String" - } + name: "String", + }, }, communityGalleryEnabled: { serializedName: "communityGalleryEnabled", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, publicNames: { serializedName: "publicNames", @@ -9271,13 +9736,13 @@ export const CommunityGalleryInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const SoftDeletePolicy: coreClient.CompositeMapper = { @@ -9288,11 +9753,11 @@ export const SoftDeletePolicy: coreClient.CompositeMapper = { isSoftDeleteEnabled: { serializedName: "isSoftDeleteEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SharingStatus: coreClient.CompositeMapper = { @@ -9304,8 +9769,8 @@ export const SharingStatus: coreClient.CompositeMapper = { serializedName: "aggregatedState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, summary: { serializedName: "summary", @@ -9314,13 +9779,13 @@ export const SharingStatus: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RegionalSharingStatus" - } - } - } - } - } - } + className: "RegionalSharingStatus", + }, + }, + }, + }, + }, + }, }; export const RegionalSharingStatus: coreClient.CompositeMapper = { @@ -9331,24 +9796,24 @@ export const RegionalSharingStatus: coreClient.CompositeMapper = { region: { serializedName: "region", type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "state", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UpdateResourceDefinition: coreClient.CompositeMapper = { @@ -9360,32 +9825,32 @@ export const UpdateResourceDefinition: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const GalleryImageIdentifier: coreClient.CompositeMapper = { @@ -9397,25 +9862,25 @@ export const GalleryImageIdentifier: coreClient.CompositeMapper = { serializedName: "publisher", required: true, type: { - name: "String" - } + name: "String", + }, }, offer: { serializedName: "offer", required: true, type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RecommendedMachineConfiguration: coreClient.CompositeMapper = { @@ -9427,18 +9892,18 @@ export const RecommendedMachineConfiguration: coreClient.CompositeMapper = { serializedName: "vCPUs", type: { name: "Composite", - className: "ResourceRange" - } + className: "ResourceRange", + }, }, memory: { serializedName: "memory", type: { name: "Composite", - className: "ResourceRange" - } - } - } - } + className: "ResourceRange", + }, + }, + }, + }, }; export const ResourceRange: coreClient.CompositeMapper = { @@ -9449,17 +9914,17 @@ export const ResourceRange: coreClient.CompositeMapper = { min: { serializedName: "min", type: { - name: "Number" - } + name: "Number", + }, }, max: { serializedName: "max", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const Disallowed: coreClient.CompositeMapper = { @@ -9473,13 +9938,13 @@ export const Disallowed: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ImagePurchasePlan: coreClient.CompositeMapper = { @@ -9490,23 +9955,23 @@ export const ImagePurchasePlan: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "publisher", type: { - name: "String" - } + name: "String", + }, }, product: { serializedName: "product", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryImageFeature: coreClient.CompositeMapper = { @@ -9517,88 +9982,89 @@ export const GalleryImageFeature: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", type: { - name: "String" - } - } - } - } -}; - -export const GalleryArtifactPublishingProfileBase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryArtifactPublishingProfileBase", - modelProperties: { - targetRegions: { - serializedName: "targetRegions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TargetRegion" - } - } - } - }, - replicaCount: { - serializedName: "replicaCount", - type: { - name: "Number" - } - }, - excludeFromLatest: { - serializedName: "excludeFromLatest", - type: { - name: "Boolean" - } - }, - publishedDate: { - serializedName: "publishedDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - endOfLifeDate: { - serializedName: "endOfLifeDate", - type: { - name: "DateTime" - } - }, - storageAccountType: { - serializedName: "storageAccountType", - type: { - name: "String" - } + name: "String", + }, }, - replicationMode: { - serializedName: "replicationMode", - type: { - name: "String" - } + }, + }, +}; + +export const GalleryArtifactPublishingProfileBase: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "GalleryArtifactPublishingProfileBase", + modelProperties: { + targetRegions: { + serializedName: "targetRegions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TargetRegion", + }, + }, + }, + }, + replicaCount: { + serializedName: "replicaCount", + type: { + name: "Number", + }, + }, + excludeFromLatest: { + serializedName: "excludeFromLatest", + type: { + name: "Boolean", + }, + }, + publishedDate: { + serializedName: "publishedDate", + readOnly: true, + type: { + name: "DateTime", + }, + }, + endOfLifeDate: { + serializedName: "endOfLifeDate", + type: { + name: "DateTime", + }, + }, + storageAccountType: { + serializedName: "storageAccountType", + type: { + name: "String", + }, + }, + replicationMode: { + serializedName: "replicationMode", + type: { + name: "String", + }, + }, + targetExtendedLocations: { + serializedName: "targetExtendedLocations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryTargetExtendedLocation", + }, + }, + }, + }, }, - targetExtendedLocations: { - serializedName: "targetExtendedLocations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GalleryTargetExtendedLocation" - } - } - } - } - } - } -}; + }, + }; export const TargetRegion: coreClient.CompositeMapper = { type: { @@ -9609,36 +10075,36 @@ export const TargetRegion: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, regionalReplicaCount: { serializedName: "regionalReplicaCount", type: { - name: "Number" - } + name: "Number", + }, }, storageAccountType: { serializedName: "storageAccountType", type: { - name: "String" - } + name: "String", + }, }, encryption: { serializedName: "encryption", type: { name: "Composite", - className: "EncryptionImages" - } + className: "EncryptionImages", + }, }, excludeFromLatest: { serializedName: "excludeFromLatest", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const EncryptionImages: coreClient.CompositeMapper = { @@ -9650,8 +10116,8 @@ export const EncryptionImages: coreClient.CompositeMapper = { serializedName: "osDiskImage", type: { name: "Composite", - className: "OSDiskImageEncryption" - } + className: "OSDiskImageEncryption", + }, }, dataDiskImages: { serializedName: "dataDiskImages", @@ -9660,13 +10126,13 @@ export const EncryptionImages: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataDiskImageEncryption" - } - } - } - } - } - } + className: "DataDiskImageEncryption", + }, + }, + }, + }, + }, + }, }; export const OSDiskImageSecurityProfile: coreClient.CompositeMapper = { @@ -9677,17 +10143,17 @@ export const OSDiskImageSecurityProfile: coreClient.CompositeMapper = { confidentialVMEncryptionType: { serializedName: "confidentialVMEncryptionType", type: { - name: "String" - } + name: "String", + }, }, secureVMDiskEncryptionSetId: { serializedName: "secureVMDiskEncryptionSetId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskImageEncryption: coreClient.CompositeMapper = { @@ -9698,11 +10164,11 @@ export const DiskImageEncryption: coreClient.CompositeMapper = { diskEncryptionSetId: { serializedName: "diskEncryptionSetId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryTargetExtendedLocation: coreClient.CompositeMapper = { @@ -9713,37 +10179,37 @@ export const GalleryTargetExtendedLocation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, extendedLocation: { serializedName: "extendedLocation", type: { name: "Composite", - className: "GalleryExtendedLocation" - } + className: "GalleryExtendedLocation", + }, }, extendedLocationReplicaCount: { serializedName: "extendedLocationReplicaCount", type: { - name: "Number" - } + name: "Number", + }, }, storageAccountType: { serializedName: "storageAccountType", type: { - name: "String" - } + name: "String", + }, }, encryption: { serializedName: "encryption", type: { name: "Composite", - className: "EncryptionImages" - } - } - } - } + className: "EncryptionImages", + }, + }, + }, + }, }; export const GalleryExtendedLocation: coreClient.CompositeMapper = { @@ -9754,17 +10220,17 @@ export const GalleryExtendedLocation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryImageVersionStorageProfile: coreClient.CompositeMapper = { @@ -9776,15 +10242,15 @@ export const GalleryImageVersionStorageProfile: coreClient.CompositeMapper = { serializedName: "source", type: { name: "Composite", - className: "GalleryArtifactVersionFullSource" - } + className: "GalleryArtifactVersionFullSource", + }, }, osDiskImage: { serializedName: "osDiskImage", type: { name: "Composite", - className: "GalleryOSDiskImage" - } + className: "GalleryOSDiskImage", + }, }, dataDiskImages: { serializedName: "dataDiskImages", @@ -9793,13 +10259,13 @@ export const GalleryImageVersionStorageProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryDataDiskImage" - } - } - } - } - } - } + className: "GalleryDataDiskImage", + }, + }, + }, + }, + }, + }, }; export const GalleryArtifactVersionSource: coreClient.CompositeMapper = { @@ -9810,11 +10276,11 @@ export const GalleryArtifactVersionSource: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryDiskImage: coreClient.CompositeMapper = { @@ -9826,25 +10292,25 @@ export const GalleryDiskImage: coreClient.CompositeMapper = { serializedName: "sizeInGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, hostCaching: { serializedName: "hostCaching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, source: { serializedName: "source", type: { name: "Composite", - className: "GalleryDiskImageSource" - } - } - } - } + className: "GalleryDiskImageSource", + }, + }, + }, + }, }; export const PolicyViolation: coreClient.CompositeMapper = { @@ -9855,17 +10321,17 @@ export const PolicyViolation: coreClient.CompositeMapper = { category: { serializedName: "category", type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryArtifactSafetyProfileBase: coreClient.CompositeMapper = { @@ -9876,11 +10342,11 @@ export const GalleryArtifactSafetyProfileBase: coreClient.CompositeMapper = { allowDeletionOfReplicatedLocations: { serializedName: "allowDeletionOfReplicatedLocations", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ReplicationStatus: coreClient.CompositeMapper = { @@ -9892,8 +10358,8 @@ export const ReplicationStatus: coreClient.CompositeMapper = { serializedName: "aggregatedState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, summary: { serializedName: "summary", @@ -9903,13 +10369,13 @@ export const ReplicationStatus: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RegionalReplicationStatus" - } - } - } - } - } - } + className: "RegionalReplicationStatus", + }, + }, + }, + }, + }, + }, }; export const RegionalReplicationStatus: coreClient.CompositeMapper = { @@ -9921,115 +10387,237 @@ export const RegionalReplicationStatus: coreClient.CompositeMapper = { serializedName: "region", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "state", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, progress: { serializedName: "progress", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; -export const GalleryApplicationCustomAction: coreClient.CompositeMapper = { +export const ImageVersionSecurityProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryApplicationCustomAction", + className: "ImageVersionSecurityProfile", modelProperties: { - name: { - serializedName: "name", - required: true, + uefiSettings: { + serializedName: "uefiSettings", + type: { + name: "Composite", + className: "GalleryImageVersionUefiSettings", + }, + }, + }, + }, +}; + +export const GalleryImageVersionUefiSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryImageVersionUefiSettings", + modelProperties: { + signatureTemplateNames: { + serializedName: "signatureTemplateNames", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - script: { - serializedName: "script", - required: true, + additionalSignatures: { + serializedName: "additionalSignatures", type: { - name: "String" - } + name: "Composite", + className: "UefiKeySignatures", + }, }, - description: { - serializedName: "description", + }, + }, +}; + +export const UefiKeySignatures: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UefiKeySignatures", + modelProperties: { + pk: { + serializedName: "pk", type: { - name: "String" - } + name: "Composite", + className: "UefiKey", + }, }, - parameters: { - serializedName: "parameters", + 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: "GalleryApplicationCustomActionParameter" - } - } - } - } - } - } + 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 GalleryApplicationCustomActionParameter: coreClient.CompositeMapper = { +export const GalleryApplicationCustomAction: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GalleryApplicationCustomActionParameter", + className: "GalleryApplicationCustomAction", modelProperties: { name: { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, - required: { - serializedName: "required", + script: { + serializedName: "script", + required: true, type: { - name: "Boolean" - } + name: "String", + }, }, - type: { - serializedName: "type", + description: { + serializedName: "description", type: { - name: "Enum", - allowedValues: ["String", "ConfigurationDataBlob", "LogOutputBlob"] - } + name: "String", + }, }, - defaultValue: { - serializedName: "defaultValue", + parameters: { + serializedName: "parameters", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryApplicationCustomActionParameter", + }, + }, + }, }, - description: { - serializedName: "description", + }, + }, +}; + +export const GalleryApplicationCustomActionParameter: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "GalleryApplicationCustomActionParameter", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + required: { + serializedName: "required", + type: { + name: "Boolean", + }, + }, type: { - name: "String" - } - } - } - } -}; + serializedName: "type", + type: { + name: "Enum", + allowedValues: ["String", "ConfigurationDataBlob", "LogOutputBlob"], + }, + }, + defaultValue: { + serializedName: "defaultValue", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + }, + }, + }; export const UserArtifactSource: coreClient.CompositeMapper = { type: { @@ -10040,17 +10628,17 @@ export const UserArtifactSource: coreClient.CompositeMapper = { serializedName: "mediaLink", required: true, type: { - name: "String" - } + name: "String", + }, }, defaultConfigurationLink: { serializedName: "defaultConfigurationLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserArtifactManage: coreClient.CompositeMapper = { @@ -10062,24 +10650,24 @@ export const UserArtifactManage: coreClient.CompositeMapper = { serializedName: "install", required: true, type: { - name: "String" - } + name: "String", + }, }, remove: { serializedName: "remove", required: true, type: { - name: "String" - } + name: "String", + }, }, update: { serializedName: "update", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserArtifactSettings: coreClient.CompositeMapper = { @@ -10090,17 +10678,17 @@ export const UserArtifactSettings: coreClient.CompositeMapper = { packageFileName: { serializedName: "packageFileName", type: { - name: "String" - } + name: "String", + }, }, configFileName: { serializedName: "configFileName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryList: coreClient.CompositeMapper = { @@ -10116,19 +10704,19 @@ export const GalleryList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Gallery" - } - } - } + className: "Gallery", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryImageList: coreClient.CompositeMapper = { @@ -10144,19 +10732,19 @@ export const GalleryImageList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryImage" - } - } - } + className: "GalleryImage", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryImageVersionList: coreClient.CompositeMapper = { @@ -10172,19 +10760,19 @@ export const GalleryImageVersionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryImageVersion" - } - } - } + className: "GalleryImageVersion", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryApplicationList: coreClient.CompositeMapper = { @@ -10200,19 +10788,19 @@ export const GalleryApplicationList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryApplication" - } - } - } + className: "GalleryApplication", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryApplicationVersionList: coreClient.CompositeMapper = { @@ -10228,19 +10816,19 @@ export const GalleryApplicationVersionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryApplicationVersion" - } - } - } + className: "GalleryApplicationVersion", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SharingUpdate: coreClient.CompositeMapper = { @@ -10252,8 +10840,8 @@ export const SharingUpdate: coreClient.CompositeMapper = { serializedName: "operationType", required: true, type: { - name: "String" - } + name: "String", + }, }, groups: { serializedName: "groups", @@ -10262,13 +10850,13 @@ export const SharingUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharingProfileGroup" - } - } - } - } - } - } + className: "SharingProfileGroup", + }, + }, + }, + }, + }, + }, }; export const SharedGalleryList: coreClient.CompositeMapper = { @@ -10284,19 +10872,19 @@ export const SharedGalleryList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharedGallery" - } - } - } + className: "SharedGallery", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PirResource: coreClient.CompositeMapper = { @@ -10308,18 +10896,18 @@ export const PirResource: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SharedGalleryImageList: coreClient.CompositeMapper = { @@ -10335,19 +10923,19 @@ export const SharedGalleryImageList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharedGalleryImage" - } - } - } + className: "SharedGalleryImage", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SharedGalleryImageVersionList: coreClient.CompositeMapper = { @@ -10363,48 +10951,49 @@ export const SharedGalleryImageVersionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharedGalleryImageVersion" - } - } - } + className: "SharedGalleryImageVersion", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const SharedGalleryImageVersionStorageProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SharedGalleryImageVersionStorageProfile", - modelProperties: { - osDiskImage: { - serializedName: "osDiskImage", - type: { - name: "Composite", - className: "SharedGalleryOSDiskImage" - } + name: "String", + }, }, - dataDiskImages: { - serializedName: "dataDiskImages", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharedGalleryDataDiskImage" - } - } - } - } - } - } -}; + }, + }, +}; + +export const SharedGalleryImageVersionStorageProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SharedGalleryImageVersionStorageProfile", + modelProperties: { + osDiskImage: { + serializedName: "osDiskImage", + type: { + name: "Composite", + className: "SharedGalleryOSDiskImage", + }, + }, + dataDiskImages: { + serializedName: "dataDiskImages", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedGalleryDataDiskImage", + }, + }, + }, + }, + }, + }, + }; export const SharedGalleryDiskImage: coreClient.CompositeMapper = { type: { @@ -10415,17 +11004,63 @@ export const SharedGalleryDiskImage: coreClient.CompositeMapper = { serializedName: "diskSizeGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, hostCaching: { serializedName: "hostCaching", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +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 = { @@ -10437,31 +11072,31 @@ export const PirCommunityGalleryResource: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, uniqueId: { serializedName: "identifier.uniqueId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CommunityGalleryImageIdentifier: coreClient.CompositeMapper = { @@ -10472,23 +11107,23 @@ export const CommunityGalleryImageIdentifier: coreClient.CompositeMapper = { publisher: { serializedName: "publisher", type: { - name: "String" - } + name: "String", + }, }, offer: { serializedName: "offer", type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CommunityGalleryImageList: coreClient.CompositeMapper = { @@ -10504,19 +11139,19 @@ export const CommunityGalleryImageList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CommunityGalleryImage" - } - } - } + className: "CommunityGalleryImage", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CommunityGalleryImageVersionList: coreClient.CompositeMapper = { @@ -10532,19 +11167,19 @@ export const CommunityGalleryImageVersionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CommunityGalleryImageVersion" - } - } - } + className: "CommunityGalleryImageVersion", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RoleInstance: coreClient.CompositeMapper = { @@ -10556,54 +11191,54 @@ export const RoleInstance: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "InstanceSku" - } + className: "InstanceSku", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "RoleInstanceProperties" - } - } - } - } + className: "RoleInstanceProperties", + }, + }, + }, + }, }; export const InstanceSku: coreClient.CompositeMapper = { @@ -10615,18 +11250,18 @@ export const InstanceSku: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RoleInstanceProperties: coreClient.CompositeMapper = { @@ -10638,18 +11273,18 @@ export const RoleInstanceProperties: coreClient.CompositeMapper = { serializedName: "networkProfile", type: { name: "Composite", - className: "RoleInstanceNetworkProfile" - } + className: "RoleInstanceNetworkProfile", + }, }, instanceView: { serializedName: "instanceView", type: { name: "Composite", - className: "RoleInstanceView" - } - } - } - } + className: "RoleInstanceView", + }, + }, + }, + }, }; export const RoleInstanceNetworkProfile: coreClient.CompositeMapper = { @@ -10665,13 +11300,13 @@ export const RoleInstanceNetworkProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResource" - } - } - } - } - } - } + className: "SubResource", + }, + }, + }, + }, + }, + }, }; export const RoleInstanceView: coreClient.CompositeMapper = { @@ -10683,22 +11318,22 @@ export const RoleInstanceView: coreClient.CompositeMapper = { serializedName: "platformUpdateDomain", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, platformFaultDomain: { serializedName: "platformFaultDomain", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, privateId: { serializedName: "privateId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, statuses: { serializedName: "statuses", @@ -10708,13 +11343,13 @@ export const RoleInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceInstanceViewStatus" - } - } - } - } - } - } + className: "ResourceInstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const ResourceInstanceViewStatus: coreClient.CompositeMapper = { @@ -10726,39 +11361,39 @@ export const ResourceInstanceViewStatus: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, displayStatus: { serializedName: "displayStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, time: { serializedName: "time", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, level: { serializedName: "level", type: { name: "Enum", - allowedValues: ["Info", "Warning", "Error"] - } - } - } - } + allowedValues: ["Info", "Warning", "Error"], + }, + }, + }, + }, }; export const RoleInstanceListResult: coreClient.CompositeMapper = { @@ -10774,19 +11409,19 @@ export const RoleInstanceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RoleInstance" - } - } - } + className: "RoleInstance", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudServiceRole: coreClient.CompositeMapper = { @@ -10798,46 +11433,46 @@ export const CloudServiceRole: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "CloudServiceRoleSku" - } + className: "CloudServiceRoleSku", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "CloudServiceRoleProperties" - } - } - } - } + className: "CloudServiceRoleProperties", + }, + }, + }, + }, }; export const CloudServiceRoleSku: coreClient.CompositeMapper = { @@ -10848,23 +11483,23 @@ export const CloudServiceRoleSku: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const CloudServiceRoleProperties: coreClient.CompositeMapper = { @@ -10876,11 +11511,11 @@ export const CloudServiceRoleProperties: coreClient.CompositeMapper = { serializedName: "uniqueId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudServiceRoleListResult: coreClient.CompositeMapper = { @@ -10896,19 +11531,19 @@ export const CloudServiceRoleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudServiceRole" - } - } - } + className: "CloudServiceRole", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudService: coreClient.CompositeMapper = { @@ -10920,50 +11555,50 @@ export const CloudService: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "CloudServiceProperties" - } + className: "CloudServiceProperties", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, zones: { serializedName: "zones", @@ -10971,13 +11606,13 @@ export const CloudService: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const CloudServiceProperties: coreClient.CompositeMapper = { @@ -10988,83 +11623,83 @@ export const CloudServiceProperties: coreClient.CompositeMapper = { packageUrl: { serializedName: "packageUrl", type: { - name: "String" - } + name: "String", + }, }, configuration: { serializedName: "configuration", type: { - name: "String" - } + name: "String", + }, }, configurationUrl: { serializedName: "configurationUrl", type: { - name: "String" - } + name: "String", + }, }, startCloudService: { serializedName: "startCloudService", type: { - name: "Boolean" - } + name: "Boolean", + }, }, allowModelOverride: { serializedName: "allowModelOverride", type: { - name: "Boolean" - } + name: "Boolean", + }, }, upgradeMode: { serializedName: "upgradeMode", type: { - name: "String" - } + name: "String", + }, }, roleProfile: { serializedName: "roleProfile", type: { name: "Composite", - className: "CloudServiceRoleProfile" - } + className: "CloudServiceRoleProfile", + }, }, osProfile: { serializedName: "osProfile", type: { name: "Composite", - className: "CloudServiceOsProfile" - } + className: "CloudServiceOsProfile", + }, }, networkProfile: { serializedName: "networkProfile", type: { name: "Composite", - className: "CloudServiceNetworkProfile" - } + className: "CloudServiceNetworkProfile", + }, }, extensionProfile: { serializedName: "extensionProfile", type: { name: "Composite", - className: "CloudServiceExtensionProfile" - } + className: "CloudServiceExtensionProfile", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, uniqueId: { serializedName: "uniqueId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudServiceRoleProfile: coreClient.CompositeMapper = { @@ -11079,13 +11714,13 @@ export const CloudServiceRoleProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudServiceRoleProfileProperties" - } - } - } - } - } - } + className: "CloudServiceRoleProfileProperties", + }, + }, + }, + }, + }, + }, }; export const CloudServiceRoleProfileProperties: coreClient.CompositeMapper = { @@ -11096,18 +11731,18 @@ export const CloudServiceRoleProfileProperties: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "CloudServiceRoleSku" - } - } - } - } + className: "CloudServiceRoleSku", + }, + }, + }, + }, }; export const CloudServiceOsProfile: coreClient.CompositeMapper = { @@ -11122,13 +11757,13 @@ export const CloudServiceOsProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudServiceVaultSecretGroup" - } - } - } - } - } - } + className: "CloudServiceVaultSecretGroup", + }, + }, + }, + }, + }, + }, }; export const CloudServiceVaultSecretGroup: coreClient.CompositeMapper = { @@ -11140,8 +11775,8 @@ export const CloudServiceVaultSecretGroup: coreClient.CompositeMapper = { serializedName: "sourceVault", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, vaultCertificates: { serializedName: "vaultCertificates", @@ -11150,13 +11785,13 @@ export const CloudServiceVaultSecretGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudServiceVaultCertificate" - } - } - } - } - } - } + className: "CloudServiceVaultCertificate", + }, + }, + }, + }, + }, + }, }; export const CloudServiceVaultCertificate: coreClient.CompositeMapper = { @@ -11167,11 +11802,11 @@ export const CloudServiceVaultCertificate: coreClient.CompositeMapper = { certificateUrl: { serializedName: "certificateUrl", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudServiceNetworkProfile: coreClient.CompositeMapper = { @@ -11186,26 +11821,26 @@ export const CloudServiceNetworkProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LoadBalancerConfiguration" - } - } - } + className: "LoadBalancerConfiguration", + }, + }, + }, }, slotType: { serializedName: "slotType", type: { - name: "String" - } + name: "String", + }, }, swappableCloudService: { serializedName: "swappableCloudService", type: { name: "Composite", - className: "SubResource" - } - } - } - } + className: "SubResource", + }, + }, + }, + }, }; export const LoadBalancerConfiguration: coreClient.CompositeMapper = { @@ -11216,25 +11851,25 @@ export const LoadBalancerConfiguration: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "LoadBalancerConfigurationProperties" - } - } - } - } + className: "LoadBalancerConfigurationProperties", + }, + }, + }, + }, }; export const LoadBalancerConfigurationProperties: coreClient.CompositeMapper = { @@ -11250,13 +11885,13 @@ export const LoadBalancerConfigurationProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LoadBalancerFrontendIpConfiguration" - } - } - } - } - } - } + className: "LoadBalancerFrontendIpConfiguration", + }, + }, + }, + }, + }, + }, }; export const LoadBalancerFrontendIpConfiguration: coreClient.CompositeMapper = { @@ -11268,48 +11903,49 @@ export const LoadBalancerFrontendIpConfiguration: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "LoadBalancerFrontendIpConfigurationProperties" - } - } - } - } -}; - -export const LoadBalancerFrontendIpConfigurationProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LoadBalancerFrontendIpConfigurationProperties", - modelProperties: { - publicIPAddress: { - serializedName: "publicIPAddress", - type: { - name: "Composite", - className: "SubResource" - } + className: "LoadBalancerFrontendIpConfigurationProperties", + }, }, - subnet: { - serializedName: "subnet", - type: { - name: "Composite", - className: "SubResource" - } + }, + }, +}; + +export const LoadBalancerFrontendIpConfigurationProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "LoadBalancerFrontendIpConfigurationProperties", + modelProperties: { + publicIPAddress: { + serializedName: "publicIPAddress", + type: { + name: "Composite", + className: "SubResource", + }, + }, + subnet: { + serializedName: "subnet", + type: { + name: "Composite", + className: "SubResource", + }, + }, + privateIPAddress: { + serializedName: "privateIPAddress", + type: { + name: "String", + }, + }, }, - privateIPAddress: { - serializedName: "privateIPAddress", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const CloudServiceExtensionProfile: coreClient.CompositeMapper = { type: { @@ -11323,13 +11959,13 @@ export const CloudServiceExtensionProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Extension" - } - } - } - } - } - } + className: "Extension", + }, + }, + }, + }, + }, + }, }; export const Extension: coreClient.CompositeMapper = { @@ -11340,18 +11976,18 @@ export const Extension: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "CloudServiceExtensionProperties" - } - } - } - } + className: "CloudServiceExtensionProperties", + }, + }, + }, + }, }; export const CloudServiceExtensionProperties: coreClient.CompositeMapper = { @@ -11362,58 +11998,58 @@ export const CloudServiceExtensionProperties: coreClient.CompositeMapper = { publisher: { serializedName: "publisher", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, typeHandlerVersion: { serializedName: "typeHandlerVersion", type: { - name: "String" - } + name: "String", + }, }, autoUpgradeMinorVersion: { serializedName: "autoUpgradeMinorVersion", type: { - name: "Boolean" - } + name: "Boolean", + }, }, settings: { serializedName: "settings", type: { - name: "any" - } + name: "any", + }, }, protectedSettings: { serializedName: "protectedSettings", type: { - name: "any" - } + name: "any", + }, }, protectedSettingsFromKeyVault: { serializedName: "protectedSettingsFromKeyVault", type: { name: "Composite", - className: "CloudServiceVaultAndSecretReference" - } + className: "CloudServiceVaultAndSecretReference", + }, }, forceUpdateTag: { serializedName: "forceUpdateTag", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rolesAppliedTo: { serializedName: "rolesAppliedTo", @@ -11421,13 +12057,13 @@ export const CloudServiceExtensionProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const CloudServiceVaultAndSecretReference: coreClient.CompositeMapper = { @@ -11439,17 +12075,17 @@ export const CloudServiceVaultAndSecretReference: coreClient.CompositeMapper = { serializedName: "sourceVault", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, secretUrl: { serializedName: "secretUrl", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -11461,18 +12097,18 @@ export const SystemData: coreClient.CompositeMapper = { serializedName: "createdAt", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const CloudServiceUpdate: coreClient.CompositeMapper = { @@ -11484,11 +12120,11 @@ export const CloudServiceUpdate: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const CloudServiceInstanceView: coreClient.CompositeMapper = { @@ -11500,15 +12136,15 @@ export const CloudServiceInstanceView: coreClient.CompositeMapper = { serializedName: "roleInstance", type: { name: "Composite", - className: "InstanceViewStatusesSummary" - } + className: "InstanceViewStatusesSummary", + }, }, sdkVersion: { serializedName: "sdkVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, privateIds: { serializedName: "privateIds", @@ -11517,10 +12153,10 @@ export const CloudServiceInstanceView: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -11530,13 +12166,13 @@ export const CloudServiceInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceInstanceViewStatus" - } - } - } - } - } - } + className: "ResourceInstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const InstanceViewStatusesSummary: coreClient.CompositeMapper = { @@ -11552,13 +12188,13 @@ export const InstanceViewStatusesSummary: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "StatusCodeCount" - } - } - } - } - } - } + className: "StatusCodeCount", + }, + }, + }, + }, + }, + }, }; export const StatusCodeCount: coreClient.CompositeMapper = { @@ -11570,18 +12206,18 @@ export const StatusCodeCount: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, count: { serializedName: "count", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const CloudServiceListResult: coreClient.CompositeMapper = { @@ -11597,19 +12233,19 @@ export const CloudServiceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudService" - } - } - } + className: "CloudService", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RoleInstances: coreClient.CompositeMapper = { @@ -11624,13 +12260,13 @@ export const RoleInstances: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const UpdateDomain: coreClient.CompositeMapper = { @@ -11642,18 +12278,18 @@ export const UpdateDomain: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UpdateDomainListResult: coreClient.CompositeMapper = { @@ -11669,19 +12305,19 @@ export const UpdateDomainListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UpdateDomain" - } - } - } + className: "UpdateDomain", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OSVersion: coreClient.CompositeMapper = { @@ -11693,39 +12329,39 @@ export const OSVersion: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "OSVersionProperties" - } - } - } - } + className: "OSVersionProperties", + }, + }, + }, + }, }; export const OSVersionProperties: coreClient.CompositeMapper = { @@ -11737,46 +12373,46 @@ export const OSVersionProperties: coreClient.CompositeMapper = { serializedName: "family", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, familyLabel: { serializedName: "familyLabel", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, label: { serializedName: "label", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isDefault: { serializedName: "isDefault", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, isActive: { serializedName: "isActive", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const OSVersionListResult: coreClient.CompositeMapper = { @@ -11792,19 +12428,19 @@ export const OSVersionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OSVersion" - } - } - } + className: "OSVersion", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OSFamily: coreClient.CompositeMapper = { @@ -11816,39 +12452,39 @@ export const OSFamily: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "OSFamilyProperties" - } - } - } - } + className: "OSFamilyProperties", + }, + }, + }, + }, }; export const OSFamilyProperties: coreClient.CompositeMapper = { @@ -11860,15 +12496,15 @@ export const OSFamilyProperties: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, label: { serializedName: "label", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, versions: { serializedName: "versions", @@ -11878,13 +12514,13 @@ export const OSFamilyProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OSVersionPropertiesBase" - } - } - } - } - } - } + className: "OSVersionPropertiesBase", + }, + }, + }, + }, + }, + }, }; export const OSVersionPropertiesBase: coreClient.CompositeMapper = { @@ -11896,32 +12532,32 @@ export const OSVersionPropertiesBase: coreClient.CompositeMapper = { serializedName: "version", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, label: { serializedName: "label", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isDefault: { serializedName: "isDefault", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, isActive: { serializedName: "isActive", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const OSFamilyListResult: coreClient.CompositeMapper = { @@ -11937,19 +12573,19 @@ export const OSFamilyListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OSFamily" - } - } - } + className: "OSFamily", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryArtifactSource: coreClient.CompositeMapper = { @@ -11961,11 +12597,11 @@ export const GalleryArtifactSource: coreClient.CompositeMapper = { serializedName: "managedImage", type: { name: "Composite", - className: "ManagedArtifact" - } - } - } - } + className: "ManagedArtifact", + }, + }, + }, + }, }; export const ManagedArtifact: coreClient.CompositeMapper = { @@ -11977,11 +12613,11 @@ export const ManagedArtifact: coreClient.CompositeMapper = { serializedName: "id", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LatestGalleryImageVersion: coreClient.CompositeMapper = { @@ -11992,17 +12628,17 @@ export const LatestGalleryImageVersion: coreClient.CompositeMapper = { latestVersionName: { serializedName: "latestVersionName", type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageReference: coreClient.CompositeMapper = { @@ -12014,48 +12650,48 @@ export const ImageReference: coreClient.CompositeMapper = { publisher: { serializedName: "publisher", type: { - name: "String" - } + name: "String", + }, }, offer: { serializedName: "offer", type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", type: { - name: "String" - } + name: "String", + }, }, exactVersion: { serializedName: "exactVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sharedGalleryImageId: { serializedName: "sharedGalleryImageId", type: { - name: "String" - } + name: "String", + }, }, communityGalleryImageId: { serializedName: "communityGalleryImageId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskEncryptionSetParameters: coreClient.CompositeMapper = { @@ -12063,9 +12699,9 @@ export const DiskEncryptionSetParameters: coreClient.CompositeMapper = { name: "Composite", className: "DiskEncryptionSetParameters", modelProperties: { - ...SubResource.type.modelProperties - } - } + ...SubResource.type.modelProperties, + }, + }, }; export const ManagedDiskParameters: coreClient.CompositeMapper = { @@ -12077,25 +12713,25 @@ export const ManagedDiskParameters: coreClient.CompositeMapper = { storageAccountType: { serializedName: "storageAccountType", type: { - name: "String" - } + name: "String", + }, }, diskEncryptionSet: { serializedName: "diskEncryptionSet", type: { name: "Composite", - className: "DiskEncryptionSetParameters" - } + className: "DiskEncryptionSetParameters", + }, }, securityProfile: { serializedName: "securityProfile", type: { name: "Composite", - className: "VMDiskSecurityProfile" - } - } - } - } + className: "VMDiskSecurityProfile", + }, + }, + }, + }, }; export const NetworkInterfaceReference: coreClient.CompositeMapper = { @@ -12107,17 +12743,17 @@ export const NetworkInterfaceReference: coreClient.CompositeMapper = { primary: { serializedName: "properties.primary", type: { - name: "Boolean" - } + name: "Boolean", + }, }, deleteOption: { serializedName: "properties.deleteOption", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineCaptureResult: coreClient.CompositeMapper = { @@ -12130,22 +12766,22 @@ export const VirtualMachineCaptureResult: coreClient.CompositeMapper = { serializedName: "$schema", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, contentVersion: { serializedName: "contentVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, parameters: { serializedName: "parameters", readOnly: true, type: { - name: "any" - } + name: "any", + }, }, resources: { serializedName: "resources", @@ -12154,13 +12790,13 @@ export const VirtualMachineCaptureResult: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "any" - } - } - } - } - } - } + name: "any", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineImageResource: coreClient.CompositeMapper = { @@ -12173,32 +12809,32 @@ export const VirtualMachineImageResource: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, extendedLocation: { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } - } - } - } + className: "ExtendedLocation", + }, + }, + }, + }, }; export const SubResourceWithColocationStatus: coreClient.CompositeMapper = { @@ -12211,11 +12847,11 @@ export const SubResourceWithColocationStatus: coreClient.CompositeMapper = { serializedName: "colocationStatus", type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, }; export const VirtualMachineScaleSetExtension: coreClient.CompositeMapper = { @@ -12227,70 +12863,70 @@ export const VirtualMachineScaleSetExtension: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, forceUpdateTag: { serializedName: "properties.forceUpdateTag", type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "properties.publisher", type: { - name: "String" - } + name: "String", + }, }, typePropertiesType: { serializedName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, typeHandlerVersion: { serializedName: "properties.typeHandlerVersion", type: { - name: "String" - } + name: "String", + }, }, autoUpgradeMinorVersion: { serializedName: "properties.autoUpgradeMinorVersion", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAutomaticUpgrade: { serializedName: "properties.enableAutomaticUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, settings: { serializedName: "properties.settings", type: { - name: "any" - } + name: "any", + }, }, protectedSettings: { serializedName: "properties.protectedSettings", type: { - name: "any" - } + name: "any", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisionAfterExtensions: { serializedName: "properties.provisionAfterExtensions", @@ -12298,130 +12934,131 @@ export const VirtualMachineScaleSetExtension: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, suppressFailures: { serializedName: "properties.suppressFailures", type: { - name: "Boolean" - } + name: "Boolean", + }, }, protectedSettingsFromKeyVault: { serializedName: "properties.protectedSettingsFromKeyVault", type: { name: "Composite", - className: "KeyVaultSecretReference" - } - } - } - } -}; - -export const VirtualMachineScaleSetExtensionUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetExtensionUpdate", - modelProperties: { - ...SubResourceReadOnly.type.modelProperties, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", - type: { - name: "String" - } - }, - publisher: { - serializedName: "properties.publisher", - type: { - name: "String" - } - }, - typePropertiesType: { - serializedName: "properties.type", - type: { - name: "String" - } - }, - typeHandlerVersion: { - serializedName: "properties.typeHandlerVersion", - type: { - name: "String" - } - }, - autoUpgradeMinorVersion: { - serializedName: "properties.autoUpgradeMinorVersion", - type: { - name: "Boolean" - } - }, - enableAutomaticUpgrade: { - serializedName: "properties.enableAutomaticUpgrade", - type: { - name: "Boolean" - } - }, - settings: { - serializedName: "properties.settings", - type: { - name: "any" - } - }, - protectedSettings: { - serializedName: "properties.protectedSettings", - type: { - name: "any" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - provisionAfterExtensions: { - serializedName: "properties.provisionAfterExtensions", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + className: "KeyVaultSecretReference", + }, }, - suppressFailures: { - serializedName: "properties.suppressFailures", + }, + }, +}; + +export const VirtualMachineScaleSetExtensionUpdate: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtensionUpdate", + modelProperties: { + ...SubResourceReadOnly.type.modelProperties, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, type: { - name: "Boolean" - } + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", + type: { + name: "String", + }, + }, + publisher: { + serializedName: "properties.publisher", + type: { + name: "String", + }, + }, + typePropertiesType: { + serializedName: "properties.type", + type: { + name: "String", + }, + }, + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", + type: { + name: "String", + }, + }, + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", + type: { + name: "Boolean", + }, + }, + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", + type: { + name: "Boolean", + }, + }, + settings: { + serializedName: "properties.settings", + type: { + name: "any", + }, + }, + protectedSettings: { + serializedName: "properties.protectedSettings", + type: { + name: "any", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + provisionAfterExtensions: { + serializedName: "properties.provisionAfterExtensions", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + suppressFailures: { + serializedName: "properties.suppressFailures", + type: { + name: "Boolean", + }, + }, + protectedSettingsFromKeyVault: { + serializedName: "properties.protectedSettingsFromKeyVault", + type: { + name: "Composite", + className: "KeyVaultSecretReference", + }, + }, }, - protectedSettingsFromKeyVault: { - serializedName: "properties.protectedSettingsFromKeyVault", - type: { - name: "Composite", - className: "KeyVaultSecretReference" - } - } - } - } -}; + }, + }; export const VirtualMachineScaleSetVMExtension: coreClient.CompositeMapper = { type: { @@ -12433,96 +13070,96 @@ export const VirtualMachineScaleSetVMExtension: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, forceUpdateTag: { serializedName: "properties.forceUpdateTag", type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "properties.publisher", type: { - name: "String" - } + name: "String", + }, }, typePropertiesType: { serializedName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, typeHandlerVersion: { serializedName: "properties.typeHandlerVersion", type: { - name: "String" - } + name: "String", + }, }, autoUpgradeMinorVersion: { serializedName: "properties.autoUpgradeMinorVersion", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAutomaticUpgrade: { serializedName: "properties.enableAutomaticUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, settings: { serializedName: "properties.settings", type: { - name: "any" - } + name: "any", + }, }, protectedSettings: { serializedName: "properties.protectedSettings", type: { - name: "any" - } + name: "any", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineExtensionInstanceView" - } + className: "VirtualMachineExtensionInstanceView", + }, }, suppressFailures: { serializedName: "properties.suppressFailures", type: { - name: "Boolean" - } + name: "Boolean", + }, }, protectedSettingsFromKeyVault: { serializedName: "properties.protectedSettingsFromKeyVault", type: { name: "Composite", - className: "KeyVaultSecretReference" - } + className: "KeyVaultSecretReference", + }, }, provisionAfterExtensions: { serializedName: "properties.provisionAfterExtensions", @@ -12530,99 +13167,100 @@ export const VirtualMachineScaleSetVMExtension: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetVMExtensionUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMExtensionUpdate", - modelProperties: { - ...SubResourceReadOnly.type.modelProperties, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", - type: { - name: "String" - } - }, - publisher: { - serializedName: "properties.publisher", - type: { - name: "String" - } - }, - typePropertiesType: { - serializedName: "properties.type", - type: { - name: "String" - } - }, - typeHandlerVersion: { - serializedName: "properties.typeHandlerVersion", - type: { - name: "String" - } - }, - autoUpgradeMinorVersion: { - serializedName: "properties.autoUpgradeMinorVersion", - type: { - name: "Boolean" - } - }, - enableAutomaticUpgrade: { - serializedName: "properties.enableAutomaticUpgrade", - type: { - name: "Boolean" - } - }, - settings: { - serializedName: "properties.settings", - type: { - name: "any" - } - }, - protectedSettings: { - serializedName: "properties.protectedSettings", - type: { - name: "any" - } + name: "String", + }, + }, + }, }, - suppressFailures: { - serializedName: "properties.suppressFailures", + }, + }, +}; + +export const VirtualMachineScaleSetVMExtensionUpdate: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtensionUpdate", + modelProperties: { + ...SubResourceReadOnly.type.modelProperties, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, type: { - name: "Boolean" - } + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", + type: { + name: "String", + }, + }, + publisher: { + serializedName: "properties.publisher", + type: { + name: "String", + }, + }, + typePropertiesType: { + serializedName: "properties.type", + type: { + name: "String", + }, + }, + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", + type: { + name: "String", + }, + }, + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", + type: { + name: "Boolean", + }, + }, + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", + type: { + name: "Boolean", + }, + }, + settings: { + serializedName: "properties.settings", + type: { + name: "any", + }, + }, + protectedSettings: { + serializedName: "properties.protectedSettings", + type: { + name: "any", + }, + }, + suppressFailures: { + serializedName: "properties.suppressFailures", + type: { + name: "Boolean", + }, + }, + protectedSettingsFromKeyVault: { + serializedName: "properties.protectedSettingsFromKeyVault", + type: { + name: "Composite", + className: "KeyVaultSecretReference", + }, + }, }, - protectedSettingsFromKeyVault: { - serializedName: "properties.protectedSettingsFromKeyVault", - type: { - name: "Composite", - className: "KeyVaultSecretReference" - } - } - } - } -}; + }, + }; export const DiskRestorePointAttributes: coreClient.CompositeMapper = { type: { @@ -12634,18 +13272,18 @@ export const DiskRestorePointAttributes: coreClient.CompositeMapper = { serializedName: "encryption", type: { name: "Composite", - className: "RestorePointEncryption" - } + className: "RestorePointEncryption", + }, }, sourceDiskRestorePoint: { serializedName: "sourceDiskRestorePoint", type: { name: "Composite", - className: "ApiEntityReference" - } - } - } - } + className: "ApiEntityReference", + }, + }, + }, + }, }; export const VirtualMachineExtension: coreClient.CompositeMapper = { @@ -12657,77 +13295,77 @@ export const VirtualMachineExtension: coreClient.CompositeMapper = { forceUpdateTag: { serializedName: "properties.forceUpdateTag", type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "properties.publisher", type: { - name: "String" - } + name: "String", + }, }, typePropertiesType: { serializedName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, typeHandlerVersion: { serializedName: "properties.typeHandlerVersion", type: { - name: "String" - } + name: "String", + }, }, autoUpgradeMinorVersion: { serializedName: "properties.autoUpgradeMinorVersion", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAutomaticUpgrade: { serializedName: "properties.enableAutomaticUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, settings: { serializedName: "properties.settings", type: { - name: "any" - } + name: "any", + }, }, protectedSettings: { serializedName: "properties.protectedSettings", type: { - name: "any" - } + name: "any", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineExtensionInstanceView" - } + className: "VirtualMachineExtensionInstanceView", + }, }, suppressFailures: { serializedName: "properties.suppressFailures", type: { - name: "Boolean" - } + name: "Boolean", + }, }, protectedSettingsFromKeyVault: { serializedName: "properties.protectedSettingsFromKeyVault", type: { name: "Composite", - className: "KeyVaultSecretReference" - } + className: "KeyVaultSecretReference", + }, }, provisionAfterExtensions: { serializedName: "properties.provisionAfterExtensions", @@ -12735,13 +13373,13 @@ export const VirtualMachineExtension: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineScaleSet: coreClient.CompositeMapper = { @@ -12754,22 +13392,22 @@ export const VirtualMachineScaleSet: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, plan: { serializedName: "plan", type: { name: "Composite", - className: "Plan" - } + className: "Plan", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "VirtualMachineScaleSetIdentity" - } + className: "VirtualMachineScaleSetIdentity", + }, }, zones: { serializedName: "zones", @@ -12777,146 +13415,167 @@ export const VirtualMachineScaleSet: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, extendedLocation: { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String", + }, }, upgradePolicy: { serializedName: "properties.upgradePolicy", type: { name: "Composite", - className: "UpgradePolicy" - } + className: "UpgradePolicy", + }, + }, + scheduledEventsPolicy: { + serializedName: "properties.scheduledEventsPolicy", + type: { + name: "Composite", + className: "ScheduledEventsPolicy", + }, }, automaticRepairsPolicy: { serializedName: "properties.automaticRepairsPolicy", type: { name: "Composite", - className: "AutomaticRepairsPolicy" - } + className: "AutomaticRepairsPolicy", + }, }, virtualMachineProfile: { serializedName: "properties.virtualMachineProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetVMProfile" - } + className: "VirtualMachineScaleSetVMProfile", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, overprovision: { serializedName: "properties.overprovision", type: { - name: "Boolean" - } + name: "Boolean", + }, }, doNotRunExtensionsOnOverprovisionedVMs: { serializedName: "properties.doNotRunExtensionsOnOverprovisionedVMs", type: { - name: "Boolean" - } + name: "Boolean", + }, }, uniqueId: { serializedName: "properties.uniqueId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, singlePlacementGroup: { serializedName: "properties.singlePlacementGroup", type: { - name: "Boolean" - } + name: "Boolean", + }, }, zoneBalance: { serializedName: "properties.zoneBalance", type: { - name: "Boolean" - } + name: "Boolean", + }, }, platformFaultDomainCount: { serializedName: "properties.platformFaultDomainCount", type: { - name: "Number" - } + name: "Number", + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, hostGroup: { serializedName: "properties.hostGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "AdditionalCapabilities" - } + className: "AdditionalCapabilities", + }, }, scaleInPolicy: { serializedName: "properties.scaleInPolicy", type: { name: "Composite", - className: "ScaleInPolicy" - } + className: "ScaleInPolicy", + }, }, orchestrationMode: { serializedName: "properties.orchestrationMode", type: { - name: "String" - } + name: "String", + }, }, spotRestorePolicy: { serializedName: "properties.spotRestorePolicy", type: { name: "Composite", - className: "SpotRestorePolicy" - } + className: "SpotRestorePolicy", + }, }, priorityMixPolicy: { serializedName: "properties.priorityMixPolicy", type: { name: "Composite", - className: "PriorityMixPolicy" - } + className: "PriorityMixPolicy", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, constrainedMaximumCapacity: { serializedName: "properties.constrainedMaximumCapacity", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + resiliencyPolicy: { + serializedName: "properties.resiliencyPolicy", + type: { + name: "Composite", + className: "ResiliencyPolicy", + }, + }, + }, + }, }; export const RollingUpgradeStatusInfo: coreClient.CompositeMapper = { @@ -12929,32 +13588,32 @@ export const RollingUpgradeStatusInfo: coreClient.CompositeMapper = { serializedName: "properties.policy", type: { name: "Composite", - className: "RollingUpgradePolicy" - } + className: "RollingUpgradePolicy", + }, }, runningStatus: { serializedName: "properties.runningStatus", type: { name: "Composite", - className: "RollingUpgradeRunningStatus" - } + className: "RollingUpgradeRunningStatus", + }, }, progress: { serializedName: "properties.progress", type: { name: "Composite", - className: "RollingUpgradeProgressInfo" - } + className: "RollingUpgradeProgressInfo", + }, }, error: { serializedName: "properties.error", type: { name: "Composite", - className: "ApiError" - } - } - } - } + className: "ApiError", + }, + }, + }, + }, }; export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { @@ -12967,22 +13626,22 @@ export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { serializedName: "instanceId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, plan: { serializedName: "plan", type: { name: "Composite", - className: "Plan" - } + className: "Plan", + }, }, resources: { serializedName: "resources", @@ -12992,10 +13651,10 @@ export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtension" - } - } - } + className: "VirtualMachineExtension", + }, + }, + }, }, zones: { serializedName: "zones", @@ -13004,144 +13663,151 @@ export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "VirtualMachineIdentity" - } + className: "VirtualMachineIdentity", + }, + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String", + }, }, latestModelApplied: { serializedName: "properties.latestModelApplied", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, vmId: { serializedName: "properties.vmId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineScaleSetVMInstanceView" - } + className: "VirtualMachineScaleSetVMInstanceView", + }, }, hardwareProfile: { serializedName: "properties.hardwareProfile", type: { name: "Composite", - className: "HardwareProfile" - } + className: "HardwareProfile", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "StorageProfile" - } + className: "StorageProfile", + }, }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "AdditionalCapabilities" - } + className: "AdditionalCapabilities", + }, }, osProfile: { serializedName: "properties.osProfile", type: { name: "Composite", - className: "OSProfile" - } + className: "OSProfile", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "SecurityProfile" - } + className: "SecurityProfile", + }, }, networkProfile: { serializedName: "properties.networkProfile", type: { name: "Composite", - className: "NetworkProfile" - } + className: "NetworkProfile", + }, }, networkProfileConfiguration: { serializedName: "properties.networkProfileConfiguration", type: { name: "Composite", - className: "VirtualMachineScaleSetVMNetworkProfileConfiguration" - } + className: "VirtualMachineScaleSetVMNetworkProfileConfiguration", + }, }, diagnosticsProfile: { serializedName: "properties.diagnosticsProfile", type: { name: "Composite", - className: "DiagnosticsProfile" - } + className: "DiagnosticsProfile", + }, }, availabilitySet: { serializedName: "properties.availabilitySet", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, licenseType: { serializedName: "properties.licenseType", type: { - name: "String" - } + name: "String", + }, }, modelDefinitionApplied: { serializedName: "properties.modelDefinitionApplied", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, protectionPolicy: { serializedName: "properties.protectionPolicy", type: { name: "Composite", - className: "VirtualMachineScaleSetVMProtectionPolicy" - } + className: "VirtualMachineScaleSetVMProtectionPolicy", + }, }, userData: { serializedName: "properties.userData", type: { - name: "String" - } + name: "String", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const VirtualMachine: coreClient.CompositeMapper = { @@ -13154,8 +13820,8 @@ export const VirtualMachine: coreClient.CompositeMapper = { serializedName: "plan", type: { name: "Composite", - className: "Plan" - } + className: "Plan", + }, }, resources: { serializedName: "resources", @@ -13165,17 +13831,17 @@ export const VirtualMachine: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtension" - } - } - } + className: "VirtualMachineExtension", + }, + }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "VirtualMachineIdentity" - } + className: "VirtualMachineIdentity", + }, }, zones: { serializedName: "zones", @@ -13183,196 +13849,217 @@ export const VirtualMachine: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, extendedLocation: { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, + }, + managedBy: { + serializedName: "managedBy", + readOnly: true, + type: { + name: "String", + }, + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String", + }, }, hardwareProfile: { serializedName: "properties.hardwareProfile", type: { name: "Composite", - className: "HardwareProfile" - } + className: "HardwareProfile", + }, + }, + scheduledEventsPolicy: { + serializedName: "properties.scheduledEventsPolicy", + type: { + name: "Composite", + className: "ScheduledEventsPolicy", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "StorageProfile" - } + className: "StorageProfile", + }, }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "AdditionalCapabilities" - } + className: "AdditionalCapabilities", + }, }, osProfile: { serializedName: "properties.osProfile", type: { name: "Composite", - className: "OSProfile" - } + className: "OSProfile", + }, }, networkProfile: { serializedName: "properties.networkProfile", type: { name: "Composite", - className: "NetworkProfile" - } + className: "NetworkProfile", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "SecurityProfile" - } + className: "SecurityProfile", + }, }, diagnosticsProfile: { serializedName: "properties.diagnosticsProfile", type: { name: "Composite", - className: "DiagnosticsProfile" - } + className: "DiagnosticsProfile", + }, }, availabilitySet: { serializedName: "properties.availabilitySet", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, virtualMachineScaleSet: { serializedName: "properties.virtualMachineScaleSet", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, priority: { serializedName: "properties.priority", type: { - name: "String" - } + name: "String", + }, }, evictionPolicy: { serializedName: "properties.evictionPolicy", type: { - name: "String" - } + name: "String", + }, }, billingProfile: { serializedName: "properties.billingProfile", type: { name: "Composite", - className: "BillingProfile" - } + className: "BillingProfile", + }, }, host: { serializedName: "properties.host", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, hostGroup: { serializedName: "properties.hostGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineInstanceView" - } + className: "VirtualMachineInstanceView", + }, }, licenseType: { serializedName: "properties.licenseType", type: { - name: "String" - } + name: "String", + }, }, vmId: { serializedName: "properties.vmId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, extensionsTimeBudget: { serializedName: "properties.extensionsTimeBudget", type: { - name: "String" - } + name: "String", + }, }, platformFaultDomain: { serializedName: "properties.platformFaultDomain", type: { - name: "Number" - } + name: "Number", + }, }, scheduledEventsProfile: { serializedName: "properties.scheduledEventsProfile", type: { name: "Composite", - className: "ScheduledEventsProfile" - } + className: "ScheduledEventsProfile", + }, }, userData: { serializedName: "properties.userData", type: { - name: "String" - } + name: "String", + }, }, capacityReservation: { serializedName: "properties.capacityReservation", type: { name: "Composite", - className: "CapacityReservationProfile" - } + className: "CapacityReservationProfile", + }, }, applicationProfile: { serializedName: "properties.applicationProfile", type: { name: "Composite", - className: "ApplicationProfile" - } + className: "ApplicationProfile", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const VirtualMachineExtensionImage: coreClient.CompositeMapper = { @@ -13384,35 +14071,35 @@ export const VirtualMachineExtensionImage: coreClient.CompositeMapper = { operatingSystem: { serializedName: "properties.operatingSystem", type: { - name: "String" - } + name: "String", + }, }, computeRole: { serializedName: "properties.computeRole", type: { - name: "String" - } + name: "String", + }, }, handlerSchema: { serializedName: "properties.handlerSchema", type: { - name: "String" - } + name: "String", + }, }, vmScaleSetEnabled: { serializedName: "properties.vmScaleSetEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, supportsMultipleExtensions: { serializedName: "properties.supportsMultipleExtensions", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const AvailabilitySet: coreClient.CompositeMapper = { @@ -13425,20 +14112,20 @@ export const AvailabilitySet: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, platformUpdateDomainCount: { serializedName: "properties.platformUpdateDomainCount", type: { - name: "Number" - } + name: "Number", + }, }, platformFaultDomainCount: { serializedName: "properties.platformFaultDomainCount", type: { - name: "Number" - } + name: "Number", + }, }, virtualMachines: { serializedName: "properties.virtualMachines", @@ -13447,17 +14134,17 @@ export const AvailabilitySet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResource" - } - } - } + className: "SubResource", + }, + }, + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, statuses: { serializedName: "properties.statuses", @@ -13467,13 +14154,13 @@ export const AvailabilitySet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const ProximityPlacementGroup: coreClient.CompositeMapper = { @@ -13488,16 +14175,16 @@ export const ProximityPlacementGroup: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, proximityPlacementGroupType: { serializedName: "properties.proximityPlacementGroupType", type: { - name: "String" - } + name: "String", + }, }, virtualMachines: { serializedName: "properties.virtualMachines", @@ -13507,10 +14194,10 @@ export const ProximityPlacementGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceWithColocationStatus" - } - } - } + className: "SubResourceWithColocationStatus", + }, + }, + }, }, virtualMachineScaleSets: { serializedName: "properties.virtualMachineScaleSets", @@ -13520,10 +14207,10 @@ export const ProximityPlacementGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceWithColocationStatus" - } - } - } + className: "SubResourceWithColocationStatus", + }, + }, + }, }, availabilitySets: { serializedName: "properties.availabilitySets", @@ -13533,27 +14220,27 @@ export const ProximityPlacementGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceWithColocationStatus" - } - } - } + className: "SubResourceWithColocationStatus", + }, + }, + }, }, colocationStatus: { serializedName: "properties.colocationStatus", type: { name: "Composite", - className: "InstanceViewStatus" - } + className: "InstanceViewStatus", + }, }, intent: { serializedName: "properties.intent", type: { name: "Composite", - className: "ProximityPlacementGroupPropertiesIntent" - } - } - } - } + className: "ProximityPlacementGroupPropertiesIntent", + }, + }, + }, + }, }; export const DedicatedHostGroup: coreClient.CompositeMapper = { @@ -13568,19 +14255,19 @@ export const DedicatedHostGroup: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, platformFaultDomainCount: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.platformFaultDomainCount", type: { - name: "Number" - } + name: "Number", + }, }, hosts: { serializedName: "properties.hosts", @@ -13590,33 +14277,33 @@ export const DedicatedHostGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "DedicatedHostGroupInstanceView" - } + className: "DedicatedHostGroupInstanceView", + }, }, supportAutomaticPlacement: { serializedName: "properties.supportAutomaticPlacement", type: { - name: "Boolean" - } + name: "Boolean", + }, }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "DedicatedHostGroupPropertiesAdditionalCapabilities" - } - } - } - } + className: "DedicatedHostGroupPropertiesAdditionalCapabilities", + }, + }, + }, + }, }; export const DedicatedHost: coreClient.CompositeMapper = { @@ -13629,30 +14316,30 @@ export const DedicatedHost: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, platformFaultDomain: { constraints: { - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "properties.platformFaultDomain", type: { - name: "Number" - } + name: "Number", + }, }, autoReplaceOnFailure: { serializedName: "properties.autoReplaceOnFailure", type: { - name: "Boolean" - } + name: "Boolean", + }, }, hostId: { serializedName: "properties.hostId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, virtualMachines: { serializedName: "properties.virtualMachines", @@ -13662,10 +14349,10 @@ export const DedicatedHost: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, licenseType: { serializedName: "properties.licenseType", @@ -13674,40 +14361,40 @@ export const DedicatedHost: coreClient.CompositeMapper = { allowedValues: [ "None", "Windows_Server_Hybrid", - "Windows_Server_Perpetual" - ] - } + "Windows_Server_Perpetual", + ], + }, }, provisioningTime: { serializedName: "properties.provisioningTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "DedicatedHostInstanceView" - } + className: "DedicatedHostInstanceView", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const SshPublicKeyResource: coreClient.CompositeMapper = { @@ -13719,11 +14406,11 @@ export const SshPublicKeyResource: coreClient.CompositeMapper = { publicKey: { serializedName: "properties.publicKey", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Image: coreClient.CompositeMapper = { @@ -13736,38 +14423,38 @@ export const Image: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, sourceVirtualMachine: { serializedName: "properties.sourceVirtualMachine", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "ImageStorageProfile" - } + className: "ImageStorageProfile", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RestorePointCollection: coreClient.CompositeMapper = { @@ -13780,22 +14467,22 @@ export const RestorePointCollection: coreClient.CompositeMapper = { serializedName: "properties.source", type: { name: "Composite", - className: "RestorePointCollectionSourceProperties" - } + className: "RestorePointCollectionSourceProperties", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, restorePointCollectionId: { serializedName: "properties.restorePointCollectionId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, restorePoints: { serializedName: "properties.restorePoints", @@ -13805,13 +14492,13 @@ export const RestorePointCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorePoint" - } - } - } - } - } - } + className: "RestorePoint", + }, + }, + }, + }, + }, + }, }; export const CapacityReservationGroup: coreClient.CompositeMapper = { @@ -13826,10 +14513,10 @@ export const CapacityReservationGroup: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, capacityReservations: { serializedName: "properties.capacityReservations", @@ -13839,10 +14526,10 @@ export const CapacityReservationGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, virtualMachinesAssociated: { serializedName: "properties.virtualMachinesAssociated", @@ -13852,20 +14539,27 @@ export const CapacityReservationGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "CapacityReservationGroupInstanceView" - } - } - } - } + className: "CapacityReservationGroupInstanceView", + }, + }, + sharingProfile: { + serializedName: "properties.sharingProfile", + type: { + name: "Composite", + className: "ResourceSharingProfile", + }, + }, + }, + }, }; export const CapacityReservation: coreClient.CompositeMapper = { @@ -13878,8 +14572,8 @@ export const CapacityReservation: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, zones: { serializedName: "zones", @@ -13887,24 +14581,24 @@ export const CapacityReservation: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, reservationId: { serializedName: "properties.reservationId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, platformFaultDomainCount: { serializedName: "properties.platformFaultDomainCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, virtualMachinesAssociated: { serializedName: "properties.virtualMachinesAssociated", @@ -13914,41 +14608,41 @@ export const CapacityReservation: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, provisioningTime: { serializedName: "properties.provisioningTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "CapacityReservationInstanceView" - } + className: "CapacityReservationInstanceView", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const VirtualMachineRunCommand: coreClient.CompositeMapper = { @@ -13961,8 +14655,8 @@ export const VirtualMachineRunCommand: coreClient.CompositeMapper = { serializedName: "properties.source", type: { name: "Composite", - className: "VirtualMachineRunCommandScriptSource" - } + className: "VirtualMachineRunCommandScriptSource", + }, }, parameters: { serializedName: "properties.parameters", @@ -13971,10 +14665,10 @@ export const VirtualMachineRunCommand: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandInputParameter" - } - } - } + className: "RunCommandInputParameter", + }, + }, + }, }, protectedParameters: { serializedName: "properties.protectedParameters", @@ -13983,85 +14677,85 @@ export const VirtualMachineRunCommand: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandInputParameter" - } - } - } + className: "RunCommandInputParameter", + }, + }, + }, }, asyncExecution: { defaultValue: false, serializedName: "properties.asyncExecution", type: { - name: "Boolean" - } + name: "Boolean", + }, }, runAsUser: { serializedName: "properties.runAsUser", type: { - name: "String" - } + name: "String", + }, }, runAsPassword: { serializedName: "properties.runAsPassword", type: { - name: "String" - } + name: "String", + }, }, timeoutInSeconds: { serializedName: "properties.timeoutInSeconds", type: { - name: "Number" - } + name: "Number", + }, }, outputBlobUri: { serializedName: "properties.outputBlobUri", type: { - name: "String" - } + name: "String", + }, }, errorBlobUri: { serializedName: "properties.errorBlobUri", type: { - name: "String" - } + name: "String", + }, }, outputBlobManagedIdentity: { serializedName: "properties.outputBlobManagedIdentity", type: { name: "Composite", - className: "RunCommandManagedIdentity" - } + className: "RunCommandManagedIdentity", + }, }, errorBlobManagedIdentity: { serializedName: "properties.errorBlobManagedIdentity", type: { name: "Composite", - className: "RunCommandManagedIdentity" - } + className: "RunCommandManagedIdentity", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineRunCommandInstanceView" - } + className: "VirtualMachineRunCommandInstanceView", + }, }, treatFailureAsDeploymentFailure: { defaultValue: false, serializedName: "properties.treatFailureAsDeploymentFailure", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const Disk: coreClient.CompositeMapper = { @@ -14074,8 +14768,8 @@ export const Disk: coreClient.CompositeMapper = { serializedName: "managedBy", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, managedByExtended: { serializedName: "managedByExtended", @@ -14084,17 +14778,17 @@ export const Disk: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "DiskSku" - } + className: "DiskSku", + }, }, zones: { serializedName: "zones", @@ -14102,136 +14796,136 @@ export const Disk: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, extendedLocation: { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, osType: { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "PurchasePlanAutoGenerated" - } + className: "PurchasePlanAutoGenerated", + }, }, supportedCapabilities: { serializedName: "properties.supportedCapabilities", type: { name: "Composite", - className: "SupportedCapabilities" - } + className: "SupportedCapabilities", + }, }, creationData: { serializedName: "properties.creationData", type: { name: "Composite", - className: "CreationData" - } + className: "CreationData", + }, }, diskSizeGB: { serializedName: "properties.diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, diskSizeBytes: { serializedName: "properties.diskSizeBytes", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, uniqueId: { serializedName: "properties.uniqueId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, encryptionSettingsCollection: { serializedName: "properties.encryptionSettingsCollection", type: { name: "Composite", - className: "EncryptionSettingsCollection" - } + className: "EncryptionSettingsCollection", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, diskIopsReadWrite: { serializedName: "properties.diskIOPSReadWrite", type: { - name: "Number" - } + name: "Number", + }, }, diskMBpsReadWrite: { serializedName: "properties.diskMBpsReadWrite", type: { - name: "Number" - } + name: "Number", + }, }, diskIopsReadOnly: { serializedName: "properties.diskIOPSReadOnly", type: { - name: "Number" - } + name: "Number", + }, }, diskMBpsReadOnly: { serializedName: "properties.diskMBpsReadOnly", type: { - name: "Number" - } + name: "Number", + }, }, diskState: { serializedName: "properties.diskState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "Encryption" - } + className: "Encryption", + }, }, maxShares: { serializedName: "properties.maxShares", type: { - name: "Number" - } + name: "Number", + }, }, shareInfo: { serializedName: "properties.shareInfo", @@ -14241,95 +14935,95 @@ export const Disk: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ShareInfoElement" - } - } - } + className: "ShareInfoElement", + }, + }, + }, }, networkAccessPolicy: { serializedName: "properties.networkAccessPolicy", type: { - name: "String" - } + name: "String", + }, }, diskAccessId: { serializedName: "properties.diskAccessId", type: { - name: "String" - } + name: "String", + }, }, burstingEnabledTime: { serializedName: "properties.burstingEnabledTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, tier: { serializedName: "properties.tier", type: { - name: "String" - } + name: "String", + }, }, burstingEnabled: { serializedName: "properties.burstingEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, propertyUpdatesInProgress: { serializedName: "properties.propertyUpdatesInProgress", type: { name: "Composite", - className: "PropertyUpdatesInProgress" - } + className: "PropertyUpdatesInProgress", + }, }, supportsHibernation: { serializedName: "properties.supportsHibernation", type: { - name: "Boolean" - } + name: "Boolean", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "DiskSecurityProfile" - } + className: "DiskSecurityProfile", + }, }, completionPercent: { serializedName: "properties.completionPercent", type: { - name: "Number" - } + name: "Number", + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, dataAccessAuthMode: { serializedName: "properties.dataAccessAuthMode", type: { - name: "String" - } + name: "String", + }, }, optimizedForFrequentAttach: { serializedName: "properties.optimizedForFrequentAttach", type: { - name: "Boolean" - } + name: "Boolean", + }, }, lastOwnershipUpdateTime: { serializedName: "properties.LastOwnershipUpdateTime", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const DiskAccess: coreClient.CompositeMapper = { @@ -14342,8 +15036,8 @@ export const DiskAccess: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, privateEndpointConnections: { serializedName: "properties.privateEndpointConnections", @@ -14353,27 +15047,27 @@ export const DiskAccess: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const DiskEncryptionSet: coreClient.CompositeMapper = { @@ -14386,21 +15080,21 @@ export const DiskEncryptionSet: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "EncryptionSetIdentity" - } + className: "EncryptionSetIdentity", + }, }, encryptionType: { serializedName: "properties.encryptionType", type: { - name: "String" - } + name: "String", + }, }, activeKey: { serializedName: "properties.activeKey", type: { name: "Composite", - className: "KeyForDiskEncryptionSet" - } + className: "KeyForDiskEncryptionSet", + }, }, previousKeys: { serializedName: "properties.previousKeys", @@ -14410,46 +15104,46 @@ export const DiskEncryptionSet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KeyForDiskEncryptionSet" - } - } - } + className: "KeyForDiskEncryptionSet", + }, + }, + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rotationToLatestKeyVersionEnabled: { serializedName: "properties.rotationToLatestKeyVersionEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, lastKeyRotationTimestamp: { serializedName: "properties.lastKeyRotationTimestamp", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, autoKeyRotationError: { serializedName: "properties.autoKeyRotationError", type: { name: "Composite", - className: "ApiError" - } + className: "ApiError", + }, }, federatedClientId: { serializedName: "properties.federatedClientId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Snapshot: coreClient.CompositeMapper = { @@ -14462,177 +15156,177 @@ export const Snapshot: coreClient.CompositeMapper = { serializedName: "managedBy", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "SnapshotSku" - } + className: "SnapshotSku", + }, }, extendedLocation: { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, osType: { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "PurchasePlanAutoGenerated" - } + className: "PurchasePlanAutoGenerated", + }, }, supportedCapabilities: { serializedName: "properties.supportedCapabilities", type: { name: "Composite", - className: "SupportedCapabilities" - } + className: "SupportedCapabilities", + }, }, creationData: { serializedName: "properties.creationData", type: { name: "Composite", - className: "CreationData" - } + className: "CreationData", + }, }, diskSizeGB: { serializedName: "properties.diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, diskSizeBytes: { serializedName: "properties.diskSizeBytes", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, diskState: { serializedName: "properties.diskState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, uniqueId: { serializedName: "properties.uniqueId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, encryptionSettingsCollection: { serializedName: "properties.encryptionSettingsCollection", type: { name: "Composite", - className: "EncryptionSettingsCollection" - } + className: "EncryptionSettingsCollection", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, incremental: { serializedName: "properties.incremental", type: { - name: "Boolean" - } + name: "Boolean", + }, }, incrementalSnapshotFamilyId: { serializedName: "properties.incrementalSnapshotFamilyId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "Encryption" - } + className: "Encryption", + }, }, networkAccessPolicy: { serializedName: "properties.networkAccessPolicy", type: { - name: "String" - } + name: "String", + }, }, diskAccessId: { serializedName: "properties.diskAccessId", type: { - name: "String" - } + name: "String", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "DiskSecurityProfile" - } + className: "DiskSecurityProfile", + }, }, supportsHibernation: { serializedName: "properties.supportsHibernation", type: { - name: "Boolean" - } + name: "Boolean", + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, completionPercent: { serializedName: "properties.completionPercent", type: { - name: "Number" - } + name: "Number", + }, }, copyCompletionError: { serializedName: "properties.copyCompletionError", type: { name: "Composite", - className: "CopyCompletionError" - } + className: "CopyCompletionError", + }, }, dataAccessAuthMode: { serializedName: "properties.dataAccessAuthMode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Gallery: coreClient.CompositeMapper = { @@ -14644,46 +15338,46 @@ export const Gallery: coreClient.CompositeMapper = { description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, identifier: { serializedName: "properties.identifier", type: { name: "Composite", - className: "GalleryIdentifier" - } + className: "GalleryIdentifier", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sharingProfile: { serializedName: "properties.sharingProfile", type: { name: "Composite", - className: "SharingProfile" - } + className: "SharingProfile", + }, }, softDeletePolicy: { serializedName: "properties.softDeletePolicy", type: { name: "Composite", - className: "SoftDeletePolicy" - } + className: "SoftDeletePolicy", + }, }, sharingStatus: { serializedName: "properties.sharingStatus", type: { name: "Composite", - className: "SharingStatus" - } - } - } - } + className: "SharingStatus", + }, + }, + }, + }, }; export const GalleryImage: coreClient.CompositeMapper = { @@ -14695,87 +15389,87 @@ export const GalleryImage: coreClient.CompositeMapper = { description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "properties.eula", type: { - name: "String" - } + name: "String", + }, }, privacyStatementUri: { serializedName: "properties.privacyStatementUri", type: { - name: "String" - } + name: "String", + }, }, releaseNoteUri: { serializedName: "properties.releaseNoteUri", type: { - name: "String" - } + name: "String", + }, }, osType: { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, osState: { serializedName: "properties.osState", type: { name: "Enum", - allowedValues: ["Generalized", "Specialized"] - } + allowedValues: ["Generalized", "Specialized"], + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, identifier: { serializedName: "properties.identifier", type: { name: "Composite", - className: "GalleryImageIdentifier" - } + className: "GalleryImageIdentifier", + }, }, recommended: { serializedName: "properties.recommended", type: { name: "Composite", - className: "RecommendedMachineConfiguration" - } + className: "RecommendedMachineConfiguration", + }, }, disallowed: { serializedName: "properties.disallowed", type: { name: "Composite", - className: "Disallowed" - } + className: "Disallowed", + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "ImagePurchasePlan" - } + className: "ImagePurchasePlan", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, features: { serializedName: "properties.features", @@ -14784,19 +15478,19 @@ export const GalleryImage: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryImageFeature" - } - } - } + className: "GalleryImageFeature", + }, + }, + }, }, architecture: { serializedName: "properties.architecture", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryImageVersion: coreClient.CompositeMapper = { @@ -14809,39 +15503,46 @@ export const GalleryImageVersion: coreClient.CompositeMapper = { serializedName: "properties.publishingProfile", type: { name: "Composite", - className: "GalleryImageVersionPublishingProfile" - } + className: "GalleryImageVersionPublishingProfile", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "GalleryImageVersionStorageProfile" - } + className: "GalleryImageVersionStorageProfile", + }, }, safetyProfile: { serializedName: "properties.safetyProfile", type: { name: "Composite", - className: "GalleryImageVersionSafetyProfile" - } + className: "GalleryImageVersionSafetyProfile", + }, }, replicationStatus: { serializedName: "properties.replicationStatus", type: { name: "Composite", - className: "ReplicationStatus" - } - } - } - } + className: "ReplicationStatus", + }, + }, + securityProfile: { + serializedName: "properties.securityProfile", + type: { + name: "Composite", + className: "ImageVersionSecurityProfile", + }, + }, + }, + }, }; export const GalleryApplication: coreClient.CompositeMapper = { @@ -14853,39 +15554,39 @@ export const GalleryApplication: coreClient.CompositeMapper = { description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "properties.eula", type: { - name: "String" - } + name: "String", + }, }, privacyStatementUri: { serializedName: "properties.privacyStatementUri", type: { - name: "String" - } + name: "String", + }, }, releaseNoteUri: { serializedName: "properties.releaseNoteUri", type: { - name: "String" - } + name: "String", + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, supportedOSType: { serializedName: "properties.supportedOSType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, customActions: { serializedName: "properties.customActions", @@ -14894,13 +15595,13 @@ export const GalleryApplication: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryApplicationCustomAction" - } - } - } - } - } - } + className: "GalleryApplicationCustomAction", + }, + }, + }, + }, + }, + }, }; export const GalleryApplicationVersion: coreClient.CompositeMapper = { @@ -14913,32 +15614,32 @@ export const GalleryApplicationVersion: coreClient.CompositeMapper = { serializedName: "properties.publishingProfile", type: { name: "Composite", - className: "GalleryApplicationVersionPublishingProfile" - } + className: "GalleryApplicationVersionPublishingProfile", + }, }, safetyProfile: { serializedName: "properties.safetyProfile", type: { name: "Composite", - className: "GalleryApplicationVersionSafetyProfile" - } + className: "GalleryApplicationVersionSafetyProfile", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, replicationStatus: { serializedName: "properties.replicationStatus", type: { name: "Composite", - className: "ReplicationStatus" - } - } - } - } + className: "ReplicationStatus", + }, + }, + }, + }, }; export const VirtualMachineScaleSetUpdate: coreClient.CompositeMapper = { @@ -14951,99 +15652,106 @@ export const VirtualMachineScaleSetUpdate: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, plan: { serializedName: "plan", type: { name: "Composite", - className: "Plan" - } + className: "Plan", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "VirtualMachineScaleSetIdentity" - } + className: "VirtualMachineScaleSetIdentity", + }, }, upgradePolicy: { serializedName: "properties.upgradePolicy", type: { name: "Composite", - className: "UpgradePolicy" - } + className: "UpgradePolicy", + }, }, automaticRepairsPolicy: { serializedName: "properties.automaticRepairsPolicy", type: { name: "Composite", - className: "AutomaticRepairsPolicy" - } + className: "AutomaticRepairsPolicy", + }, }, virtualMachineProfile: { serializedName: "properties.virtualMachineProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateVMProfile" - } + className: "VirtualMachineScaleSetUpdateVMProfile", + }, }, overprovision: { serializedName: "properties.overprovision", type: { - name: "Boolean" - } + name: "Boolean", + }, }, doNotRunExtensionsOnOverprovisionedVMs: { serializedName: "properties.doNotRunExtensionsOnOverprovisionedVMs", type: { - name: "Boolean" - } + name: "Boolean", + }, }, singlePlacementGroup: { serializedName: "properties.singlePlacementGroup", type: { - name: "Boolean" - } + name: "Boolean", + }, }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "AdditionalCapabilities" - } + className: "AdditionalCapabilities", + }, }, scaleInPolicy: { serializedName: "properties.scaleInPolicy", type: { name: "Composite", - className: "ScaleInPolicy" - } + className: "ScaleInPolicy", + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, priorityMixPolicy: { serializedName: "properties.priorityMixPolicy", type: { name: "Composite", - className: "PriorityMixPolicy" - } + className: "PriorityMixPolicy", + }, }, spotRestorePolicy: { serializedName: "properties.spotRestorePolicy", type: { name: "Composite", - className: "SpotRestorePolicy" - } - } - } - } + className: "SpotRestorePolicy", + }, + }, + resiliencyPolicy: { + serializedName: "properties.resiliencyPolicy", + type: { + name: "Composite", + className: "ResiliencyPolicy", + }, + }, + }, + }, }; export const VirtualMachineExtensionUpdate: coreClient.CompositeMapper = { @@ -15055,66 +15763,66 @@ export const VirtualMachineExtensionUpdate: coreClient.CompositeMapper = { forceUpdateTag: { serializedName: "properties.forceUpdateTag", type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "properties.publisher", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, typeHandlerVersion: { serializedName: "properties.typeHandlerVersion", type: { - name: "String" - } + name: "String", + }, }, autoUpgradeMinorVersion: { serializedName: "properties.autoUpgradeMinorVersion", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAutomaticUpgrade: { serializedName: "properties.enableAutomaticUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, settings: { serializedName: "properties.settings", type: { - name: "any" - } + name: "any", + }, }, protectedSettings: { serializedName: "properties.protectedSettings", type: { - name: "any" - } + name: "any", + }, }, suppressFailures: { serializedName: "properties.suppressFailures", type: { - name: "Boolean" - } + name: "Boolean", + }, }, protectedSettingsFromKeyVault: { serializedName: "properties.protectedSettingsFromKeyVault", type: { name: "Composite", - className: "KeyVaultSecretReference" - } - } - } - } + className: "KeyVaultSecretReference", + }, + }, + }, + }, }; export const VirtualMachineUpdate: coreClient.CompositeMapper = { @@ -15127,15 +15835,15 @@ export const VirtualMachineUpdate: coreClient.CompositeMapper = { serializedName: "plan", type: { name: "Composite", - className: "Plan" - } + className: "Plan", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "VirtualMachineIdentity" - } + className: "VirtualMachineIdentity", + }, }, zones: { serializedName: "zones", @@ -15143,189 +15851,196 @@ export const VirtualMachineUpdate: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, hardwareProfile: { serializedName: "properties.hardwareProfile", type: { name: "Composite", - className: "HardwareProfile" - } + className: "HardwareProfile", + }, + }, + scheduledEventsPolicy: { + serializedName: "properties.scheduledEventsPolicy", + type: { + name: "Composite", + className: "ScheduledEventsPolicy", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "StorageProfile" - } + className: "StorageProfile", + }, }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "AdditionalCapabilities" - } + className: "AdditionalCapabilities", + }, }, osProfile: { serializedName: "properties.osProfile", type: { name: "Composite", - className: "OSProfile" - } + className: "OSProfile", + }, }, networkProfile: { serializedName: "properties.networkProfile", type: { name: "Composite", - className: "NetworkProfile" - } + className: "NetworkProfile", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "SecurityProfile" - } + className: "SecurityProfile", + }, }, diagnosticsProfile: { serializedName: "properties.diagnosticsProfile", type: { name: "Composite", - className: "DiagnosticsProfile" - } + className: "DiagnosticsProfile", + }, }, availabilitySet: { serializedName: "properties.availabilitySet", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, virtualMachineScaleSet: { serializedName: "properties.virtualMachineScaleSet", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, priority: { serializedName: "properties.priority", type: { - name: "String" - } + name: "String", + }, }, evictionPolicy: { serializedName: "properties.evictionPolicy", type: { - name: "String" - } + name: "String", + }, }, billingProfile: { serializedName: "properties.billingProfile", type: { name: "Composite", - className: "BillingProfile" - } + className: "BillingProfile", + }, }, host: { serializedName: "properties.host", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, hostGroup: { serializedName: "properties.hostGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineInstanceView" - } + className: "VirtualMachineInstanceView", + }, }, licenseType: { serializedName: "properties.licenseType", type: { - name: "String" - } + name: "String", + }, }, vmId: { serializedName: "properties.vmId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, extensionsTimeBudget: { serializedName: "properties.extensionsTimeBudget", type: { - name: "String" - } + name: "String", + }, }, platformFaultDomain: { serializedName: "properties.platformFaultDomain", type: { - name: "Number" - } + name: "Number", + }, }, scheduledEventsProfile: { serializedName: "properties.scheduledEventsProfile", type: { name: "Composite", - className: "ScheduledEventsProfile" - } + className: "ScheduledEventsProfile", + }, }, userData: { serializedName: "properties.userData", type: { - name: "String" - } + name: "String", + }, }, capacityReservation: { serializedName: "properties.capacityReservation", type: { name: "Composite", - className: "CapacityReservationProfile" - } + className: "CapacityReservationProfile", + }, }, applicationProfile: { serializedName: "properties.applicationProfile", type: { name: "Composite", - className: "ApplicationProfile" - } + className: "ApplicationProfile", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const AvailabilitySetUpdate: coreClient.CompositeMapper = { @@ -15338,20 +16053,20 @@ export const AvailabilitySetUpdate: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, platformUpdateDomainCount: { serializedName: "properties.platformUpdateDomainCount", type: { - name: "Number" - } + name: "Number", + }, }, platformFaultDomainCount: { serializedName: "properties.platformFaultDomainCount", type: { - name: "Number" - } + name: "Number", + }, }, virtualMachines: { serializedName: "properties.virtualMachines", @@ -15360,17 +16075,17 @@ export const AvailabilitySetUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResource" - } - } - } + className: "SubResource", + }, + }, + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, statuses: { serializedName: "properties.statuses", @@ -15380,13 +16095,13 @@ export const AvailabilitySetUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const ProximityPlacementGroupUpdate: coreClient.CompositeMapper = { @@ -15394,9 +16109,9 @@ export const ProximityPlacementGroupUpdate: coreClient.CompositeMapper = { name: "Composite", className: "ProximityPlacementGroupUpdate", modelProperties: { - ...UpdateResource.type.modelProperties - } - } + ...UpdateResource.type.modelProperties, + }, + }, }; export const DedicatedHostGroupUpdate: coreClient.CompositeMapper = { @@ -15411,19 +16126,19 @@ export const DedicatedHostGroupUpdate: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, platformFaultDomainCount: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.platformFaultDomainCount", type: { - name: "Number" - } + name: "Number", + }, }, hosts: { serializedName: "properties.hosts", @@ -15433,33 +16148,33 @@ export const DedicatedHostGroupUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "DedicatedHostGroupInstanceView" - } + className: "DedicatedHostGroupInstanceView", + }, }, supportAutomaticPlacement: { serializedName: "properties.supportAutomaticPlacement", type: { - name: "Boolean" - } + name: "Boolean", + }, }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "DedicatedHostGroupPropertiesAdditionalCapabilities" - } - } - } - } + className: "DedicatedHostGroupPropertiesAdditionalCapabilities", + }, + }, + }, + }, }; export const DedicatedHostUpdate: coreClient.CompositeMapper = { @@ -15472,30 +16187,30 @@ export const DedicatedHostUpdate: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, platformFaultDomain: { constraints: { - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "properties.platformFaultDomain", type: { - name: "Number" - } + name: "Number", + }, }, autoReplaceOnFailure: { serializedName: "properties.autoReplaceOnFailure", type: { - name: "Boolean" - } + name: "Boolean", + }, }, hostId: { serializedName: "properties.hostId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, virtualMachines: { serializedName: "properties.virtualMachines", @@ -15505,10 +16220,10 @@ export const DedicatedHostUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, licenseType: { serializedName: "properties.licenseType", @@ -15517,40 +16232,40 @@ export const DedicatedHostUpdate: coreClient.CompositeMapper = { allowedValues: [ "None", "Windows_Server_Hybrid", - "Windows_Server_Perpetual" - ] - } + "Windows_Server_Perpetual", + ], + }, }, provisioningTime: { serializedName: "properties.provisioningTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "DedicatedHostInstanceView" - } + className: "DedicatedHostInstanceView", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const SshPublicKeyUpdateResource: coreClient.CompositeMapper = { @@ -15562,11 +16277,11 @@ export const SshPublicKeyUpdateResource: coreClient.CompositeMapper = { publicKey: { serializedName: "properties.publicKey", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageUpdate: coreClient.CompositeMapper = { @@ -15579,31 +16294,31 @@ export const ImageUpdate: coreClient.CompositeMapper = { serializedName: "properties.sourceVirtualMachine", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "ImageStorageProfile" - } + className: "ImageStorageProfile", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RestorePointCollectionUpdate: coreClient.CompositeMapper = { @@ -15616,22 +16331,22 @@ export const RestorePointCollectionUpdate: coreClient.CompositeMapper = { serializedName: "properties.source", type: { name: "Composite", - className: "RestorePointCollectionSourceProperties" - } + className: "RestorePointCollectionSourceProperties", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, restorePointCollectionId: { serializedName: "properties.restorePointCollectionId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, restorePoints: { serializedName: "properties.restorePoints", @@ -15641,13 +16356,13 @@ export const RestorePointCollectionUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorePoint" - } - } - } - } - } - } + className: "RestorePoint", + }, + }, + }, + }, + }, + }, }; export const CapacityReservationGroupUpdate: coreClient.CompositeMapper = { @@ -15664,10 +16379,10 @@ export const CapacityReservationGroupUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, virtualMachinesAssociated: { serializedName: "properties.virtualMachinesAssociated", @@ -15677,20 +16392,27 @@ export const CapacityReservationGroupUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "CapacityReservationGroupInstanceView" - } - } - } - } + className: "CapacityReservationGroupInstanceView", + }, + }, + sharingProfile: { + serializedName: "properties.sharingProfile", + type: { + name: "Composite", + className: "ResourceSharingProfile", + }, + }, + }, + }, }; export const CapacityReservationUpdate: coreClient.CompositeMapper = { @@ -15703,22 +16425,22 @@ export const CapacityReservationUpdate: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, reservationId: { serializedName: "properties.reservationId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, platformFaultDomainCount: { serializedName: "properties.platformFaultDomainCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, virtualMachinesAssociated: { serializedName: "properties.virtualMachinesAssociated", @@ -15728,41 +16450,41 @@ export const CapacityReservationUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, provisioningTime: { serializedName: "properties.provisioningTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "CapacityReservationInstanceView" - } + className: "CapacityReservationInstanceView", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const VirtualMachineRunCommandUpdate: coreClient.CompositeMapper = { @@ -15775,8 +16497,8 @@ export const VirtualMachineRunCommandUpdate: coreClient.CompositeMapper = { serializedName: "properties.source", type: { name: "Composite", - className: "VirtualMachineRunCommandScriptSource" - } + className: "VirtualMachineRunCommandScriptSource", + }, }, parameters: { serializedName: "properties.parameters", @@ -15785,10 +16507,10 @@ export const VirtualMachineRunCommandUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandInputParameter" - } - } - } + className: "RunCommandInputParameter", + }, + }, + }, }, protectedParameters: { serializedName: "properties.protectedParameters", @@ -15797,96 +16519,103 @@ export const VirtualMachineRunCommandUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandInputParameter" - } - } - } + className: "RunCommandInputParameter", + }, + }, + }, }, asyncExecution: { defaultValue: false, serializedName: "properties.asyncExecution", type: { - name: "Boolean" - } + name: "Boolean", + }, }, runAsUser: { serializedName: "properties.runAsUser", type: { - name: "String" - } + name: "String", + }, }, runAsPassword: { serializedName: "properties.runAsPassword", type: { - name: "String" - } + name: "String", + }, }, timeoutInSeconds: { serializedName: "properties.timeoutInSeconds", type: { - name: "Number" - } + name: "Number", + }, }, outputBlobUri: { serializedName: "properties.outputBlobUri", type: { - name: "String" - } + name: "String", + }, }, errorBlobUri: { serializedName: "properties.errorBlobUri", type: { - name: "String" - } + name: "String", + }, }, outputBlobManagedIdentity: { serializedName: "properties.outputBlobManagedIdentity", type: { name: "Composite", - className: "RunCommandManagedIdentity" - } + className: "RunCommandManagedIdentity", + }, }, errorBlobManagedIdentity: { serializedName: "properties.errorBlobManagedIdentity", type: { name: "Composite", - className: "RunCommandManagedIdentity" - } + className: "RunCommandManagedIdentity", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineRunCommandInstanceView" - } + className: "VirtualMachineRunCommandInstanceView", + }, }, treatFailureAsDeploymentFailure: { defaultValue: false, serializedName: "properties.treatFailureAsDeploymentFailure", type: { - name: "Boolean" - } - } - } - } -}; - -export const VirtualMachineScaleSetVMReimageParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMReimageParameters", - modelProperties: { - ...VirtualMachineReimageParameters.type.modelProperties - } - } -}; + name: "Boolean", + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetVMReimageParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMReimageParameters", + modelProperties: { + ...VirtualMachineReimageParameters.type.modelProperties, + forceUpdateOSDiskForEphemeral: { + serializedName: "forceUpdateOSDiskForEphemeral", + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const DedicatedHostInstanceViewWithName: coreClient.CompositeMapper = { type: { @@ -15898,11 +16627,11 @@ export const DedicatedHostInstanceViewWithName: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageOSDisk: coreClient.CompositeMapper = { @@ -15916,19 +16645,19 @@ export const ImageOSDisk: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, osState: { serializedName: "osState", required: true, type: { name: "Enum", - allowedValues: ["Generalized", "Specialized"] - } - } - } - } + allowedValues: ["Generalized", "Specialized"], + }, + }, + }, + }, }; export const ImageDataDisk: coreClient.CompositeMapper = { @@ -15941,11 +16670,11 @@ export const ImageDataDisk: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const RestorePoint: coreClient.CompositeMapper = { @@ -15961,71 +16690,72 @@ export const RestorePoint: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiEntityReference" - } - } - } + className: "ApiEntityReference", + }, + }, + }, }, sourceMetadata: { serializedName: "properties.sourceMetadata", type: { name: "Composite", - className: "RestorePointSourceMetadata" - } + className: "RestorePointSourceMetadata", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, consistencyMode: { serializedName: "properties.consistencyMode", type: { - name: "String" - } + name: "String", + }, }, timeCreated: { serializedName: "properties.timeCreated", type: { - name: "DateTime" - } + name: "DateTime", + }, }, sourceRestorePoint: { serializedName: "properties.sourceRestorePoint", type: { name: "Composite", - className: "ApiEntityReference" - } + className: "ApiEntityReference", + }, }, instanceView: { serializedName: "properties.instanceView", type: { - name: "Composite", - className: "RestorePointInstanceView" - } - } - } - } -}; - -export const CapacityReservationInstanceViewWithName: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityReservationInstanceViewWithName", - modelProperties: { - ...CapacityReservationInstanceView.type.modelProperties, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; + name: "Composite", + className: "RestorePointInstanceView", + }, + }, + }, + }, +}; + +export const CapacityReservationInstanceViewWithName: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CapacityReservationInstanceViewWithName", + modelProperties: { + ...CapacityReservationInstanceView.type.modelProperties, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const RequestRateByIntervalInput: coreClient.CompositeMapper = { type: { @@ -16038,11 +16768,11 @@ export const RequestRateByIntervalInput: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["ThreeMins", "FiveMins", "ThirtyMins", "SixtyMins"] - } - } - } - } + allowedValues: ["ThreeMins", "FiveMins", "ThirtyMins", "SixtyMins"], + }, + }, + }, + }, }; export const ThrottledRequestsInput: coreClient.CompositeMapper = { @@ -16050,9 +16780,9 @@ export const ThrottledRequestsInput: coreClient.CompositeMapper = { name: "Composite", className: "ThrottledRequestsInput", modelProperties: { - ...LogAnalyticsInputBase.type.modelProperties - } - } + ...LogAnalyticsInputBase.type.modelProperties, + }, + }, }; export const RunCommandDocument: coreClient.CompositeMapper = { @@ -16068,10 +16798,10 @@ export const RunCommandDocument: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, parameters: { serializedName: "parameters", @@ -16080,13 +16810,13 @@ export const RunCommandDocument: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandParameterDefinition" - } - } - } - } - } - } + className: "RunCommandParameterDefinition", + }, + }, + }, + }, + }, + }, }; export const DiskRestorePoint: coreClient.CompositeMapper = { @@ -16099,118 +16829,118 @@ export const DiskRestorePoint: coreClient.CompositeMapper = { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, sourceResourceId: { serializedName: "properties.sourceResourceId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, osType: { serializedName: "properties.osType", readOnly: true, type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "PurchasePlanAutoGenerated" - } + className: "PurchasePlanAutoGenerated", + }, }, supportedCapabilities: { serializedName: "properties.supportedCapabilities", type: { name: "Composite", - className: "SupportedCapabilities" - } + className: "SupportedCapabilities", + }, }, familyId: { serializedName: "properties.familyId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sourceUniqueId: { serializedName: "properties.sourceUniqueId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "Encryption" - } + className: "Encryption", + }, }, supportsHibernation: { serializedName: "properties.supportsHibernation", type: { - name: "Boolean" - } + name: "Boolean", + }, }, networkAccessPolicy: { serializedName: "properties.networkAccessPolicy", type: { - name: "String" - } + name: "String", + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, diskAccessId: { serializedName: "properties.diskAccessId", type: { - name: "String" - } + name: "String", + }, }, completionPercent: { serializedName: "properties.completionPercent", type: { - name: "Number" - } + name: "Number", + }, }, replicationState: { serializedName: "properties.replicationState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sourceResourceLocation: { serializedName: "properties.sourceResourceLocation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "DiskSecurityProfile" - } - } - } - } + className: "DiskSecurityProfile", + }, + }, + }, + }, }; export const GalleryUpdate: coreClient.CompositeMapper = { @@ -16222,46 +16952,46 @@ export const GalleryUpdate: coreClient.CompositeMapper = { description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, identifier: { serializedName: "properties.identifier", type: { name: "Composite", - className: "GalleryIdentifier" - } + className: "GalleryIdentifier", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sharingProfile: { serializedName: "properties.sharingProfile", type: { name: "Composite", - className: "SharingProfile" - } + className: "SharingProfile", + }, }, softDeletePolicy: { serializedName: "properties.softDeletePolicy", type: { name: "Composite", - className: "SoftDeletePolicy" - } + className: "SoftDeletePolicy", + }, }, sharingStatus: { serializedName: "properties.sharingStatus", type: { name: "Composite", - className: "SharingStatus" - } - } - } - } + className: "SharingStatus", + }, + }, + }, + }, }; export const GalleryImageUpdate: coreClient.CompositeMapper = { @@ -16273,87 +17003,87 @@ export const GalleryImageUpdate: coreClient.CompositeMapper = { description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "properties.eula", type: { - name: "String" - } + name: "String", + }, }, privacyStatementUri: { serializedName: "properties.privacyStatementUri", type: { - name: "String" - } + name: "String", + }, }, releaseNoteUri: { serializedName: "properties.releaseNoteUri", type: { - name: "String" - } + name: "String", + }, }, osType: { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, osState: { serializedName: "properties.osState", type: { name: "Enum", - allowedValues: ["Generalized", "Specialized"] - } + allowedValues: ["Generalized", "Specialized"], + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, identifier: { serializedName: "properties.identifier", type: { name: "Composite", - className: "GalleryImageIdentifier" - } + className: "GalleryImageIdentifier", + }, }, recommended: { serializedName: "properties.recommended", type: { name: "Composite", - className: "RecommendedMachineConfiguration" - } + className: "RecommendedMachineConfiguration", + }, }, disallowed: { serializedName: "properties.disallowed", type: { name: "Composite", - className: "Disallowed" - } + className: "Disallowed", + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "ImagePurchasePlan" - } + className: "ImagePurchasePlan", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, features: { serializedName: "properties.features", @@ -16362,19 +17092,19 @@ export const GalleryImageUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryImageFeature" - } - } - } + className: "GalleryImageFeature", + }, + }, + }, }, architecture: { serializedName: "properties.architecture", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryImageVersionUpdate: coreClient.CompositeMapper = { @@ -16387,39 +17117,46 @@ export const GalleryImageVersionUpdate: coreClient.CompositeMapper = { serializedName: "properties.publishingProfile", type: { name: "Composite", - className: "GalleryImageVersionPublishingProfile" - } + className: "GalleryImageVersionPublishingProfile", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "GalleryImageVersionStorageProfile" - } + className: "GalleryImageVersionStorageProfile", + }, }, safetyProfile: { serializedName: "properties.safetyProfile", type: { name: "Composite", - className: "GalleryImageVersionSafetyProfile" - } + className: "GalleryImageVersionSafetyProfile", + }, }, replicationStatus: { serializedName: "properties.replicationStatus", type: { name: "Composite", - className: "ReplicationStatus" - } - } - } - } + className: "ReplicationStatus", + }, + }, + securityProfile: { + serializedName: "properties.securityProfile", + type: { + name: "Composite", + className: "ImageVersionSecurityProfile", + }, + }, + }, + }, }; export const GalleryApplicationUpdate: coreClient.CompositeMapper = { @@ -16431,39 +17168,39 @@ export const GalleryApplicationUpdate: coreClient.CompositeMapper = { description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "properties.eula", type: { - name: "String" - } + name: "String", + }, }, privacyStatementUri: { serializedName: "properties.privacyStatementUri", type: { - name: "String" - } + name: "String", + }, }, releaseNoteUri: { serializedName: "properties.releaseNoteUri", type: { - name: "String" - } + name: "String", + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, supportedOSType: { serializedName: "properties.supportedOSType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, customActions: { serializedName: "properties.customActions", @@ -16472,13 +17209,13 @@ export const GalleryApplicationUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryApplicationCustomAction" - } - } - } - } - } - } + className: "GalleryApplicationCustomAction", + }, + }, + }, + }, + }, + }, }; export const GalleryApplicationVersionUpdate: coreClient.CompositeMapper = { @@ -16491,99 +17228,101 @@ export const GalleryApplicationVersionUpdate: coreClient.CompositeMapper = { serializedName: "properties.publishingProfile", type: { name: "Composite", - className: "GalleryApplicationVersionPublishingProfile" - } + className: "GalleryApplicationVersionPublishingProfile", + }, }, safetyProfile: { serializedName: "properties.safetyProfile", type: { name: "Composite", - className: "GalleryApplicationVersionSafetyProfile" - } + className: "GalleryApplicationVersionSafetyProfile", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, replicationStatus: { serializedName: "properties.replicationStatus", type: { name: "Composite", - className: "ReplicationStatus" - } - } - } - } -}; - -export const GalleryImageVersionPublishingProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryImageVersionPublishingProfile", - modelProperties: { - ...GalleryArtifactPublishingProfileBase.type.modelProperties - } - } -}; - -export const GalleryApplicationVersionPublishingProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryApplicationVersionPublishingProfile", - modelProperties: { - ...GalleryArtifactPublishingProfileBase.type.modelProperties, - source: { - serializedName: "source", - type: { - name: "Composite", - className: "UserArtifactSource" - } - }, - manageActions: { - serializedName: "manageActions", - type: { - name: "Composite", - className: "UserArtifactManage" - } - }, - settings: { - serializedName: "settings", - type: { - name: "Composite", - className: "UserArtifactSettings" - } - }, - advancedSettings: { - serializedName: "advancedSettings", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + className: "ReplicationStatus", + }, }, - enableHealthCheck: { - serializedName: "enableHealthCheck", - type: { - name: "Boolean" - } + }, + }, +}; + +export const GalleryImageVersionPublishingProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "GalleryImageVersionPublishingProfile", + modelProperties: { + ...GalleryArtifactPublishingProfileBase.type.modelProperties, + }, + }, + }; + +export const GalleryApplicationVersionPublishingProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "GalleryApplicationVersionPublishingProfile", + modelProperties: { + ...GalleryArtifactPublishingProfileBase.type.modelProperties, + source: { + serializedName: "source", + type: { + name: "Composite", + className: "UserArtifactSource", + }, + }, + manageActions: { + serializedName: "manageActions", + type: { + name: "Composite", + className: "UserArtifactManage", + }, + }, + settings: { + serializedName: "settings", + type: { + name: "Composite", + className: "UserArtifactSettings", + }, + }, + advancedSettings: { + serializedName: "advancedSettings", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + enableHealthCheck: { + serializedName: "enableHealthCheck", + type: { + name: "Boolean", + }, + }, + customActions: { + serializedName: "customActions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryApplicationCustomAction", + }, + }, + }, + }, }, - customActions: { - serializedName: "customActions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GalleryApplicationCustomAction" - } - } - } - } - } - } -}; + }, + }; export const OSDiskImageEncryption: coreClient.CompositeMapper = { type: { @@ -16595,11 +17334,11 @@ export const OSDiskImageEncryption: coreClient.CompositeMapper = { serializedName: "securityProfile", type: { name: "Composite", - className: "OSDiskImageSecurityProfile" - } - } - } - } + className: "OSDiskImageSecurityProfile", + }, + }, + }, + }, }; export const DataDiskImageEncryption: coreClient.CompositeMapper = { @@ -16612,11 +17351,11 @@ export const DataDiskImageEncryption: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const GalleryArtifactVersionFullSource: coreClient.CompositeMapper = { @@ -16628,11 +17367,17 @@ export const GalleryArtifactVersionFullSource: coreClient.CompositeMapper = { communityGalleryImageId: { serializedName: "communityGalleryImageId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + virtualMachineId: { + serializedName: "virtualMachineId", + type: { + name: "String", + }, + }, + }, + }, }; export const GalleryDiskImageSource: coreClient.CompositeMapper = { @@ -16644,17 +17389,17 @@ export const GalleryDiskImageSource: coreClient.CompositeMapper = { uri: { serializedName: "uri", type: { - name: "String" - } + name: "String", + }, }, storageAccountId: { serializedName: "storageAccountId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryOSDiskImage: coreClient.CompositeMapper = { @@ -16662,9 +17407,9 @@ export const GalleryOSDiskImage: coreClient.CompositeMapper = { name: "Composite", className: "GalleryOSDiskImage", modelProperties: { - ...GalleryDiskImage.type.modelProperties - } - } + ...GalleryDiskImage.type.modelProperties, + }, + }, }; export const GalleryDataDiskImage: coreClient.CompositeMapper = { @@ -16677,11 +17422,11 @@ export const GalleryDataDiskImage: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const GalleryImageVersionSafetyProfile: coreClient.CompositeMapper = { @@ -16694,8 +17439,8 @@ export const GalleryImageVersionSafetyProfile: coreClient.CompositeMapper = { serializedName: "reportedForPolicyViolation", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, policyViolations: { serializedName: "policyViolations", @@ -16705,24 +17450,25 @@ export const GalleryImageVersionSafetyProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PolicyViolation" - } - } - } - } - } - } + className: "PolicyViolation", + }, + }, + }, + }, + }, + }, }; -export const GalleryApplicationVersionSafetyProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryApplicationVersionSafetyProfile", - modelProperties: { - ...GalleryArtifactSafetyProfileBase.type.modelProperties - } - } -}; +export const GalleryApplicationVersionSafetyProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "GalleryApplicationVersionSafetyProfile", + modelProperties: { + ...GalleryArtifactSafetyProfileBase.type.modelProperties, + }, + }, + }; export const PirSharedGalleryResource: coreClient.CompositeMapper = { type: { @@ -16733,11 +17479,11 @@ export const PirSharedGalleryResource: coreClient.CompositeMapper = { uniqueId: { serializedName: "identifier.uniqueId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SharedGalleryOSDiskImage: coreClient.CompositeMapper = { @@ -16745,9 +17491,9 @@ export const SharedGalleryOSDiskImage: coreClient.CompositeMapper = { name: "Composite", className: "SharedGalleryOSDiskImage", modelProperties: { - ...SharedGalleryDiskImage.type.modelProperties - } - } + ...SharedGalleryDiskImage.type.modelProperties, + }, + }, }; export const SharedGalleryDataDiskImage: coreClient.CompositeMapper = { @@ -16760,11 +17506,11 @@ export const SharedGalleryDataDiskImage: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const CommunityGallery: coreClient.CompositeMapper = { @@ -16772,9 +17518,29 @@ 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", + }, + }, + }, + }, }; export const CommunityGalleryImage: coreClient.CompositeMapper = { @@ -16787,48 +17553,48 @@ export const CommunityGalleryImage: coreClient.CompositeMapper = { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, osState: { serializedName: "properties.osState", type: { name: "Enum", - allowedValues: ["Generalized", "Specialized"] - } + allowedValues: ["Generalized", "Specialized"], + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, identifier: { serializedName: "properties.identifier", type: { name: "Composite", - className: "CommunityGalleryImageIdentifier" - } + className: "CommunityGalleryImageIdentifier", + }, }, recommended: { serializedName: "properties.recommended", type: { name: "Composite", - className: "RecommendedMachineConfiguration" - } + className: "RecommendedMachineConfiguration", + }, }, disallowed: { serializedName: "properties.disallowed", type: { name: "Composite", - className: "Disallowed" - } + className: "Disallowed", + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, features: { serializedName: "properties.features", @@ -16837,38 +17603,51 @@ export const CommunityGalleryImage: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryImageFeature" - } - } - } + className: "GalleryImageFeature", + }, + }, + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "ImagePurchasePlan" - } + className: "ImagePurchasePlan", + }, }, architecture: { serializedName: "properties.architecture", type: { - name: "String" - } + name: "String", + }, }, privacyStatementUri: { serializedName: "properties.privacyStatementUri", type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "properties.eula", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + disclaimer: { + serializedName: "properties.disclaimer", + type: { + name: "String", + }, + }, + artifactTags: { + serializedName: "properties.artifactTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const CommunityGalleryImageVersion: coreClient.CompositeMapper = { @@ -16880,30 +17659,43 @@ export const CommunityGalleryImageVersion: coreClient.CompositeMapper = { publishedDate: { serializedName: "properties.publishedDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, excludeFromLatest: { serializedName: "properties.excludeFromLatest", type: { - name: "Boolean" - } + name: "Boolean", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "SharedGalleryImageVersionStorageProfile" - } - } - } - } + className: "SharedGalleryImageVersionStorageProfile", + }, + }, + disclaimer: { + serializedName: "properties.disclaimer", + type: { + name: "String", + }, + }, + artifactTags: { + serializedName: "properties.artifactTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const VirtualMachineImage: coreClient.CompositeMapper = { @@ -16916,15 +17708,15 @@ export const VirtualMachineImage: coreClient.CompositeMapper = { serializedName: "properties.plan", type: { name: "Composite", - className: "PurchasePlan" - } + className: "PurchasePlan", + }, }, osDiskImage: { serializedName: "properties.osDiskImage", type: { name: "Composite", - className: "OSDiskImage" - } + className: "OSDiskImage", + }, }, dataDiskImages: { serializedName: "properties.dataDiskImages", @@ -16933,30 +17725,30 @@ export const VirtualMachineImage: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataDiskImage" - } - } - } + className: "DataDiskImage", + }, + }, + }, }, automaticOSUpgradeProperties: { serializedName: "properties.automaticOSUpgradeProperties", type: { name: "Composite", - className: "AutomaticOSUpgradeProperties" - } + className: "AutomaticOSUpgradeProperties", + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, disallowed: { serializedName: "properties.disallowed", type: { name: "Composite", - className: "DisallowedConfiguration" - } + className: "DisallowedConfiguration", + }, }, features: { serializedName: "properties.features", @@ -16965,57 +17757,66 @@ export const VirtualMachineImage: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineImageFeature" - } - } - } + className: "VirtualMachineImageFeature", + }, + }, + }, }, architecture: { serializedName: "properties.architecture", type: { - name: "String" - } + name: "String", + }, }, imageDeprecationStatus: { serializedName: "properties.imageDeprecationStatus", type: { name: "Composite", - className: "ImageDeprecationStatus" - } - } - } - } -}; - -export const VirtualMachineScaleSetReimageParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetReimageParameters", - modelProperties: { - ...VirtualMachineScaleSetVMReimageParameters.type.modelProperties, - instanceIds: { - serializedName: "instanceIds", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; + className: "ImageDeprecationStatus", + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetReimageParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetReimageParameters", + modelProperties: { + ...VirtualMachineScaleSetVMReimageParameters.type.modelProperties, + instanceIds: { + serializedName: "instanceIds", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; export const SharedGallery: coreClient.CompositeMapper = { type: { name: "Composite", className: "SharedGallery", modelProperties: { - ...PirSharedGalleryResource.type.modelProperties - } - } + ...PirSharedGalleryResource.type.modelProperties, + artifactTags: { + serializedName: "properties.artifactTags", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const SharedGalleryImage: coreClient.CompositeMapper = { @@ -17028,48 +17829,48 @@ export const SharedGalleryImage: coreClient.CompositeMapper = { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, osState: { serializedName: "properties.osState", type: { name: "Enum", - allowedValues: ["Generalized", "Specialized"] - } + allowedValues: ["Generalized", "Specialized"], + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, identifier: { serializedName: "properties.identifier", type: { name: "Composite", - className: "GalleryImageIdentifier" - } + className: "GalleryImageIdentifier", + }, }, recommended: { serializedName: "properties.recommended", type: { name: "Composite", - className: "RecommendedMachineConfiguration" - } + className: "RecommendedMachineConfiguration", + }, }, disallowed: { serializedName: "properties.disallowed", type: { name: "Composite", - className: "Disallowed" - } + className: "Disallowed", + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, features: { serializedName: "properties.features", @@ -17078,38 +17879,45 @@ export const SharedGalleryImage: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryImageFeature" - } - } - } + className: "GalleryImageFeature", + }, + }, + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "ImagePurchasePlan" - } + className: "ImagePurchasePlan", + }, }, architecture: { serializedName: "properties.architecture", type: { - name: "String" - } + name: "String", + }, }, privacyStatementUri: { serializedName: "properties.privacyStatementUri", type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "properties.eula", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + artifactTags: { + serializedName: "properties.artifactTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const SharedGalleryImageVersion: coreClient.CompositeMapper = { @@ -17121,43 +17929,130 @@ export const SharedGalleryImageVersion: coreClient.CompositeMapper = { publishedDate: { serializedName: "properties.publishedDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, excludeFromLatest: { serializedName: "properties.excludeFromLatest", type: { - name: "Boolean" - } + name: "Boolean", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "SharedGalleryImageVersionStorageProfile" - } - } - } - } -}; + className: "SharedGalleryImageVersionStorageProfile", + }, + }, + artifactTags: { + serializedName: "properties.artifactTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetsReapplyHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetsReapplyHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +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 VirtualMachineScaleSetsReapplyHeaders: coreClient.CompositeMapper = { +export const DedicatedHostsRedeployHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetsReapplyHeaders", + className: "DedicatedHostsRedeployHeaders", modelProperties: { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index 912183585781..69e2c02e9452 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { VirtualMachineScaleSet as VirtualMachineScaleSetMapper, @@ -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, @@ -80,7 +82,7 @@ import { CloudService as CloudServiceMapper, CloudServiceUpdate as CloudServiceUpdateMapper, RoleInstances as RoleInstancesMapper, - UpdateDomain as UpdateDomainMapper + UpdateDomain as UpdateDomainMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -90,9 +92,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -101,36 +103,36 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-07-01", + defaultValue: "2024-03-01", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const location: OperationURLParameter = { parameterPath: "location", mapper: { constraints: { - Pattern: new RegExp("^[-\\w\\._]+$") + Pattern: new RegExp("^[-\\w\\._]+$"), }, serializedName: "location", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { @@ -139,9 +141,9 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -150,10 +152,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const contentType: OperationParameter = { @@ -163,14 +165,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineScaleSetMapper + mapper: VirtualMachineScaleSetMapper, }; export const resourceGroupName: OperationURLParameter = { @@ -179,9 +181,9 @@ export const resourceGroupName: OperationURLParameter = { serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const vmScaleSetName: OperationURLParameter = { @@ -190,14 +192,34 @@ export const vmScaleSetName: OperationURLParameter = { serializedName: "vmScaleSetName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +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 + mapper: VirtualMachineScaleSetUpdateMapper, }; export const forceDeletion: OperationQueryParameter = { @@ -205,9 +227,9 @@ export const forceDeletion: OperationQueryParameter = { mapper: { serializedName: "forceDeletion", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const expand: OperationQueryParameter = { @@ -215,14 +237,14 @@ export const expand: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const vmInstanceIDs: OperationParameter = { parameterPath: ["options", "vmInstanceIDs"], - mapper: VirtualMachineScaleSetVMInstanceIDsMapper + mapper: VirtualMachineScaleSetVMInstanceIDsMapper, }; export const hibernate: OperationQueryParameter = { @@ -230,14 +252,14 @@ export const hibernate: OperationQueryParameter = { mapper: { serializedName: "hibernate", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const vmInstanceIDs1: OperationParameter = { parameterPath: "vmInstanceIDs", - mapper: VirtualMachineScaleSetVMInstanceRequiredIDsMapper + mapper: VirtualMachineScaleSetVMInstanceRequiredIDsMapper, }; export const skipShutdown: OperationQueryParameter = { @@ -246,14 +268,14 @@ export const skipShutdown: OperationQueryParameter = { defaultValue: false, serializedName: "skipShutdown", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const vmScaleSetReimageInput: OperationParameter = { parameterPath: ["options", "vmScaleSetReimageInput"], - mapper: VirtualMachineScaleSetReimageParametersMapper + mapper: VirtualMachineScaleSetReimageParametersMapper, }; export const platformUpdateDomain: OperationQueryParameter = { @@ -262,9 +284,9 @@ export const platformUpdateDomain: OperationQueryParameter = { serializedName: "platformUpdateDomain", required: true, type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const zone: OperationQueryParameter = { @@ -272,9 +294,9 @@ export const zone: OperationQueryParameter = { mapper: { serializedName: "zone", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const placementGroupId: OperationQueryParameter = { @@ -282,24 +304,24 @@ export const placementGroupId: OperationQueryParameter = { mapper: { serializedName: "placementGroupId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: VMScaleSetConvertToSinglePlacementGroupInputMapper + mapper: VMScaleSetConvertToSinglePlacementGroupInputMapper, }; export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: OrchestrationServiceStateInputMapper + mapper: OrchestrationServiceStateInputMapper, }; export const extensionParameters: OperationParameter = { parameterPath: "extensionParameters", - mapper: VirtualMachineScaleSetExtensionMapper + mapper: VirtualMachineScaleSetExtensionMapper, }; export const vmssExtensionName: OperationURLParameter = { @@ -308,14 +330,14 @@ export const vmssExtensionName: OperationURLParameter = { serializedName: "vmssExtensionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const extensionParameters1: OperationParameter = { parameterPath: "extensionParameters", - mapper: VirtualMachineScaleSetExtensionUpdateMapper + mapper: VirtualMachineScaleSetExtensionUpdateMapper, }; export const expand1: OperationQueryParameter = { @@ -323,14 +345,14 @@ export const expand1: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const extensionParameters2: OperationParameter = { parameterPath: "extensionParameters", - mapper: VirtualMachineScaleSetVMExtensionMapper + mapper: VirtualMachineScaleSetVMExtensionMapper, }; export const instanceId: OperationURLParameter = { @@ -339,9 +361,9 @@ export const instanceId: OperationURLParameter = { serializedName: "instanceId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const vmExtensionName: OperationURLParameter = { @@ -350,24 +372,24 @@ export const vmExtensionName: OperationURLParameter = { serializedName: "vmExtensionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const extensionParameters3: OperationParameter = { parameterPath: "extensionParameters", - mapper: VirtualMachineScaleSetVMExtensionUpdateMapper + mapper: VirtualMachineScaleSetVMExtensionUpdateMapper, }; export const vmScaleSetVMReimageInput: OperationParameter = { parameterPath: ["options", "vmScaleSetVMReimageInput"], - mapper: VirtualMachineScaleSetVMReimageParametersMapper + mapper: VirtualMachineScaleSetVMReimageParametersMapper, }; export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineScaleSetVMMapper + mapper: VirtualMachineScaleSetVMMapper, }; export const expand2: OperationQueryParameter = { @@ -376,9 +398,9 @@ export const expand2: OperationQueryParameter = { serializedName: "$expand", type: { name: "Enum", - allowedValues: ["instanceView", "userData"] - } - } + allowedValues: ["instanceView", "userData"], + }, + }, }; export const virtualMachineScaleSetName: OperationURLParameter = { @@ -387,9 +409,9 @@ export const virtualMachineScaleSetName: OperationURLParameter = { serializedName: "virtualMachineScaleSetName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const filter: OperationQueryParameter = { @@ -397,9 +419,9 @@ export const filter: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const select: OperationQueryParameter = { @@ -407,9 +429,9 @@ export const select: OperationQueryParameter = { mapper: { serializedName: "$select", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const sasUriExpirationTimeInMinutes: OperationQueryParameter = { @@ -417,14 +439,19 @@ export const sasUriExpirationTimeInMinutes: OperationQueryParameter = { mapper: { serializedName: "sasUriExpirationTimeInMinutes", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: RunCommandInputMapper + mapper: AttachDetachDataDisksRequestMapper, +}; + +export const parameters6: OperationParameter = { + parameterPath: "parameters", + mapper: RunCommandInputMapper, }; export const accept1: OperationParameter = { @@ -434,14 +461,14 @@ export const accept1: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const extensionParameters4: OperationParameter = { parameterPath: "extensionParameters", - mapper: VirtualMachineExtensionMapper + mapper: VirtualMachineExtensionMapper, }; export const vmName: OperationURLParameter = { @@ -450,29 +477,29 @@ export const vmName: OperationURLParameter = { serializedName: "vmName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const extensionParameters5: OperationParameter = { parameterPath: "extensionParameters", - mapper: VirtualMachineExtensionUpdateMapper + mapper: VirtualMachineExtensionUpdateMapper, }; -export const parameters6: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineCaptureParametersMapper + mapper: VirtualMachineCaptureParametersMapper, }; -export const parameters7: OperationParameter = { +export const parameters8: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineMapper + mapper: VirtualMachineMapper, }; -export const parameters8: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineUpdateMapper + mapper: VirtualMachineUpdateMapper, }; export const expand3: OperationQueryParameter = { @@ -480,9 +507,9 @@ export const expand3: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const statusOnly: OperationQueryParameter = { @@ -490,9 +517,9 @@ export const statusOnly: OperationQueryParameter = { mapper: { serializedName: "statusOnly", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expand4: OperationQueryParameter = { @@ -500,19 +527,19 @@ export const expand4: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters9: OperationParameter = { +export const parameters10: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: VirtualMachineReimageParametersMapper + mapper: VirtualMachineReimageParametersMapper, }; export const installPatchesInput: OperationParameter = { parameterPath: "installPatchesInput", - mapper: VirtualMachineInstallPatchesParametersMapper + mapper: VirtualMachineInstallPatchesParametersMapper, }; export const location1: OperationURLParameter = { @@ -521,9 +548,9 @@ export const location1: OperationURLParameter = { serializedName: "location", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const publisherName: OperationURLParameter = { @@ -532,9 +559,9 @@ export const publisherName: OperationURLParameter = { serializedName: "publisherName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const offer: OperationURLParameter = { @@ -543,9 +570,9 @@ export const offer: OperationURLParameter = { serializedName: "offer", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const skus: OperationURLParameter = { @@ -554,9 +581,9 @@ export const skus: OperationURLParameter = { serializedName: "skus", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const version: OperationURLParameter = { @@ -565,9 +592,9 @@ export const version: OperationURLParameter = { serializedName: "version", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const top: OperationQueryParameter = { @@ -575,9 +602,9 @@ export const top: OperationQueryParameter = { mapper: { serializedName: "$top", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const orderby: OperationQueryParameter = { @@ -585,9 +612,9 @@ export const orderby: OperationQueryParameter = { mapper: { serializedName: "$orderby", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const edgeZone: OperationURLParameter = { @@ -596,9 +623,9 @@ export const edgeZone: OperationURLParameter = { serializedName: "edgeZone", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const typeParam: OperationURLParameter = { @@ -607,14 +634,14 @@ export const typeParam: OperationURLParameter = { serializedName: "type", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters10: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", - mapper: AvailabilitySetMapper + mapper: AvailabilitySetMapper, }; export const availabilitySetName: OperationURLParameter = { @@ -623,19 +650,19 @@ export const availabilitySetName: OperationURLParameter = { serializedName: "availabilitySetName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters11: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", - mapper: AvailabilitySetUpdateMapper + mapper: AvailabilitySetUpdateMapper, }; -export const parameters12: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", - mapper: ProximityPlacementGroupMapper + mapper: ProximityPlacementGroupMapper, }; export const proximityPlacementGroupName: OperationURLParameter = { @@ -644,14 +671,14 @@ export const proximityPlacementGroupName: OperationURLParameter = { serializedName: "proximityPlacementGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters13: OperationParameter = { +export const parameters14: OperationParameter = { parameterPath: "parameters", - mapper: ProximityPlacementGroupUpdateMapper + mapper: ProximityPlacementGroupUpdateMapper, }; export const includeColocationStatus: OperationQueryParameter = { @@ -659,14 +686,14 @@ export const includeColocationStatus: OperationQueryParameter = { mapper: { serializedName: "includeColocationStatus", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters14: OperationParameter = { +export const parameters15: OperationParameter = { parameterPath: "parameters", - mapper: DedicatedHostGroupMapper + mapper: DedicatedHostGroupMapper, }; export const hostGroupName: OperationURLParameter = { @@ -675,19 +702,19 @@ export const hostGroupName: OperationURLParameter = { serializedName: "hostGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters15: OperationParameter = { +export const parameters16: OperationParameter = { parameterPath: "parameters", - mapper: DedicatedHostGroupUpdateMapper + mapper: DedicatedHostGroupUpdateMapper, }; -export const parameters16: OperationParameter = { +export const parameters17: OperationParameter = { parameterPath: "parameters", - mapper: DedicatedHostMapper + mapper: DedicatedHostMapper, }; export const hostName: OperationURLParameter = { @@ -696,47 +723,47 @@ export const hostName: OperationURLParameter = { serializedName: "hostName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters17: OperationParameter = { +export const parameters18: OperationParameter = { parameterPath: "parameters", - mapper: DedicatedHostUpdateMapper + mapper: DedicatedHostUpdateMapper, }; export const hostGroupName1: OperationURLParameter = { parameterPath: "hostGroupName", mapper: { constraints: { - Pattern: new RegExp("^[-\\w\\._]+$") + Pattern: new RegExp("^[-\\w\\._]+$"), }, serializedName: "hostGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const hostName1: OperationURLParameter = { parameterPath: "hostName", mapper: { constraints: { - Pattern: new RegExp("^[-\\w\\._]+$") + Pattern: new RegExp("^[-\\w\\._]+$"), }, serializedName: "hostName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters18: OperationParameter = { +export const parameters19: OperationParameter = { parameterPath: "parameters", - mapper: SshPublicKeyResourceMapper + mapper: SshPublicKeyResourceMapper, }; export const sshPublicKeyName: OperationURLParameter = { @@ -745,19 +772,24 @@ export const sshPublicKeyName: OperationURLParameter = { serializedName: "sshPublicKeyName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters19: OperationParameter = { +export const parameters20: OperationParameter = { parameterPath: "parameters", - mapper: SshPublicKeyUpdateResourceMapper + mapper: SshPublicKeyUpdateResourceMapper, }; -export const parameters20: OperationParameter = { +export const parameters21: OperationParameter = { + parameterPath: ["options", "parameters"], + mapper: SshGenerateKeyPairInputParametersMapper, +}; + +export const parameters22: OperationParameter = { parameterPath: "parameters", - mapper: ImageMapper + mapper: ImageMapper, }; export const imageName: OperationURLParameter = { @@ -766,19 +798,19 @@ export const imageName: OperationURLParameter = { serializedName: "imageName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters21: OperationParameter = { +export const parameters23: OperationParameter = { parameterPath: "parameters", - mapper: ImageUpdateMapper + mapper: ImageUpdateMapper, }; -export const parameters22: OperationParameter = { +export const parameters24: OperationParameter = { parameterPath: "parameters", - mapper: RestorePointCollectionMapper + mapper: RestorePointCollectionMapper, }; export const restorePointCollectionName: OperationURLParameter = { @@ -787,14 +819,14 @@ export const restorePointCollectionName: OperationURLParameter = { serializedName: "restorePointCollectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters23: OperationParameter = { +export const parameters25: OperationParameter = { parameterPath: "parameters", - mapper: RestorePointCollectionUpdateMapper + mapper: RestorePointCollectionUpdateMapper, }; export const expand5: OperationQueryParameter = { @@ -802,14 +834,14 @@ export const expand5: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters24: OperationParameter = { +export const parameters26: OperationParameter = { parameterPath: "parameters", - mapper: RestorePointMapper + mapper: RestorePointMapper, }; export const restorePointName: OperationURLParameter = { @@ -818,9 +850,9 @@ export const restorePointName: OperationURLParameter = { serializedName: "restorePointName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expand6: OperationQueryParameter = { @@ -828,14 +860,14 @@ export const expand6: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters25: OperationParameter = { +export const parameters27: OperationParameter = { parameterPath: "parameters", - mapper: CapacityReservationGroupMapper + mapper: CapacityReservationGroupMapper, }; export const capacityReservationGroupName: OperationURLParameter = { @@ -844,14 +876,14 @@ export const capacityReservationGroupName: OperationURLParameter = { serializedName: "capacityReservationGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters26: OperationParameter = { +export const parameters28: OperationParameter = { parameterPath: "parameters", - mapper: CapacityReservationGroupUpdateMapper + mapper: CapacityReservationGroupUpdateMapper, }; export const expand7: OperationQueryParameter = { @@ -859,9 +891,9 @@ export const expand7: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expand8: OperationQueryParameter = { @@ -869,14 +901,24 @@ export const expand8: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const resourceIdsOnly: OperationQueryParameter = { + parameterPath: ["options", "resourceIdsOnly"], + mapper: { + serializedName: "resourceIdsOnly", + type: { + name: "String", + }, + }, }; -export const parameters27: OperationParameter = { +export const parameters29: OperationParameter = { parameterPath: "parameters", - mapper: CapacityReservationMapper + mapper: CapacityReservationMapper, }; export const capacityReservationName: OperationURLParameter = { @@ -885,14 +927,14 @@ export const capacityReservationName: OperationURLParameter = { serializedName: "capacityReservationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters28: OperationParameter = { +export const parameters30: OperationParameter = { parameterPath: "parameters", - mapper: CapacityReservationUpdateMapper + mapper: CapacityReservationUpdateMapper, }; export const expand9: OperationQueryParameter = { @@ -900,19 +942,19 @@ export const expand9: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters29: OperationParameter = { +export const parameters31: OperationParameter = { parameterPath: "parameters", - mapper: RequestRateByIntervalInputMapper + mapper: RequestRateByIntervalInputMapper, }; -export const parameters30: OperationParameter = { +export const parameters32: OperationParameter = { parameterPath: "parameters", - mapper: ThrottledRequestsInputMapper + mapper: ThrottledRequestsInputMapper, }; export const commandId: OperationURLParameter = { @@ -921,14 +963,14 @@ export const commandId: OperationURLParameter = { serializedName: "commandId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const runCommand: OperationParameter = { parameterPath: "runCommand", - mapper: VirtualMachineRunCommandMapper + mapper: VirtualMachineRunCommandMapper, }; export const runCommandName: OperationURLParameter = { @@ -937,19 +979,19 @@ export const runCommandName: OperationURLParameter = { serializedName: "runCommandName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const runCommand1: OperationParameter = { parameterPath: "runCommand", - mapper: VirtualMachineRunCommandUpdateMapper + mapper: VirtualMachineRunCommandUpdateMapper, }; export const disk: OperationParameter = { parameterPath: "disk", - mapper: DiskMapper + mapper: DiskMapper, }; export const diskName: OperationURLParameter = { @@ -958,36 +1000,36 @@ export const diskName: OperationURLParameter = { serializedName: "diskName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion1: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-04-02", + defaultValue: "2023-10-02", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const disk1: OperationParameter = { parameterPath: "disk", - mapper: DiskUpdateMapper + mapper: DiskUpdateMapper, }; export const grantAccessData: OperationParameter = { parameterPath: "grantAccessData", - mapper: GrantAccessDataMapper + mapper: GrantAccessDataMapper, }; export const diskAccess: OperationParameter = { parameterPath: "diskAccess", - mapper: DiskAccessMapper + mapper: DiskAccessMapper, }; export const diskAccessName: OperationURLParameter = { @@ -996,19 +1038,19 @@ export const diskAccessName: OperationURLParameter = { serializedName: "diskAccessName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const diskAccess1: OperationParameter = { parameterPath: "diskAccess", - mapper: DiskAccessUpdateMapper + mapper: DiskAccessUpdateMapper, }; export const privateEndpointConnection: OperationParameter = { parameterPath: "privateEndpointConnection", - mapper: PrivateEndpointConnectionMapper + mapper: PrivateEndpointConnectionMapper, }; export const privateEndpointConnectionName: OperationURLParameter = { @@ -1017,14 +1059,14 @@ export const privateEndpointConnectionName: OperationURLParameter = { serializedName: "privateEndpointConnectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const diskEncryptionSet: OperationParameter = { parameterPath: "diskEncryptionSet", - mapper: DiskEncryptionSetMapper + mapper: DiskEncryptionSetMapper, }; export const diskEncryptionSetName: OperationURLParameter = { @@ -1033,14 +1075,14 @@ export const diskEncryptionSetName: OperationURLParameter = { serializedName: "diskEncryptionSetName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const diskEncryptionSet1: OperationParameter = { parameterPath: "diskEncryptionSet", - mapper: DiskEncryptionSetUpdateMapper + mapper: DiskEncryptionSetUpdateMapper, }; export const vmRestorePointName: OperationURLParameter = { @@ -1049,9 +1091,9 @@ export const vmRestorePointName: OperationURLParameter = { serializedName: "vmRestorePointName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const diskRestorePointName: OperationURLParameter = { @@ -1060,14 +1102,14 @@ export const diskRestorePointName: OperationURLParameter = { serializedName: "diskRestorePointName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const snapshot: OperationParameter = { parameterPath: "snapshot", - mapper: SnapshotMapper + mapper: SnapshotMapper, }; export const snapshotName: OperationURLParameter = { @@ -1076,14 +1118,14 @@ export const snapshotName: OperationURLParameter = { serializedName: "snapshotName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const snapshot1: OperationParameter = { parameterPath: "snapshot", - mapper: SnapshotUpdateMapper + mapper: SnapshotUpdateMapper, }; export const apiVersion2: OperationQueryParameter = { @@ -1093,9 +1135,9 @@ export const apiVersion2: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const includeExtendedLocations: OperationQueryParameter = { @@ -1103,14 +1145,14 @@ export const includeExtendedLocations: OperationQueryParameter = { mapper: { serializedName: "includeExtendedLocations", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const gallery: OperationParameter = { parameterPath: "gallery", - mapper: GalleryMapper + mapper: GalleryMapper, }; export const galleryName: OperationURLParameter = { @@ -1119,26 +1161,26 @@ export const galleryName: OperationURLParameter = { serializedName: "galleryName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion3: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-03-03", + defaultValue: "2023-07-03", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const gallery1: OperationParameter = { parameterPath: "gallery", - mapper: GalleryUpdateMapper + mapper: GalleryUpdateMapper, }; export const select1: OperationQueryParameter = { @@ -1146,9 +1188,9 @@ export const select1: OperationQueryParameter = { mapper: { serializedName: "$select", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expand10: OperationQueryParameter = { @@ -1156,14 +1198,14 @@ export const expand10: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryImage: OperationParameter = { parameterPath: "galleryImage", - mapper: GalleryImageMapper + mapper: GalleryImageMapper, }; export const galleryImageName: OperationURLParameter = { @@ -1172,19 +1214,19 @@ export const galleryImageName: OperationURLParameter = { serializedName: "galleryImageName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryImage1: OperationParameter = { parameterPath: "galleryImage", - mapper: GalleryImageUpdateMapper + mapper: GalleryImageUpdateMapper, }; export const galleryImageVersion: OperationParameter = { parameterPath: "galleryImageVersion", - mapper: GalleryImageVersionMapper + mapper: GalleryImageVersionMapper, }; export const galleryImageVersionName: OperationURLParameter = { @@ -1193,14 +1235,14 @@ export const galleryImageVersionName: OperationURLParameter = { serializedName: "galleryImageVersionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryImageVersion1: OperationParameter = { parameterPath: "galleryImageVersion", - mapper: GalleryImageVersionUpdateMapper + mapper: GalleryImageVersionUpdateMapper, }; export const expand11: OperationQueryParameter = { @@ -1208,14 +1250,14 @@ export const expand11: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryApplication: OperationParameter = { parameterPath: "galleryApplication", - mapper: GalleryApplicationMapper + mapper: GalleryApplicationMapper, }; export const galleryApplicationName: OperationURLParameter = { @@ -1224,19 +1266,19 @@ export const galleryApplicationName: OperationURLParameter = { serializedName: "galleryApplicationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryApplication1: OperationParameter = { parameterPath: "galleryApplication", - mapper: GalleryApplicationUpdateMapper + mapper: GalleryApplicationUpdateMapper, }; export const galleryApplicationVersion: OperationParameter = { parameterPath: "galleryApplicationVersion", - mapper: GalleryApplicationVersionMapper + mapper: GalleryApplicationVersionMapper, }; export const galleryApplicationVersionName: OperationURLParameter = { @@ -1245,19 +1287,19 @@ export const galleryApplicationVersionName: OperationURLParameter = { serializedName: "galleryApplicationVersionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryApplicationVersion1: OperationParameter = { parameterPath: "galleryApplicationVersion", - mapper: GalleryApplicationVersionUpdateMapper + mapper: GalleryApplicationVersionUpdateMapper, }; export const sharingUpdate: OperationParameter = { parameterPath: "sharingUpdate", - mapper: SharingUpdateMapper + mapper: SharingUpdateMapper, }; export const sharedTo: OperationQueryParameter = { @@ -1265,9 +1307,9 @@ export const sharedTo: OperationQueryParameter = { mapper: { serializedName: "sharedTo", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryUniqueName: OperationURLParameter = { @@ -1276,9 +1318,9 @@ export const galleryUniqueName: OperationURLParameter = { serializedName: "galleryUniqueName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const publicGalleryName: OperationURLParameter = { @@ -1287,9 +1329,9 @@ export const publicGalleryName: OperationURLParameter = { serializedName: "publicGalleryName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const roleInstanceName: OperationURLParameter = { @@ -1298,9 +1340,9 @@ export const roleInstanceName: OperationURLParameter = { serializedName: "roleInstanceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const cloudServiceName: OperationURLParameter = { @@ -1309,9 +1351,9 @@ export const cloudServiceName: OperationURLParameter = { serializedName: "cloudServiceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion4: OperationQueryParameter = { @@ -1321,9 +1363,9 @@ export const apiVersion4: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const accept2: OperationParameter = { @@ -1333,9 +1375,9 @@ export const accept2: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const roleName: OperationURLParameter = { @@ -1344,29 +1386,29 @@ export const roleName: OperationURLParameter = { serializedName: "roleName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters31: OperationParameter = { +export const parameters33: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: CloudServiceMapper + mapper: CloudServiceMapper, }; -export const parameters32: OperationParameter = { +export const parameters34: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: CloudServiceUpdateMapper + mapper: CloudServiceUpdateMapper, }; -export const parameters33: OperationParameter = { +export const parameters35: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: RoleInstancesMapper + mapper: RoleInstancesMapper, }; -export const parameters34: OperationParameter = { +export const parameters36: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: UpdateDomainMapper + mapper: UpdateDomainMapper, }; export const updateDomain: OperationURLParameter = { @@ -1375,9 +1417,9 @@ export const updateDomain: OperationURLParameter = { serializedName: "updateDomain", required: true, type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const osVersionName: OperationURLParameter = { @@ -1386,9 +1428,9 @@ export const osVersionName: OperationURLParameter = { serializedName: "osVersionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const osFamilyName: OperationURLParameter = { @@ -1397,7 +1439,7 @@ export const osFamilyName: OperationURLParameter = { serializedName: "osFamilyName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; diff --git a/sdk/compute/arm-compute/src/operations/availabilitySets.ts b/sdk/compute/arm-compute/src/operations/availabilitySets.ts index ea4f34024e99..ab0fadd50185 100644 --- a/sdk/compute/arm-compute/src/operations/availabilitySets.ts +++ b/sdk/compute/arm-compute/src/operations/availabilitySets.ts @@ -33,7 +33,7 @@ import { AvailabilitySetsGetOptionalParams, AvailabilitySetsGetResponse, AvailabilitySetsListBySubscriptionNextResponse, - AvailabilitySetsListNextResponse + AvailabilitySetsListNextResponse, } from "../models"; /// @@ -54,7 +54,7 @@ export class AvailabilitySetsImpl implements AvailabilitySets { * @param options The options parameters. */ public listBySubscription( - options?: AvailabilitySetsListBySubscriptionOptionalParams + options?: AvailabilitySetsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -69,13 +69,13 @@ export class AvailabilitySetsImpl implements AvailabilitySets { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: AvailabilitySetsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AvailabilitySetsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +96,7 @@ export class AvailabilitySetsImpl implements AvailabilitySets { } private async *listBySubscriptionPagingAll( - options?: AvailabilitySetsListBySubscriptionOptionalParams + options?: AvailabilitySetsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -110,7 +110,7 @@ export class AvailabilitySetsImpl implements AvailabilitySets { */ public list( resourceGroupName: string, - options?: AvailabilitySetsListOptionalParams + options?: AvailabilitySetsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -125,14 +125,14 @@ export class AvailabilitySetsImpl implements AvailabilitySets { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceGroupName, options, settings); - } + }, }; } private async *listPagingPage( resourceGroupName: string, options?: AvailabilitySetsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AvailabilitySetsListResponse; let continuationToken = settings?.continuationToken; @@ -147,7 +147,7 @@ export class AvailabilitySetsImpl implements AvailabilitySets { result = await this._listNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -158,7 +158,7 @@ export class AvailabilitySetsImpl implements AvailabilitySets { private async *listPagingAll( resourceGroupName: string, - options?: AvailabilitySetsListOptionalParams + options?: AvailabilitySetsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; @@ -175,12 +175,12 @@ export class AvailabilitySetsImpl implements AvailabilitySets { public listAvailableSizes( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsListAvailableSizesOptionalParams + options?: AvailabilitySetsListAvailableSizesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAvailableSizesPagingAll( resourceGroupName, availabilitySetName, - options + options, ); return { next() { @@ -197,9 +197,9 @@ export class AvailabilitySetsImpl implements AvailabilitySets { resourceGroupName, availabilitySetName, options, - settings + settings, ); - } + }, }; } @@ -207,13 +207,13 @@ export class AvailabilitySetsImpl implements AvailabilitySets { resourceGroupName: string, availabilitySetName: string, options?: AvailabilitySetsListAvailableSizesOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: AvailabilitySetsListAvailableSizesResponse; result = await this._listAvailableSizes( resourceGroupName, availabilitySetName, - options + options, ); yield result.value || []; } @@ -221,12 +221,12 @@ export class AvailabilitySetsImpl implements AvailabilitySets { private async *listAvailableSizesPagingAll( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsListAvailableSizesOptionalParams + options?: AvailabilitySetsListAvailableSizesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAvailableSizesPagingPage( resourceGroupName, availabilitySetName, - options + options, )) { yield* page; } @@ -243,11 +243,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { resourceGroupName: string, availabilitySetName: string, parameters: AvailabilitySet, - options?: AvailabilitySetsCreateOrUpdateOptionalParams + options?: AvailabilitySetsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, availabilitySetName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -262,11 +262,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { resourceGroupName: string, availabilitySetName: string, parameters: AvailabilitySetUpdate, - options?: AvailabilitySetsUpdateOptionalParams + options?: AvailabilitySetsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, availabilitySetName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -279,11 +279,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { delete( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsDeleteOptionalParams + options?: AvailabilitySetsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, availabilitySetName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -296,11 +296,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { get( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsGetOptionalParams + options?: AvailabilitySetsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, availabilitySetName, options }, - getOperationSpec + getOperationSpec, ); } @@ -309,11 +309,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { * @param options The options parameters. */ private _listBySubscription( - options?: AvailabilitySetsListBySubscriptionOptionalParams + options?: AvailabilitySetsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -324,11 +324,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { */ private _list( resourceGroupName: string, - options?: AvailabilitySetsListOptionalParams + options?: AvailabilitySetsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listOperationSpec + listOperationSpec, ); } @@ -342,11 +342,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { private _listAvailableSizes( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsListAvailableSizesOptionalParams + options?: AvailabilitySetsListAvailableSizesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, availabilitySetName, options }, - listAvailableSizesOperationSpec + listAvailableSizesOperationSpec, ); } @@ -357,11 +357,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { */ private _listBySubscriptionNext( nextLink: string, - options?: AvailabilitySetsListBySubscriptionNextOptionalParams + options?: AvailabilitySetsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -374,11 +374,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { private _listNext( resourceGroupName: string, nextLink: string, - options?: AvailabilitySetsListNextOptionalParams + options?: AvailabilitySetsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -386,192 +386,185 @@ export class AvailabilitySetsImpl implements AvailabilitySets { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AvailabilitySet + bodyMapper: Mappers.AvailabilitySet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.availabilitySetName + Parameters.availabilitySetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.AvailabilitySet + bodyMapper: Mappers.AvailabilitySet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters11, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.availabilitySetName + Parameters.availabilitySetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.availabilitySetName + Parameters.availabilitySetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilitySet + bodyMapper: Mappers.AvailabilitySet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.availabilitySetName + Parameters.availabilitySetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilitySetListResult + bodyMapper: Mappers.AvailabilitySetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilitySetListResult + bodyMapper: Mappers.AvailabilitySetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAvailableSizesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineSizeListResult + bodyMapper: Mappers.VirtualMachineSizeListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.availabilitySetName + Parameters.availabilitySetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilitySetListResult + bodyMapper: Mappers.AvailabilitySetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilitySetListResult + bodyMapper: Mappers.AvailabilitySetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts b/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts index dd348128ffd6..40ae25ac43cb 100644 --- a/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts +++ b/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts @@ -30,13 +30,14 @@ import { CapacityReservationGroupsGetOptionalParams, CapacityReservationGroupsGetResponse, CapacityReservationGroupsListByResourceGroupNextResponse, - CapacityReservationGroupsListBySubscriptionNextResponse + CapacityReservationGroupsListBySubscriptionNextResponse, } from "../models"; /// /** Class containing CapacityReservationGroups operations. */ export class CapacityReservationGroupsImpl - implements CapacityReservationGroups { + implements CapacityReservationGroups +{ private readonly client: ComputeManagementClient; /** @@ -55,7 +56,7 @@ export class CapacityReservationGroupsImpl */ public listByResourceGroup( resourceGroupName: string, - options?: CapacityReservationGroupsListByResourceGroupOptionalParams + options?: CapacityReservationGroupsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -72,16 +73,16 @@ export class CapacityReservationGroupsImpl return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: CapacityReservationGroupsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CapacityReservationGroupsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +97,7 @@ export class CapacityReservationGroupsImpl result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,11 +108,11 @@ export class CapacityReservationGroupsImpl private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: CapacityReservationGroupsListByResourceGroupOptionalParams + options?: CapacityReservationGroupsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -123,7 +124,7 @@ export class CapacityReservationGroupsImpl * @param options The options parameters. */ public listBySubscription( - options?: CapacityReservationGroupsListBySubscriptionOptionalParams + options?: CapacityReservationGroupsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -138,13 +139,13 @@ export class CapacityReservationGroupsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: CapacityReservationGroupsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CapacityReservationGroupsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -165,7 +166,7 @@ export class CapacityReservationGroupsImpl } private async *listBySubscriptionPagingAll( - options?: CapacityReservationGroupsListBySubscriptionOptionalParams + options?: CapacityReservationGroupsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -174,8 +175,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. @@ -185,17 +186,17 @@ export class CapacityReservationGroupsImpl resourceGroupName: string, capacityReservationGroupName: string, parameters: CapacityReservationGroup, - options?: CapacityReservationGroupsCreateOrUpdateOptionalParams + options?: CapacityReservationGroupsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } /** * 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. @@ -205,11 +206,11 @@ export class CapacityReservationGroupsImpl resourceGroupName: string, capacityReservationGroupName: string, parameters: CapacityReservationGroupUpdate, - options?: CapacityReservationGroupsUpdateOptionalParams + options?: CapacityReservationGroupsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -225,11 +226,11 @@ export class CapacityReservationGroupsImpl delete( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationGroupsDeleteOptionalParams + options?: CapacityReservationGroupsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -242,11 +243,11 @@ export class CapacityReservationGroupsImpl get( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationGroupsGetOptionalParams + options?: CapacityReservationGroupsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, options }, - getOperationSpec + getOperationSpec, ); } @@ -258,11 +259,11 @@ export class CapacityReservationGroupsImpl */ private _listByResourceGroup( resourceGroupName: string, - options?: CapacityReservationGroupsListByResourceGroupOptionalParams + options?: CapacityReservationGroupsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -272,11 +273,11 @@ export class CapacityReservationGroupsImpl * @param options The options parameters. */ private _listBySubscription( - options?: CapacityReservationGroupsListBySubscriptionOptionalParams + options?: CapacityReservationGroupsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -289,11 +290,11 @@ export class CapacityReservationGroupsImpl private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: CapacityReservationGroupsListByResourceGroupNextOptionalParams + options?: CapacityReservationGroupsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -304,11 +305,11 @@ export class CapacityReservationGroupsImpl */ private _listBySubscriptionNext( nextLink: string, - options?: CapacityReservationGroupsListBySubscriptionNextOptionalParams + options?: CapacityReservationGroupsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } } @@ -316,173 +317,171 @@ export class CapacityReservationGroupsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.CapacityReservationGroup + bodyMapper: Mappers.CapacityReservationGroup, }, 201: { - bodyMapper: Mappers.CapacityReservationGroup + bodyMapper: Mappers.CapacityReservationGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters25, + requestBody: Parameters.parameters27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.capacityReservationGroupName + Parameters.capacityReservationGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.CapacityReservationGroup + bodyMapper: Mappers.CapacityReservationGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters26, + requestBody: Parameters.parameters28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.capacityReservationGroupName + Parameters.capacityReservationGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.capacityReservationGroupName + Parameters.capacityReservationGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityReservationGroup + bodyMapper: Mappers.CapacityReservationGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand7], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.capacityReservationGroupName + Parameters.capacityReservationGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityReservationGroupListResult + bodyMapper: Mappers.CapacityReservationGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityReservationGroupListResult + bodyMapper: Mappers.CapacityReservationGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - queryParameters: [Parameters.apiVersion, Parameters.expand8], + queryParameters: [ + Parameters.apiVersion, + Parameters.expand8, + Parameters.resourceIdsOnly, + ], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityReservationGroupListResult + bodyMapper: Mappers.CapacityReservationGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityReservationGroupListResult + bodyMapper: Mappers.CapacityReservationGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/capacityReservations.ts b/sdk/compute/arm-compute/src/operations/capacityReservations.ts index 1f44d46446ad..32305a6c06b5 100644 --- a/sdk/compute/arm-compute/src/operations/capacityReservations.ts +++ b/sdk/compute/arm-compute/src/operations/capacityReservations.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { CapacityReservationsDeleteOptionalParams, CapacityReservationsGetOptionalParams, CapacityReservationsGetResponse, - CapacityReservationsListByCapacityReservationGroupNextResponse + CapacityReservationsListByCapacityReservationGroupNextResponse, } from "../models"; /// @@ -58,12 +58,12 @@ export class CapacityReservationsImpl implements CapacityReservations { public listByCapacityReservationGroup( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationsListByCapacityReservationGroupOptionalParams + options?: CapacityReservationsListByCapacityReservationGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByCapacityReservationGroupPagingAll( resourceGroupName, capacityReservationGroupName, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName, capacityReservationGroupName, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, options?: CapacityReservationsListByCapacityReservationGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CapacityReservationsListByCapacityReservationGroupResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class CapacityReservationsImpl implements CapacityReservations { result = await this._listByCapacityReservationGroup( resourceGroupName, capacityReservationGroupName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -110,7 +110,7 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName, capacityReservationGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -122,12 +122,12 @@ export class CapacityReservationsImpl implements CapacityReservations { private async *listByCapacityReservationGroupPagingAll( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationsListByCapacityReservationGroupOptionalParams + options?: CapacityReservationsListByCapacityReservationGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByCapacityReservationGroupPagingPage( resourceGroupName, capacityReservationGroupName, - options + options, )) { yield* page; } @@ -148,7 +148,7 @@ export class CapacityReservationsImpl implements CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservation, - options?: CapacityReservationsCreateOrUpdateOptionalParams + options?: CapacityReservationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -157,21 +157,20 @@ export class CapacityReservationsImpl implements CapacityReservations { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -180,8 +179,8 @@ export class CapacityReservationsImpl implements CapacityReservations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -189,8 +188,8 @@ export class CapacityReservationsImpl implements CapacityReservations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -201,16 +200,16 @@ export class CapacityReservationsImpl implements CapacityReservations { capacityReservationGroupName, capacityReservationName, parameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< CapacityReservationsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -231,14 +230,14 @@ export class CapacityReservationsImpl implements CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservation, - options?: CapacityReservationsCreateOrUpdateOptionalParams + options?: CapacityReservationsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, capacityReservationGroupName, capacityReservationName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -256,7 +255,7 @@ export class CapacityReservationsImpl implements CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservationUpdate, - options?: CapacityReservationsUpdateOptionalParams + options?: CapacityReservationsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -265,21 +264,20 @@ export class CapacityReservationsImpl implements CapacityReservations { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -288,8 +286,8 @@ export class CapacityReservationsImpl implements CapacityReservations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -297,8 +295,8 @@ export class CapacityReservationsImpl implements CapacityReservations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -309,16 +307,16 @@ export class CapacityReservationsImpl implements CapacityReservations { capacityReservationGroupName, capacityReservationName, parameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< CapacityReservationsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -337,14 +335,14 @@ export class CapacityReservationsImpl implements CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservationUpdate, - options?: CapacityReservationsUpdateOptionalParams + options?: CapacityReservationsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, capacityReservationGroupName, capacityReservationName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -362,25 +360,24 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, - options?: CapacityReservationsDeleteOptionalParams + options?: CapacityReservationsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -389,8 +386,8 @@ export class CapacityReservationsImpl implements CapacityReservations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -398,8 +395,8 @@ export class CapacityReservationsImpl implements CapacityReservations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -409,13 +406,13 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName, capacityReservationGroupName, capacityReservationName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -434,13 +431,13 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, - options?: CapacityReservationsDeleteOptionalParams + options?: CapacityReservationsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, capacityReservationGroupName, capacityReservationName, - options + options, ); return poller.pollUntilDone(); } @@ -456,16 +453,16 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, - options?: CapacityReservationsGetOptionalParams + options?: CapacityReservationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, capacityReservationName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -479,11 +476,11 @@ export class CapacityReservationsImpl implements CapacityReservations { private _listByCapacityReservationGroup( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationsListByCapacityReservationGroupOptionalParams + options?: CapacityReservationsListByCapacityReservationGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, options }, - listByCapacityReservationGroupOperationSpec + listByCapacityReservationGroupOperationSpec, ); } @@ -499,11 +496,11 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, nextLink: string, - options?: CapacityReservationsListByCapacityReservationGroupNextOptionalParams + options?: CapacityReservationsListByCapacityReservationGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, nextLink, options }, - listByCapacityReservationGroupNextOperationSpec + listByCapacityReservationGroupNextOperationSpec, ); } } @@ -511,76 +508,73 @@ export class CapacityReservationsImpl implements CapacityReservations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, 201: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, 202: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, 204: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters27, + requestBody: Parameters.parameters29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.capacityReservationGroupName, - Parameters.capacityReservationName + Parameters.capacityReservationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, 201: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, 202: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, 204: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters28, + requestBody: Parameters.parameters30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.capacityReservationGroupName, - Parameters.capacityReservationName + Parameters.capacityReservationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", httpMethod: "DELETE", responses: { 200: {}, @@ -588,8 +582,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -597,22 +591,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.capacityReservationGroupName, - Parameters.capacityReservationName + Parameters.capacityReservationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand9], urlParameters: [ @@ -620,51 +613,51 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.capacityReservationGroupName, - Parameters.capacityReservationName + Parameters.capacityReservationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByCapacityReservationGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityReservationListResult + bodyMapper: Mappers.CapacityReservationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.capacityReservationGroupName + Parameters.capacityReservationGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listByCapacityReservationGroupNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CapacityReservationListResult +const listByCapacityReservationGroupNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CapacityReservationListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.resourceGroupName, - Parameters.capacityReservationGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.capacityReservationGroupName, + ], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts b/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts index 503d7225c653..88ea11f32119 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts @@ -27,13 +27,14 @@ import { CloudServiceOperatingSystemsGetOSFamilyOptionalParams, CloudServiceOperatingSystemsGetOSFamilyResponse, CloudServiceOperatingSystemsListOSVersionsNextResponse, - CloudServiceOperatingSystemsListOSFamiliesNextResponse + CloudServiceOperatingSystemsListOSFamiliesNextResponse, } from "../models"; /// /** Class containing CloudServiceOperatingSystems operations. */ export class CloudServiceOperatingSystemsImpl - implements CloudServiceOperatingSystems { + implements CloudServiceOperatingSystems +{ private readonly client: ComputeManagementClient; /** @@ -53,7 +54,7 @@ export class CloudServiceOperatingSystemsImpl */ public listOSVersions( location: string, - options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams + options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listOSVersionsPagingAll(location, options); return { @@ -68,14 +69,14 @@ export class CloudServiceOperatingSystemsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listOSVersionsPagingPage(location, options, settings); - } + }, }; } private async *listOSVersionsPagingPage( location: string, options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServiceOperatingSystemsListOSVersionsResponse; let continuationToken = settings?.continuationToken; @@ -90,7 +91,7 @@ export class CloudServiceOperatingSystemsImpl result = await this._listOSVersionsNext( location, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -101,7 +102,7 @@ export class CloudServiceOperatingSystemsImpl private async *listOSVersionsPagingAll( location: string, - options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams + options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listOSVersionsPagingPage(location, options)) { yield* page; @@ -117,7 +118,7 @@ export class CloudServiceOperatingSystemsImpl */ public listOSFamilies( location: string, - options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams + options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listOSFamiliesPagingAll(location, options); return { @@ -132,14 +133,14 @@ export class CloudServiceOperatingSystemsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listOSFamiliesPagingPage(location, options, settings); - } + }, }; } private async *listOSFamiliesPagingPage( location: string, options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServiceOperatingSystemsListOSFamiliesResponse; let continuationToken = settings?.continuationToken; @@ -154,7 +155,7 @@ export class CloudServiceOperatingSystemsImpl result = await this._listOSFamiliesNext( location, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -165,7 +166,7 @@ export class CloudServiceOperatingSystemsImpl private async *listOSFamiliesPagingAll( location: string, - options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams + options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listOSFamiliesPagingPage(location, options)) { yield* page; @@ -182,11 +183,11 @@ export class CloudServiceOperatingSystemsImpl getOSVersion( location: string, osVersionName: string, - options?: CloudServiceOperatingSystemsGetOSVersionOptionalParams + options?: CloudServiceOperatingSystemsGetOSVersionOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, osVersionName, options }, - getOSVersionOperationSpec + getOSVersionOperationSpec, ); } @@ -199,11 +200,11 @@ export class CloudServiceOperatingSystemsImpl */ private _listOSVersions( location: string, - options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams + options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOSVersionsOperationSpec + listOSVersionsOperationSpec, ); } @@ -217,11 +218,11 @@ export class CloudServiceOperatingSystemsImpl getOSFamily( location: string, osFamilyName: string, - options?: CloudServiceOperatingSystemsGetOSFamilyOptionalParams + options?: CloudServiceOperatingSystemsGetOSFamilyOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, osFamilyName, options }, - getOSFamilyOperationSpec + getOSFamilyOperationSpec, ); } @@ -234,11 +235,11 @@ export class CloudServiceOperatingSystemsImpl */ private _listOSFamilies( location: string, - options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams + options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOSFamiliesOperationSpec + listOSFamiliesOperationSpec, ); } @@ -251,11 +252,11 @@ export class CloudServiceOperatingSystemsImpl private _listOSVersionsNext( location: string, nextLink: string, - options?: CloudServiceOperatingSystemsListOSVersionsNextOptionalParams + options?: CloudServiceOperatingSystemsListOSVersionsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listOSVersionsNextOperationSpec + listOSVersionsNextOperationSpec, ); } @@ -268,11 +269,11 @@ export class CloudServiceOperatingSystemsImpl private _listOSFamiliesNext( location: string, nextLink: string, - options?: CloudServiceOperatingSystemsListOSFamiliesNextOptionalParams + options?: CloudServiceOperatingSystemsListOSFamiliesNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listOSFamiliesNextOperationSpec + listOSFamiliesNextOperationSpec, ); } } @@ -280,128 +281,124 @@ export class CloudServiceOperatingSystemsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOSVersionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions/{osVersionName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions/{osVersionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OSVersion + bodyMapper: Mappers.OSVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.osVersionName + Parameters.osVersionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOSVersionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OSVersionListResult + bodyMapper: Mappers.OSVersionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOSFamilyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OSFamily + bodyMapper: Mappers.OSFamily, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.osFamilyName + Parameters.osFamilyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOSFamiliesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OSFamilyListResult + bodyMapper: Mappers.OSFamilyListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOSVersionsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OSVersionListResult + bodyMapper: Mappers.OSVersionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOSFamiliesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OSFamilyListResult + bodyMapper: Mappers.OSFamilyListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts b/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts index 1077b7c26008..97380dea092c 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -34,13 +34,14 @@ import { CloudServiceRoleInstancesRebuildOptionalParams, CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams, CloudServiceRoleInstancesGetRemoteDesktopFileResponse, - CloudServiceRoleInstancesListNextResponse + CloudServiceRoleInstancesListNextResponse, } from "../models"; /// /** Class containing CloudServiceRoleInstances operations. */ export class CloudServiceRoleInstancesImpl - implements CloudServiceRoleInstances { + implements CloudServiceRoleInstances +{ private readonly client: ComputeManagementClient; /** @@ -61,12 +62,12 @@ export class CloudServiceRoleInstancesImpl public list( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesListOptionalParams + options?: CloudServiceRoleInstancesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, cloudServiceName, - options + options, ); return { next() { @@ -83,9 +84,9 @@ export class CloudServiceRoleInstancesImpl resourceGroupName, cloudServiceName, options, - settings + settings, ); - } + }, }; } @@ -93,7 +94,7 @@ export class CloudServiceRoleInstancesImpl resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServiceRoleInstancesListResponse; let continuationToken = settings?.continuationToken; @@ -109,7 +110,7 @@ export class CloudServiceRoleInstancesImpl resourceGroupName, cloudServiceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -121,12 +122,12 @@ export class CloudServiceRoleInstancesImpl private async *listPagingAll( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesListOptionalParams + options?: CloudServiceRoleInstancesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, cloudServiceName, - options + options, )) { yield* page; } @@ -143,25 +144,24 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesDeleteOptionalParams + options?: CloudServiceRoleInstancesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -170,8 +170,8 @@ export class CloudServiceRoleInstancesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -179,19 +179,19 @@ export class CloudServiceRoleInstancesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { roleInstanceName, resourceGroupName, cloudServiceName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -208,13 +208,13 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesDeleteOptionalParams + options?: CloudServiceRoleInstancesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( roleInstanceName, resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -230,11 +230,11 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesGetOptionalParams + options?: CloudServiceRoleInstancesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { roleInstanceName, resourceGroupName, cloudServiceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -249,11 +249,11 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesGetInstanceViewOptionalParams + options?: CloudServiceRoleInstancesGetInstanceViewOptionalParams, ): Promise { return this.client.sendOperationRequest( { roleInstanceName, resourceGroupName, cloudServiceName, options }, - getInstanceViewOperationSpec + getInstanceViewOperationSpec, ); } @@ -267,11 +267,11 @@ export class CloudServiceRoleInstancesImpl private _list( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesListOptionalParams + options?: CloudServiceRoleInstancesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -287,25 +287,24 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRestartOptionalParams + options?: CloudServiceRoleInstancesRestartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -314,8 +313,8 @@ export class CloudServiceRoleInstancesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -323,19 +322,19 @@ export class CloudServiceRoleInstancesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { roleInstanceName, resourceGroupName, cloudServiceName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -353,13 +352,13 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRestartOptionalParams + options?: CloudServiceRoleInstancesRestartOptionalParams, ): Promise { const poller = await this.beginRestart( roleInstanceName, resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -376,25 +375,24 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesReimageOptionalParams + options?: CloudServiceRoleInstancesReimageOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -403,8 +401,8 @@ export class CloudServiceRoleInstancesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -412,19 +410,19 @@ export class CloudServiceRoleInstancesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { roleInstanceName, resourceGroupName, cloudServiceName, options }, - spec: reimageOperationSpec + spec: reimageOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -442,13 +440,13 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesReimageOptionalParams + options?: CloudServiceRoleInstancesReimageOptionalParams, ): Promise { const poller = await this.beginReimage( roleInstanceName, resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -466,25 +464,24 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRebuildOptionalParams + options?: CloudServiceRoleInstancesRebuildOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -493,8 +490,8 @@ export class CloudServiceRoleInstancesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -502,19 +499,19 @@ export class CloudServiceRoleInstancesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { roleInstanceName, resourceGroupName, cloudServiceName, options }, - spec: rebuildOperationSpec + spec: rebuildOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -533,13 +530,13 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRebuildOptionalParams + options?: CloudServiceRoleInstancesRebuildOptionalParams, ): Promise { const poller = await this.beginRebuild( roleInstanceName, resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -555,11 +552,11 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams + options?: CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams, ): Promise { return this.client.sendOperationRequest( { roleInstanceName, resourceGroupName, cloudServiceName, options }, - getRemoteDesktopFileOperationSpec + getRemoteDesktopFileOperationSpec, ); } @@ -574,11 +571,11 @@ export class CloudServiceRoleInstancesImpl resourceGroupName: string, cloudServiceName: string, nextLink: string, - options?: CloudServiceRoleInstancesListNextOptionalParams + options?: CloudServiceRoleInstancesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -586,8 +583,7 @@ export class CloudServiceRoleInstancesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -595,8 +591,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -604,22 +600,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.roleInstanceName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleInstance + bodyMapper: Mappers.RoleInstance, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.expand2, Parameters.apiVersion4], urlParameters: [ @@ -627,22 +622,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.roleInstanceName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getInstanceViewOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/instanceView", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/instanceView", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleInstanceView + bodyMapper: Mappers.RoleInstanceView, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -650,36 +644,34 @@ const getInstanceViewOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.roleInstanceName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleInstanceListResult + bodyMapper: Mappers.RoleInstanceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.expand2, Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/restart", httpMethod: "POST", responses: { 200: {}, @@ -687,8 +679,8 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -696,14 +688,13 @@ const restartOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.roleInstanceName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const reimageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/reimage", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/reimage", httpMethod: "POST", responses: { 200: {}, @@ -711,8 +702,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -720,14 +711,13 @@ const reimageOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.roleInstanceName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const rebuildOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/rebuild", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/rebuild", httpMethod: "POST", responses: { 200: {}, @@ -735,8 +725,8 @@ const rebuildOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -744,20 +734,22 @@ const rebuildOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.roleInstanceName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getRemoteDesktopFileOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/remoteDesktopFile", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/remoteDesktopFile", httpMethod: "GET", responses: { 200: { - bodyMapper: { type: { name: "Stream" }, serializedName: "parsedResponse" } + bodyMapper: { + type: { name: "Stream" }, + serializedName: "parsedResponse", + }, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -765,29 +757,29 @@ const getRemoteDesktopFileOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.roleInstanceName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept2], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleInstanceListResult + bodyMapper: Mappers.RoleInstanceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts b/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts index b72e85ce8ca7..2e427f06f6f8 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts @@ -20,7 +20,7 @@ import { CloudServiceRolesListResponse, CloudServiceRolesGetOptionalParams, CloudServiceRolesGetResponse, - CloudServiceRolesListNextResponse + CloudServiceRolesListNextResponse, } from "../models"; /// @@ -46,12 +46,12 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { public list( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRolesListOptionalParams + options?: CloudServiceRolesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, cloudServiceName, - options + options, ); return { next() { @@ -68,9 +68,9 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { resourceGroupName, cloudServiceName, options, - settings + settings, ); - } + }, }; } @@ -78,7 +78,7 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRolesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServiceRolesListResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { resourceGroupName, cloudServiceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -106,12 +106,12 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { private async *listPagingAll( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRolesListOptionalParams + options?: CloudServiceRolesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, cloudServiceName, - options + options, )) { yield* page; } @@ -128,11 +128,11 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { roleName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRolesGetOptionalParams + options?: CloudServiceRolesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { roleName, resourceGroupName, cloudServiceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -146,11 +146,11 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { private _list( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRolesListOptionalParams + options?: CloudServiceRolesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -165,11 +165,11 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { resourceGroupName: string, cloudServiceName: string, nextLink: string, - options?: CloudServiceRolesListNextOptionalParams + options?: CloudServiceRolesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -177,16 +177,15 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles/{roleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles/{roleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceRole + bodyMapper: Mappers.CloudServiceRole, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -194,51 +193,50 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.cloudServiceName, - Parameters.roleName + Parameters.roleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceRoleListResult + bodyMapper: Mappers.CloudServiceRoleListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceRoleListResult + bodyMapper: Mappers.CloudServiceRoleListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/cloudServices.ts b/sdk/compute/arm-compute/src/operations/cloudServices.ts index dc2c2161ca3f..91b17cb59e1c 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServices.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServices.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -43,7 +43,7 @@ import { CloudServicesRebuildOptionalParams, CloudServicesDeleteInstancesOptionalParams, CloudServicesListAllNextResponse, - CloudServicesListNextResponse + CloudServicesListNextResponse, } from "../models"; /// @@ -66,7 +66,7 @@ export class CloudServicesImpl implements CloudServices { * @param options The options parameters. */ public listAll( - options?: CloudServicesListAllOptionalParams + options?: CloudServicesListAllOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAllPagingAll(options); return { @@ -81,13 +81,13 @@ export class CloudServicesImpl implements CloudServices { throw new Error("maxPageSize is not supported by this operation."); } return this.listAllPagingPage(options, settings); - } + }, }; } private async *listAllPagingPage( options?: CloudServicesListAllOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServicesListAllResponse; let continuationToken = settings?.continuationToken; @@ -108,7 +108,7 @@ export class CloudServicesImpl implements CloudServices { } private async *listAllPagingAll( - options?: CloudServicesListAllOptionalParams + options?: CloudServicesListAllOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAllPagingPage(options)) { yield* page; @@ -123,7 +123,7 @@ export class CloudServicesImpl implements CloudServices { */ public list( resourceGroupName: string, - options?: CloudServicesListOptionalParams + options?: CloudServicesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -138,14 +138,14 @@ export class CloudServicesImpl implements CloudServices { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceGroupName, options, settings); - } + }, }; } private async *listPagingPage( resourceGroupName: string, options?: CloudServicesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServicesListResponse; let continuationToken = settings?.continuationToken; @@ -160,7 +160,7 @@ export class CloudServicesImpl implements CloudServices { result = await this._listNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -171,7 +171,7 @@ export class CloudServicesImpl implements CloudServices { private async *listPagingAll( resourceGroupName: string, - options?: CloudServicesListOptionalParams + options?: CloudServicesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; @@ -188,7 +188,7 @@ export class CloudServicesImpl implements CloudServices { async beginCreateOrUpdate( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesCreateOrUpdateOptionalParams + options?: CloudServicesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -197,21 +197,20 @@ export class CloudServicesImpl implements CloudServices { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -220,8 +219,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -229,22 +228,22 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< CloudServicesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -260,12 +259,12 @@ export class CloudServicesImpl implements CloudServices { async beginCreateOrUpdateAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesCreateOrUpdateOptionalParams + options?: CloudServicesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -279,7 +278,7 @@ export class CloudServicesImpl implements CloudServices { async beginUpdate( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateOptionalParams + options?: CloudServicesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -288,21 +287,20 @@ export class CloudServicesImpl implements CloudServices { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -311,8 +309,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -320,22 +318,22 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< CloudServicesUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -350,12 +348,12 @@ export class CloudServicesImpl implements CloudServices { async beginUpdateAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateOptionalParams + options?: CloudServicesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -369,25 +367,24 @@ export class CloudServicesImpl implements CloudServices { async beginDelete( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteOptionalParams + options?: CloudServicesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -396,8 +393,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -405,19 +402,19 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -432,12 +429,12 @@ export class CloudServicesImpl implements CloudServices { async beginDeleteAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteOptionalParams + options?: CloudServicesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -451,11 +448,11 @@ export class CloudServicesImpl implements CloudServices { get( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesGetOptionalParams + options?: CloudServicesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -468,11 +465,11 @@ export class CloudServicesImpl implements CloudServices { getInstanceView( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesGetInstanceViewOptionalParams + options?: CloudServicesGetInstanceViewOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, options }, - getInstanceViewOperationSpec + getInstanceViewOperationSpec, ); } @@ -483,7 +480,7 @@ export class CloudServicesImpl implements CloudServices { * @param options The options parameters. */ private _listAll( - options?: CloudServicesListAllOptionalParams + options?: CloudServicesListAllOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listAllOperationSpec); } @@ -496,11 +493,11 @@ export class CloudServicesImpl implements CloudServices { */ private _list( resourceGroupName: string, - options?: CloudServicesListOptionalParams + options?: CloudServicesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listOperationSpec + listOperationSpec, ); } @@ -513,25 +510,24 @@ export class CloudServicesImpl implements CloudServices { async beginStart( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesStartOptionalParams + options?: CloudServicesStartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -540,8 +536,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -549,19 +545,19 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: startOperationSpec + spec: startOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -576,12 +572,12 @@ export class CloudServicesImpl implements CloudServices { async beginStartAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesStartOptionalParams + options?: CloudServicesStartOptionalParams, ): Promise { const poller = await this.beginStart( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -596,25 +592,24 @@ export class CloudServicesImpl implements CloudServices { async beginPowerOff( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesPowerOffOptionalParams + options?: CloudServicesPowerOffOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -623,8 +618,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -632,19 +627,19 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: powerOffOperationSpec + spec: powerOffOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -660,12 +655,12 @@ export class CloudServicesImpl implements CloudServices { async beginPowerOffAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesPowerOffOptionalParams + options?: CloudServicesPowerOffOptionalParams, ): Promise { const poller = await this.beginPowerOff( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -679,25 +674,24 @@ export class CloudServicesImpl implements CloudServices { async beginRestart( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRestartOptionalParams + options?: CloudServicesRestartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -706,8 +700,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -715,19 +709,19 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -742,12 +736,12 @@ export class CloudServicesImpl implements CloudServices { async beginRestartAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRestartOptionalParams + options?: CloudServicesRestartOptionalParams, ): Promise { const poller = await this.beginRestart( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -762,25 +756,24 @@ export class CloudServicesImpl implements CloudServices { async beginReimage( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesReimageOptionalParams + options?: CloudServicesReimageOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -789,8 +782,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -798,19 +791,19 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: reimageOperationSpec + spec: reimageOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -826,12 +819,12 @@ export class CloudServicesImpl implements CloudServices { async beginReimageAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesReimageOptionalParams + options?: CloudServicesReimageOptionalParams, ): Promise { const poller = await this.beginReimage( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -847,25 +840,24 @@ export class CloudServicesImpl implements CloudServices { async beginRebuild( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRebuildOptionalParams + options?: CloudServicesRebuildOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -874,8 +866,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -883,19 +875,19 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: rebuildOperationSpec + spec: rebuildOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -912,12 +904,12 @@ export class CloudServicesImpl implements CloudServices { async beginRebuildAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRebuildOptionalParams + options?: CloudServicesRebuildOptionalParams, ): Promise { const poller = await this.beginRebuild( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -931,25 +923,24 @@ export class CloudServicesImpl implements CloudServices { async beginDeleteInstances( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteInstancesOptionalParams + options?: CloudServicesDeleteInstancesOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -958,8 +949,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -967,19 +958,19 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: deleteInstancesOperationSpec + spec: deleteInstancesOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -994,12 +985,12 @@ export class CloudServicesImpl implements CloudServices { async beginDeleteInstancesAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteInstancesOptionalParams + options?: CloudServicesDeleteInstancesOptionalParams, ): Promise { const poller = await this.beginDeleteInstances( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -1011,11 +1002,11 @@ export class CloudServicesImpl implements CloudServices { */ private _listAllNext( nextLink: string, - options?: CloudServicesListAllNextOptionalParams + options?: CloudServicesListAllNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAllNextOperationSpec + listAllNextOperationSpec, ); } @@ -1028,11 +1019,11 @@ export class CloudServicesImpl implements CloudServices { private _listNext( resourceGroupName: string, nextLink: string, - options?: CloudServicesListNextOptionalParams + options?: CloudServicesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -1040,74 +1031,71 @@ export class CloudServicesImpl implements CloudServices { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, 201: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, 202: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, 204: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters31, + requestBody: Parameters.parameters33, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, 201: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, 202: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, 204: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters32, + requestBody: Parameters.parameters34, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -1115,104 +1103,99 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getInstanceViewOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceInstanceView + bodyMapper: Mappers.CloudServiceInstanceView, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/cloudServices", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/cloudServices", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceListResult + bodyMapper: Mappers.CloudServiceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceListResult + bodyMapper: Mappers.CloudServiceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/start", httpMethod: "POST", responses: { 200: {}, @@ -1220,22 +1203,21 @@ const startOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const powerOffOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/poweroff", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/poweroff", httpMethod: "POST", responses: { 200: {}, @@ -1243,22 +1225,21 @@ const powerOffOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/restart", httpMethod: "POST", responses: { 200: {}, @@ -1266,24 +1247,23 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters33, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reimageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/reimage", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/reimage", httpMethod: "POST", responses: { 200: {}, @@ -1291,24 +1271,23 @@ const reimageOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters33, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const rebuildOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/rebuild", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/rebuild", httpMethod: "POST", responses: { 200: {}, @@ -1316,24 +1295,23 @@ const rebuildOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters33, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteInstancesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/delete", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/delete", httpMethod: "POST", responses: { 200: {}, @@ -1341,57 +1319,57 @@ const deleteInstancesOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters33, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listAllNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceListResult + bodyMapper: Mappers.CloudServiceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceListResult + bodyMapper: Mappers.CloudServiceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts b/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts index 7087b18820fd..adf65cf09355 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -27,13 +27,14 @@ import { CloudServicesUpdateDomainWalkUpdateDomainOptionalParams, CloudServicesUpdateDomainGetUpdateDomainOptionalParams, CloudServicesUpdateDomainGetUpdateDomainResponse, - CloudServicesUpdateDomainListUpdateDomainsNextResponse + CloudServicesUpdateDomainListUpdateDomainsNextResponse, } from "../models"; /// /** Class containing CloudServicesUpdateDomain operations. */ export class CloudServicesUpdateDomainImpl - implements CloudServicesUpdateDomain { + implements CloudServicesUpdateDomain +{ private readonly client: ComputeManagementClient; /** @@ -53,12 +54,12 @@ export class CloudServicesUpdateDomainImpl public listUpdateDomains( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams + options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listUpdateDomainsPagingAll( resourceGroupName, cloudServiceName, - options + options, ); return { next() { @@ -75,9 +76,9 @@ export class CloudServicesUpdateDomainImpl resourceGroupName, cloudServiceName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +86,7 @@ export class CloudServicesUpdateDomainImpl resourceGroupName: string, cloudServiceName: string, options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServicesUpdateDomainListUpdateDomainsResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +94,7 @@ export class CloudServicesUpdateDomainImpl result = await this._listUpdateDomains( resourceGroupName, cloudServiceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +106,7 @@ export class CloudServicesUpdateDomainImpl resourceGroupName, cloudServiceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,12 +118,12 @@ export class CloudServicesUpdateDomainImpl private async *listUpdateDomainsPagingAll( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams + options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listUpdateDomainsPagingPage( resourceGroupName, cloudServiceName, - options + options, )) { yield* page; } @@ -141,25 +142,24 @@ export class CloudServicesUpdateDomainImpl resourceGroupName: string, cloudServiceName: string, updateDomain: number, - options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams + options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -168,8 +168,8 @@ export class CloudServicesUpdateDomainImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -177,19 +177,19 @@ export class CloudServicesUpdateDomainImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, updateDomain, options }, - spec: walkUpdateDomainOperationSpec + spec: walkUpdateDomainOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -208,13 +208,13 @@ export class CloudServicesUpdateDomainImpl resourceGroupName: string, cloudServiceName: string, updateDomain: number, - options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams + options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams, ): Promise { const poller = await this.beginWalkUpdateDomain( resourceGroupName, cloudServiceName, updateDomain, - options + options, ); return poller.pollUntilDone(); } @@ -233,11 +233,11 @@ export class CloudServicesUpdateDomainImpl resourceGroupName: string, cloudServiceName: string, updateDomain: number, - options?: CloudServicesUpdateDomainGetUpdateDomainOptionalParams + options?: CloudServicesUpdateDomainGetUpdateDomainOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, updateDomain, options }, - getUpdateDomainOperationSpec + getUpdateDomainOperationSpec, ); } @@ -250,11 +250,11 @@ export class CloudServicesUpdateDomainImpl private _listUpdateDomains( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams + options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, options }, - listUpdateDomainsOperationSpec + listUpdateDomainsOperationSpec, ); } @@ -269,11 +269,11 @@ export class CloudServicesUpdateDomainImpl resourceGroupName: string, cloudServiceName: string, nextLink: string, - options?: CloudServicesUpdateDomainListUpdateDomainsNextOptionalParams + options?: CloudServicesUpdateDomainListUpdateDomainsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, nextLink, options }, - listUpdateDomainsNextOperationSpec + listUpdateDomainsNextOperationSpec, ); } } @@ -281,8 +281,7 @@ export class CloudServicesUpdateDomainImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const walkUpdateDomainOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", httpMethod: "PUT", responses: { 200: {}, @@ -290,33 +289,32 @@ const walkUpdateDomainOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters34, + requestBody: Parameters.parameters36, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.cloudServiceName, - Parameters.updateDomain + Parameters.updateDomain, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getUpdateDomainOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UpdateDomain + bodyMapper: Mappers.UpdateDomain, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -324,51 +322,50 @@ const getUpdateDomainOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.cloudServiceName, - Parameters.updateDomain + Parameters.updateDomain, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listUpdateDomainsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UpdateDomainListResult + bodyMapper: Mappers.UpdateDomainListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listUpdateDomainsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UpdateDomainListResult + bodyMapper: Mappers.UpdateDomainListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/communityGalleries.ts b/sdk/compute/arm-compute/src/operations/communityGalleries.ts index 47d5288fa9d4..ae06f506fec0 100644 --- a/sdk/compute/arm-compute/src/operations/communityGalleries.ts +++ b/sdk/compute/arm-compute/src/operations/communityGalleries.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; import { CommunityGalleriesGetOptionalParams, - CommunityGalleriesGetResponse + CommunityGalleriesGetResponse, } from "../models"; /** Class containing CommunityGalleries operations. */ @@ -37,11 +37,11 @@ export class CommunityGalleriesImpl implements CommunityGalleries { get( location: string, publicGalleryName: string, - options?: CommunityGalleriesGetOptionalParams + options?: CommunityGalleriesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publicGalleryName, options }, - getOperationSpec + getOperationSpec, ); } } @@ -49,24 +49,23 @@ export class CommunityGalleriesImpl implements CommunityGalleries { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CommunityGallery + bodyMapper: Mappers.CommunityGallery, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.publicGalleryName + Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts index cdc9af0968b1..576ed624d94d 100644 --- a/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts @@ -20,13 +20,14 @@ import { CommunityGalleryImageVersionsListResponse, CommunityGalleryImageVersionsGetOptionalParams, CommunityGalleryImageVersionsGetResponse, - CommunityGalleryImageVersionsListNextResponse + CommunityGalleryImageVersionsListNextResponse, } from "../models"; /// /** Class containing CommunityGalleryImageVersions operations. */ export class CommunityGalleryImageVersionsImpl - implements CommunityGalleryImageVersions { + implements CommunityGalleryImageVersions +{ private readonly client: ComputeManagementClient; /** @@ -48,13 +49,13 @@ export class CommunityGalleryImageVersionsImpl location: string, publicGalleryName: string, galleryImageName: string, - options?: CommunityGalleryImageVersionsListOptionalParams + options?: CommunityGalleryImageVersionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( location, publicGalleryName, galleryImageName, - options + options, ); return { next() { @@ -72,9 +73,9 @@ export class CommunityGalleryImageVersionsImpl publicGalleryName, galleryImageName, options, - settings + settings, ); - } + }, }; } @@ -83,7 +84,7 @@ export class CommunityGalleryImageVersionsImpl publicGalleryName: string, galleryImageName: string, options?: CommunityGalleryImageVersionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CommunityGalleryImageVersionsListResponse; let continuationToken = settings?.continuationToken; @@ -92,7 +93,7 @@ export class CommunityGalleryImageVersionsImpl location, publicGalleryName, galleryImageName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +106,7 @@ export class CommunityGalleryImageVersionsImpl publicGalleryName, galleryImageName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -118,13 +119,13 @@ export class CommunityGalleryImageVersionsImpl location: string, publicGalleryName: string, galleryImageName: string, - options?: CommunityGalleryImageVersionsListOptionalParams + options?: CommunityGalleryImageVersionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( location, publicGalleryName, galleryImageName, - options + options, )) { yield* page; } @@ -145,7 +146,7 @@ export class CommunityGalleryImageVersionsImpl publicGalleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: CommunityGalleryImageVersionsGetOptionalParams + options?: CommunityGalleryImageVersionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -153,9 +154,9 @@ export class CommunityGalleryImageVersionsImpl publicGalleryName, galleryImageName, galleryImageVersionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -170,11 +171,11 @@ export class CommunityGalleryImageVersionsImpl location: string, publicGalleryName: string, galleryImageName: string, - options?: CommunityGalleryImageVersionsListOptionalParams + options?: CommunityGalleryImageVersionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publicGalleryName, galleryImageName, options }, - listOperationSpec + listOperationSpec, ); } @@ -191,11 +192,11 @@ export class CommunityGalleryImageVersionsImpl publicGalleryName: string, galleryImageName: string, nextLink: string, - options?: CommunityGalleryImageVersionsListNextOptionalParams + options?: CommunityGalleryImageVersionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publicGalleryName, galleryImageName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -203,16 +204,15 @@ export class CommunityGalleryImageVersionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CommunityGalleryImageVersion + bodyMapper: Mappers.CommunityGalleryImageVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -221,22 +221,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.location1, Parameters.galleryImageName, Parameters.galleryImageVersionName, - Parameters.publicGalleryName + Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CommunityGalleryImageVersionList + bodyMapper: Mappers.CommunityGalleryImageVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -244,21 +243,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.location1, Parameters.galleryImageName, - Parameters.publicGalleryName + Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CommunityGalleryImageVersionList + bodyMapper: Mappers.CommunityGalleryImageVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -266,8 +265,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.nextLink, Parameters.location1, Parameters.galleryImageName, - Parameters.publicGalleryName + Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts b/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts index 71e60e4eea4e..63ec97c63097 100644 --- a/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts @@ -20,7 +20,7 @@ import { CommunityGalleryImagesListResponse, CommunityGalleryImagesGetOptionalParams, CommunityGalleryImagesGetResponse, - CommunityGalleryImagesListNextResponse + CommunityGalleryImagesListNextResponse, } from "../models"; /// @@ -45,7 +45,7 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { public list( location: string, publicGalleryName: string, - options?: CommunityGalleryImagesListOptionalParams + options?: CommunityGalleryImagesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, publicGalleryName, options); return { @@ -63,9 +63,9 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { location, publicGalleryName, options, - settings + settings, ); - } + }, }; } @@ -73,7 +73,7 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { location: string, publicGalleryName: string, options?: CommunityGalleryImagesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CommunityGalleryImagesListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { location, publicGalleryName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -101,12 +101,12 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { private async *listPagingAll( location: string, publicGalleryName: string, - options?: CommunityGalleryImagesListOptionalParams + options?: CommunityGalleryImagesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( location, publicGalleryName, - options + options, )) { yield* page; } @@ -123,11 +123,11 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { location: string, publicGalleryName: string, galleryImageName: string, - options?: CommunityGalleryImagesGetOptionalParams + options?: CommunityGalleryImagesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publicGalleryName, galleryImageName, options }, - getOperationSpec + getOperationSpec, ); } @@ -140,11 +140,11 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { private _list( location: string, publicGalleryName: string, - options?: CommunityGalleryImagesListOptionalParams + options?: CommunityGalleryImagesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publicGalleryName, options }, - listOperationSpec + listOperationSpec, ); } @@ -159,11 +159,11 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { location: string, publicGalleryName: string, nextLink: string, - options?: CommunityGalleryImagesListNextOptionalParams + options?: CommunityGalleryImagesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publicGalleryName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -171,16 +171,15 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CommunityGalleryImage + bodyMapper: Mappers.CommunityGalleryImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -188,51 +187,50 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.location1, Parameters.galleryImageName, - Parameters.publicGalleryName + Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CommunityGalleryImageList + bodyMapper: Mappers.CommunityGalleryImageList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.publicGalleryName + Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CommunityGalleryImageList + bodyMapper: Mappers.CommunityGalleryImageList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.location1, - Parameters.publicGalleryName + Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts b/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts index 170c778719b9..ef503dde24e7 100644 --- a/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts +++ b/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts @@ -30,7 +30,7 @@ import { DedicatedHostGroupsGetOptionalParams, DedicatedHostGroupsGetResponse, DedicatedHostGroupsListByResourceGroupNextResponse, - DedicatedHostGroupsListBySubscriptionNextResponse + DedicatedHostGroupsListBySubscriptionNextResponse, } from "../models"; /// @@ -54,7 +54,7 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { */ public listByResourceGroup( resourceGroupName: string, - options?: DedicatedHostGroupsListByResourceGroupOptionalParams + options?: DedicatedHostGroupsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -71,16 +71,16 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: DedicatedHostGroupsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DedicatedHostGroupsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +95,7 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -106,11 +106,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: DedicatedHostGroupsListByResourceGroupOptionalParams + options?: DedicatedHostGroupsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -122,7 +122,7 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { * @param options The options parameters. */ public listBySubscription( - options?: DedicatedHostGroupsListBySubscriptionOptionalParams + options?: DedicatedHostGroupsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -137,13 +137,13 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: DedicatedHostGroupsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DedicatedHostGroupsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -164,7 +164,7 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { } private async *listBySubscriptionPagingAll( - options?: DedicatedHostGroupsListBySubscriptionOptionalParams + options?: DedicatedHostGroupsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -183,11 +183,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { resourceGroupName: string, hostGroupName: string, parameters: DedicatedHostGroup, - options?: DedicatedHostGroupsCreateOrUpdateOptionalParams + options?: DedicatedHostGroupsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -202,11 +202,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { resourceGroupName: string, hostGroupName: string, parameters: DedicatedHostGroupUpdate, - options?: DedicatedHostGroupsUpdateOptionalParams + options?: DedicatedHostGroupsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -219,11 +219,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { delete( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostGroupsDeleteOptionalParams + options?: DedicatedHostGroupsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -236,11 +236,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { get( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostGroupsGetOptionalParams + options?: DedicatedHostGroupsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, options }, - getOperationSpec + getOperationSpec, ); } @@ -252,11 +252,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { */ private _listByResourceGroup( resourceGroupName: string, - options?: DedicatedHostGroupsListByResourceGroupOptionalParams + options?: DedicatedHostGroupsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -266,11 +266,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { * @param options The options parameters. */ private _listBySubscription( - options?: DedicatedHostGroupsListBySubscriptionOptionalParams + options?: DedicatedHostGroupsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -283,11 +283,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: DedicatedHostGroupsListByResourceGroupNextOptionalParams + options?: DedicatedHostGroupsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -298,11 +298,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { */ private _listBySubscriptionNext( nextLink: string, - options?: DedicatedHostGroupsListBySubscriptionNextOptionalParams + options?: DedicatedHostGroupsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } } @@ -310,173 +310,167 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DedicatedHostGroup + bodyMapper: Mappers.DedicatedHostGroup, }, 201: { - bodyMapper: Mappers.DedicatedHostGroup + bodyMapper: Mappers.DedicatedHostGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters14, + requestBody: Parameters.parameters15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostGroupName + Parameters.hostGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.DedicatedHostGroup + bodyMapper: Mappers.DedicatedHostGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters15, + requestBody: Parameters.parameters16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostGroupName + Parameters.hostGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostGroupName + Parameters.hostGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostGroup + bodyMapper: Mappers.DedicatedHostGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand2], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostGroupName + Parameters.hostGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostGroupListResult + bodyMapper: Mappers.DedicatedHostGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/hostGroups", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/hostGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostGroupListResult + bodyMapper: Mappers.DedicatedHostGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostGroupListResult + bodyMapper: Mappers.DedicatedHostGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostGroupListResult + bodyMapper: Mappers.DedicatedHostGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts b/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts index 683fcb2572bb..ae17d7aaf55b 100644 --- a/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts +++ b/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -35,7 +35,9 @@ import { DedicatedHostsGetOptionalParams, DedicatedHostsGetResponse, DedicatedHostsRestartOptionalParams, - DedicatedHostsListByHostGroupNextResponse + DedicatedHostsRedeployOptionalParams, + DedicatedHostsRedeployResponse, + DedicatedHostsListByHostGroupNextResponse, } from "../models"; /// @@ -61,12 +63,12 @@ export class DedicatedHostsImpl implements DedicatedHosts { public listByHostGroup( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostsListByHostGroupOptionalParams + options?: DedicatedHostsListByHostGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByHostGroupPagingAll( resourceGroupName, hostGroupName, - options + options, ); return { next() { @@ -83,9 +85,9 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName, hostGroupName, options, - settings + settings, ); - } + }, }; } @@ -93,7 +95,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, options?: DedicatedHostsListByHostGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DedicatedHostsListByHostGroupResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +103,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { result = await this._listByHostGroup( resourceGroupName, hostGroupName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -113,7 +115,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName, hostGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -125,12 +127,12 @@ export class DedicatedHostsImpl implements DedicatedHosts { private async *listByHostGroupPagingAll( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostsListByHostGroupOptionalParams + options?: DedicatedHostsListByHostGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByHostGroupPagingPage( resourceGroupName, hostGroupName, - options + options, )) { yield* page; } @@ -148,13 +150,13 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsListAvailableSizesOptionalParams + options?: DedicatedHostsListAvailableSizesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAvailableSizesPagingAll( resourceGroupName, hostGroupName, hostName, - options + options, ); return { next() { @@ -172,9 +174,9 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName, hostName, options, - settings + settings, ); - } + }, }; } @@ -183,14 +185,14 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName: string, hostName: string, options?: DedicatedHostsListAvailableSizesOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: DedicatedHostsListAvailableSizesResponse; result = await this._listAvailableSizes( resourceGroupName, hostGroupName, hostName, - options + options, ); yield result.value || []; } @@ -199,13 +201,13 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsListAvailableSizesOptionalParams + options?: DedicatedHostsListAvailableSizesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAvailableSizesPagingPage( resourceGroupName, hostGroupName, hostName, - options + options, )) { yield* page; } @@ -224,7 +226,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHost, - options?: DedicatedHostsCreateOrUpdateOptionalParams + options?: DedicatedHostsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -233,21 +235,20 @@ export class DedicatedHostsImpl implements DedicatedHosts { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -256,8 +257,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -265,22 +266,22 @@ export class DedicatedHostsImpl implements DedicatedHosts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, hostGroupName, hostName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< DedicatedHostsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -299,14 +300,14 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHost, - options?: DedicatedHostsCreateOrUpdateOptionalParams + options?: DedicatedHostsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, hostGroupName, hostName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -324,7 +325,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHostUpdate, - options?: DedicatedHostsUpdateOptionalParams + options?: DedicatedHostsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -333,21 +334,20 @@ export class DedicatedHostsImpl implements DedicatedHosts { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -356,8 +356,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -365,22 +365,22 @@ export class DedicatedHostsImpl implements DedicatedHosts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, hostGroupName, hostName, parameters, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< DedicatedHostsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -399,14 +399,14 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHostUpdate, - options?: DedicatedHostsUpdateOptionalParams + options?: DedicatedHostsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, hostGroupName, hostName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -422,25 +422,24 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsDeleteOptionalParams + options?: DedicatedHostsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -449,8 +448,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -458,19 +457,19 @@ export class DedicatedHostsImpl implements DedicatedHosts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, hostGroupName, hostName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -487,13 +486,13 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsDeleteOptionalParams + options?: DedicatedHostsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, hostGroupName, hostName, - options + options, ); return poller.pollUntilDone(); } @@ -509,11 +508,11 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsGetOptionalParams + options?: DedicatedHostsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, hostName, options }, - getOperationSpec + getOperationSpec, ); } @@ -527,11 +526,11 @@ export class DedicatedHostsImpl implements DedicatedHosts { private _listByHostGroup( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostsListByHostGroupOptionalParams + options?: DedicatedHostsListByHostGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, options }, - listByHostGroupOperationSpec + listByHostGroupOperationSpec, ); } @@ -549,25 +548,24 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRestartOptionalParams + options?: DedicatedHostsRestartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -576,8 +574,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -585,19 +583,19 @@ export class DedicatedHostsImpl implements DedicatedHosts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, hostGroupName, hostName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -617,13 +615,113 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRestartOptionalParams + options?: DedicatedHostsRestartOptionalParams, ): Promise { const poller = await this.beginRestart( resourceGroupName, hostGroupName, hostName, - options + options, + ); + 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(); } @@ -640,11 +738,11 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsListAvailableSizesOptionalParams + options?: DedicatedHostsListAvailableSizesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, hostName, options }, - listAvailableSizesOperationSpec + listAvailableSizesOperationSpec, ); } @@ -659,11 +757,11 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, nextLink: string, - options?: DedicatedHostsListByHostGroupNextOptionalParams + options?: DedicatedHostsListByHostGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, nextLink, options }, - listByHostGroupNextOperationSpec + listByHostGroupNextOperationSpec, ); } } @@ -671,76 +769,73 @@ export class DedicatedHostsImpl implements DedicatedHosts { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, 201: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, 202: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, 204: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters16, + requestBody: Parameters.parameters17, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName, - Parameters.hostName + Parameters.hostName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, 201: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, 202: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, 204: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters17, + requestBody: Parameters.parameters18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName, - Parameters.hostName + Parameters.hostName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", httpMethod: "DELETE", responses: { 200: {}, @@ -748,8 +843,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -757,22 +852,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName, - Parameters.hostName + Parameters.hostName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand2], urlParameters: [ @@ -780,36 +874,34 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName, - Parameters.hostName + Parameters.hostName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByHostGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostListResult + bodyMapper: Mappers.DedicatedHostListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostGroupName + Parameters.hostGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/restart", httpMethod: "POST", responses: { 200: {}, @@ -817,8 +909,8 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -826,22 +918,52 @@ const restartOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName, - Parameters.hostName + Parameters.hostName, + ], + 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 + serializer, }; const listAvailableSizesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/hostSizes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/hostSizes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostSizeListResult + bodyMapper: Mappers.DedicatedHostSizeListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -849,29 +971,29 @@ const listAvailableSizesOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName1, - Parameters.hostName1 + Parameters.hostName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByHostGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostListResult + bodyMapper: Mappers.DedicatedHostListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.hostGroupName + Parameters.hostGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/diskAccesses.ts b/sdk/compute/arm-compute/src/operations/diskAccesses.ts index 4054a2fff630..827fe030764f 100644 --- a/sdk/compute/arm-compute/src/operations/diskAccesses.ts +++ b/sdk/compute/arm-compute/src/operations/diskAccesses.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -48,7 +48,7 @@ import { DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams, DiskAccessesListByResourceGroupNextResponse, DiskAccessesListNextResponse, - DiskAccessesListPrivateEndpointConnectionsNextResponse + DiskAccessesListPrivateEndpointConnectionsNextResponse, } from "../models"; /// @@ -71,7 +71,7 @@ export class DiskAccessesImpl implements DiskAccesses { */ public listByResourceGroup( resourceGroupName: string, - options?: DiskAccessesListByResourceGroupOptionalParams + options?: DiskAccessesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -88,16 +88,16 @@ export class DiskAccessesImpl implements DiskAccesses { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: DiskAccessesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiskAccessesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -112,7 +112,7 @@ export class DiskAccessesImpl implements DiskAccesses { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -123,11 +123,11 @@ export class DiskAccessesImpl implements DiskAccesses { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: DiskAccessesListByResourceGroupOptionalParams + options?: DiskAccessesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -138,7 +138,7 @@ export class DiskAccessesImpl implements DiskAccesses { * @param options The options parameters. */ public list( - options?: DiskAccessesListOptionalParams + options?: DiskAccessesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -153,13 +153,13 @@ export class DiskAccessesImpl implements DiskAccesses { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: DiskAccessesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiskAccessesListResponse; let continuationToken = settings?.continuationToken; @@ -180,7 +180,7 @@ export class DiskAccessesImpl implements DiskAccesses { } private async *listPagingAll( - options?: DiskAccessesListOptionalParams + options?: DiskAccessesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -198,12 +198,12 @@ export class DiskAccessesImpl implements DiskAccesses { public listPrivateEndpointConnections( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams + options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPrivateEndpointConnectionsPagingAll( resourceGroupName, diskAccessName, - options + options, ); return { next() { @@ -220,9 +220,9 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName, diskAccessName, options, - settings + settings, ); - } + }, }; } @@ -230,7 +230,7 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiskAccessesListPrivateEndpointConnectionsResponse; let continuationToken = settings?.continuationToken; @@ -238,7 +238,7 @@ export class DiskAccessesImpl implements DiskAccesses { result = await this._listPrivateEndpointConnections( resourceGroupName, diskAccessName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -250,7 +250,7 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName, diskAccessName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -262,12 +262,12 @@ export class DiskAccessesImpl implements DiskAccesses { private async *listPrivateEndpointConnectionsPagingAll( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams + options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPrivateEndpointConnectionsPagingPage( resourceGroupName, diskAccessName, - options + options, )) { yield* page; } @@ -286,7 +286,7 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccess, - options?: DiskAccessesCreateOrUpdateOptionalParams + options?: DiskAccessesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -295,21 +295,20 @@ export class DiskAccessesImpl implements DiskAccesses { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -318,8 +317,8 @@ export class DiskAccessesImpl implements DiskAccesses { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -327,22 +326,22 @@ export class DiskAccessesImpl implements DiskAccesses { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskAccessName, diskAccess, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< DiskAccessesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -361,13 +360,13 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccess, - options?: DiskAccessesCreateOrUpdateOptionalParams + options?: DiskAccessesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, diskAccessName, diskAccess, - options + options, ); return poller.pollUntilDone(); } @@ -385,7 +384,7 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccessUpdate, - options?: DiskAccessesUpdateOptionalParams + options?: DiskAccessesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -394,21 +393,20 @@ export class DiskAccessesImpl implements DiskAccesses { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -417,8 +415,8 @@ export class DiskAccessesImpl implements DiskAccesses { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -426,22 +424,22 @@ export class DiskAccessesImpl implements DiskAccesses { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskAccessName, diskAccess, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< DiskAccessesUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -460,13 +458,13 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccessUpdate, - options?: DiskAccessesUpdateOptionalParams + options?: DiskAccessesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, diskAccessName, diskAccess, - options + options, ); return poller.pollUntilDone(); } @@ -482,11 +480,11 @@ export class DiskAccessesImpl implements DiskAccesses { get( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesGetOptionalParams + options?: DiskAccessesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskAccessName, options }, - getOperationSpec + getOperationSpec, ); } @@ -501,25 +499,24 @@ export class DiskAccessesImpl implements DiskAccesses { async beginDelete( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesDeleteOptionalParams + options?: DiskAccessesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -528,8 +525,8 @@ export class DiskAccessesImpl implements DiskAccesses { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -537,19 +534,19 @@ export class DiskAccessesImpl implements DiskAccesses { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskAccessName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -566,12 +563,12 @@ export class DiskAccessesImpl implements DiskAccesses { async beginDeleteAndWait( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesDeleteOptionalParams + options?: DiskAccessesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, diskAccessName, - options + options, ); return poller.pollUntilDone(); } @@ -583,11 +580,11 @@ export class DiskAccessesImpl implements DiskAccesses { */ private _listByResourceGroup( resourceGroupName: string, - options?: DiskAccessesListByResourceGroupOptionalParams + options?: DiskAccessesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -596,7 +593,7 @@ export class DiskAccessesImpl implements DiskAccesses { * @param options The options parameters. */ private _list( - options?: DiskAccessesListOptionalParams + options?: DiskAccessesListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -612,11 +609,11 @@ export class DiskAccessesImpl implements DiskAccesses { getPrivateLinkResources( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesGetPrivateLinkResourcesOptionalParams + options?: DiskAccessesGetPrivateLinkResourcesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskAccessName, options }, - getPrivateLinkResourcesOperationSpec + getPrivateLinkResourcesOperationSpec, ); } @@ -637,7 +634,7 @@ export class DiskAccessesImpl implements DiskAccesses { diskAccessName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, - options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -646,21 +643,20 @@ export class DiskAccessesImpl implements DiskAccesses { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -669,8 +665,8 @@ export class DiskAccessesImpl implements DiskAccesses { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -678,8 +674,8 @@ export class DiskAccessesImpl implements DiskAccesses { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -690,16 +686,16 @@ export class DiskAccessesImpl implements DiskAccesses { diskAccessName, privateEndpointConnectionName, privateEndpointConnection, - options + options, }, - spec: updateAPrivateEndpointConnectionOperationSpec + spec: updateAPrivateEndpointConnectionOperationSpec, }); const poller = await createHttpPoller< DiskAccessesUpdateAPrivateEndpointConnectionResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -722,14 +718,14 @@ export class DiskAccessesImpl implements DiskAccesses { diskAccessName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, - options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams, ): Promise { const poller = await this.beginUpdateAPrivateEndpointConnection( resourceGroupName, diskAccessName, privateEndpointConnectionName, privateEndpointConnection, - options + options, ); return poller.pollUntilDone(); } @@ -747,16 +743,16 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, - options?: DiskAccessesGetAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesGetAPrivateEndpointConnectionOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskAccessName, privateEndpointConnectionName, - options + options, }, - getAPrivateEndpointConnectionOperationSpec + getAPrivateEndpointConnectionOperationSpec, ); } @@ -773,25 +769,24 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, - options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -800,8 +795,8 @@ export class DiskAccessesImpl implements DiskAccesses { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -809,8 +804,8 @@ export class DiskAccessesImpl implements DiskAccesses { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -820,13 +815,13 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName, diskAccessName, privateEndpointConnectionName, - options + options, }, - spec: deleteAPrivateEndpointConnectionOperationSpec + spec: deleteAPrivateEndpointConnectionOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -845,13 +840,13 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, - options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams, ): Promise { const poller = await this.beginDeleteAPrivateEndpointConnection( resourceGroupName, diskAccessName, privateEndpointConnectionName, - options + options, ); return poller.pollUntilDone(); } @@ -867,11 +862,11 @@ export class DiskAccessesImpl implements DiskAccesses { private _listPrivateEndpointConnections( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams + options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskAccessName, options }, - listPrivateEndpointConnectionsOperationSpec + listPrivateEndpointConnectionsOperationSpec, ); } @@ -884,11 +879,11 @@ export class DiskAccessesImpl implements DiskAccesses { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: DiskAccessesListByResourceGroupNextOptionalParams + options?: DiskAccessesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -899,11 +894,11 @@ export class DiskAccessesImpl implements DiskAccesses { */ private _listNext( nextLink: string, - options?: DiskAccessesListNextOptionalParams + options?: DiskAccessesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -921,11 +916,11 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, nextLink: string, - options?: DiskAccessesListPrivateEndpointConnectionsNextOptionalParams + options?: DiskAccessesListPrivateEndpointConnectionsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskAccessName, nextLink, options }, - listPrivateEndpointConnectionsNextOperationSpec + listPrivateEndpointConnectionsNextOperationSpec, ); } } @@ -933,25 +928,24 @@ export class DiskAccessesImpl implements DiskAccesses { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, 201: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, 202: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, 204: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.diskAccess, queryParameters: [Parameters.apiVersion1], @@ -959,32 +953,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskAccessName + Parameters.diskAccessName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, 201: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, 202: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, 204: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.diskAccess1, queryParameters: [Parameters.apiVersion1], @@ -992,37 +985,35 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskAccessName + Parameters.diskAccessName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskAccessName + Parameters.diskAccessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", httpMethod: "DELETE", responses: { 200: {}, @@ -1030,145 +1021,117 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskAccessName + Parameters.diskAccessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskAccessList + bodyMapper: Mappers.DiskAccessList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskAccesses", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskAccesses", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskAccessList + bodyMapper: Mappers.DiskAccessList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getPrivateLinkResourcesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult - } - }, - queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.diskAccessName - ], - headerParameters: [Parameters.accept], - serializer -}; -const updateAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnection - }, - 201: { - bodyMapper: Mappers.PrivateEndpointConnection - }, - 202: { - bodyMapper: Mappers.PrivateEndpointConnection - }, - 204: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateLinkResourceListResult, }, - default: { - bodyMapper: Mappers.CloudError - } }, - requestBody: Parameters.privateEndpointConnection, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskAccessName, - Parameters.privateEndpointConnectionName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer + headerParameters: [Parameters.accept], + serializer, }; +const updateAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection, + }, + 201: { + bodyMapper: Mappers.PrivateEndpointConnection, + }, + 202: { + bodyMapper: Mappers.PrivateEndpointConnection, + }, + 204: { + bodyMapper: Mappers.PrivateEndpointConnection, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.privateEndpointConnection, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.diskAccessName, + Parameters.privateEndpointConnectionName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, + }; const getAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.diskAccessName, - Parameters.privateEndpointConnectionName - ], - headerParameters: [Parameters.accept], - serializer -}; -const deleteAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -1176,90 +1139,114 @@ const deleteAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskAccessName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; +const deleteAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.diskAccessName, + Parameters.privateEndpointConnectionName, + ], + headerParameters: [Parameters.accept], + serializer, + }; const listPrivateEndpointConnectionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.PrivateEndpointConnectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskAccessName + Parameters.diskAccessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskAccessList + bodyMapper: Mappers.DiskAccessList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskAccessList + bodyMapper: Mappers.DiskAccessList, }, default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; -const listPrivateEndpointConnectionsNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.CloudError, }, - default: { - bodyMapper: Mappers.CloudError - } }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName, - Parameters.diskAccessName ], headerParameters: [Parameters.accept], - serializer + serializer, }; +const listPrivateEndpointConnectionsNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.diskAccessName, + ], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts index 2997217ee8aa..5db7156d2f9b 100644 --- a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts +++ b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -40,7 +40,7 @@ import { DiskEncryptionSetsDeleteOptionalParams, DiskEncryptionSetsListByResourceGroupNextResponse, DiskEncryptionSetsListNextResponse, - DiskEncryptionSetsListAssociatedResourcesNextResponse + DiskEncryptionSetsListAssociatedResourcesNextResponse, } from "../models"; /// @@ -63,7 +63,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { */ public listByResourceGroup( resourceGroupName: string, - options?: DiskEncryptionSetsListByResourceGroupOptionalParams + options?: DiskEncryptionSetsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -80,16 +80,16 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: DiskEncryptionSetsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiskEncryptionSetsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -104,7 +104,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,11 +115,11 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: DiskEncryptionSetsListByResourceGroupOptionalParams + options?: DiskEncryptionSetsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -130,7 +130,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { * @param options The options parameters. */ public list( - options?: DiskEncryptionSetsListOptionalParams + options?: DiskEncryptionSetsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -145,13 +145,13 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: DiskEncryptionSetsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiskEncryptionSetsListResponse; let continuationToken = settings?.continuationToken; @@ -172,7 +172,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { } private async *listPagingAll( - options?: DiskEncryptionSetsListOptionalParams + options?: DiskEncryptionSetsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -190,12 +190,12 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { public listAssociatedResources( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams + options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAssociatedResourcesPagingAll( resourceGroupName, diskEncryptionSetName, - options + options, ); return { next() { @@ -212,9 +212,9 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName, diskEncryptionSetName, options, - settings + settings, ); - } + }, }; } @@ -222,7 +222,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiskEncryptionSetsListAssociatedResourcesResponse; let continuationToken = settings?.continuationToken; @@ -230,7 +230,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { result = await this._listAssociatedResources( resourceGroupName, diskEncryptionSetName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -242,7 +242,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName, diskEncryptionSetName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -254,12 +254,12 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { private async *listAssociatedResourcesPagingAll( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams + options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAssociatedResourcesPagingPage( resourceGroupName, diskEncryptionSetName, - options + options, )) { yield* page; } @@ -279,7 +279,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSet, - options?: DiskEncryptionSetsCreateOrUpdateOptionalParams + options?: DiskEncryptionSetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -288,21 +288,20 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -311,8 +310,8 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -320,8 +319,8 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -331,16 +330,16 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName, diskEncryptionSetName, diskEncryptionSet, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< DiskEncryptionSetsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -360,13 +359,13 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSet, - options?: DiskEncryptionSetsCreateOrUpdateOptionalParams + options?: DiskEncryptionSetsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, diskEncryptionSetName, diskEncryptionSet, - options + options, ); return poller.pollUntilDone(); } @@ -385,7 +384,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSetUpdate, - options?: DiskEncryptionSetsUpdateOptionalParams + options?: DiskEncryptionSetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -394,21 +393,20 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -417,8 +415,8 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -426,8 +424,8 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -437,16 +435,16 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName, diskEncryptionSetName, diskEncryptionSet, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< DiskEncryptionSetsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -466,13 +464,13 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSetUpdate, - options?: DiskEncryptionSetsUpdateOptionalParams + options?: DiskEncryptionSetsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, diskEncryptionSetName, diskEncryptionSet, - options + options, ); return poller.pollUntilDone(); } @@ -488,11 +486,11 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { get( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsGetOptionalParams + options?: DiskEncryptionSetsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskEncryptionSetName, options }, - getOperationSpec + getOperationSpec, ); } @@ -507,25 +505,24 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { async beginDelete( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsDeleteOptionalParams + options?: DiskEncryptionSetsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -534,8 +531,8 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -543,19 +540,19 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskEncryptionSetName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -572,12 +569,12 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { async beginDeleteAndWait( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsDeleteOptionalParams + options?: DiskEncryptionSetsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, diskEncryptionSetName, - options + options, ); return poller.pollUntilDone(); } @@ -589,11 +586,11 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { */ private _listByResourceGroup( resourceGroupName: string, - options?: DiskEncryptionSetsListByResourceGroupOptionalParams + options?: DiskEncryptionSetsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -602,7 +599,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { * @param options The options parameters. */ private _list( - options?: DiskEncryptionSetsListOptionalParams + options?: DiskEncryptionSetsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -618,11 +615,11 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { private _listAssociatedResources( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams + options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskEncryptionSetName, options }, - listAssociatedResourcesOperationSpec + listAssociatedResourcesOperationSpec, ); } @@ -635,11 +632,11 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: DiskEncryptionSetsListByResourceGroupNextOptionalParams + options?: DiskEncryptionSetsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -650,11 +647,11 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { */ private _listNext( nextLink: string, - options?: DiskEncryptionSetsListNextOptionalParams + options?: DiskEncryptionSetsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -672,11 +669,11 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, nextLink: string, - options?: DiskEncryptionSetsListAssociatedResourcesNextOptionalParams + options?: DiskEncryptionSetsListAssociatedResourcesNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskEncryptionSetName, nextLink, options }, - listAssociatedResourcesNextOperationSpec + listAssociatedResourcesNextOperationSpec, ); } } @@ -684,25 +681,24 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, 201: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, 202: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, 204: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.diskEncryptionSet, queryParameters: [Parameters.apiVersion1], @@ -710,32 +706,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskEncryptionSetName + Parameters.diskEncryptionSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, 201: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, 202: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, 204: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.diskEncryptionSet1, queryParameters: [Parameters.apiVersion1], @@ -743,37 +738,35 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskEncryptionSetName + Parameters.diskEncryptionSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskEncryptionSetName + Parameters.diskEncryptionSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", httpMethod: "DELETE", responses: { 200: {}, @@ -781,136 +774,133 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskEncryptionSetName + Parameters.diskEncryptionSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskEncryptionSetList + bodyMapper: Mappers.DiskEncryptionSetList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskEncryptionSets", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskEncryptionSets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskEncryptionSetList + bodyMapper: Mappers.DiskEncryptionSetList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAssociatedResourcesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}/associatedResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}/associatedResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceUriList + bodyMapper: Mappers.ResourceUriList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskEncryptionSetName + Parameters.diskEncryptionSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskEncryptionSetList + bodyMapper: Mappers.DiskEncryptionSetList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskEncryptionSetList + bodyMapper: Mappers.DiskEncryptionSetList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAssociatedResourcesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceUriList + bodyMapper: Mappers.ResourceUriList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.diskEncryptionSetName + Parameters.diskEncryptionSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts b/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts index c95df45e6735..0efb7f9cc094 100644 --- a/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts +++ b/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -30,13 +30,14 @@ import { DiskRestorePointGrantAccessOptionalParams, DiskRestorePointGrantAccessResponse, DiskRestorePointRevokeAccessOptionalParams, - DiskRestorePointListByRestorePointNextResponse + DiskRestorePointListByRestorePointNextResponse, } from "../models"; /// /** Class containing DiskRestorePointOperations operations. */ export class DiskRestorePointOperationsImpl - implements DiskRestorePointOperations { + implements DiskRestorePointOperations +{ private readonly client: ComputeManagementClient; /** @@ -59,13 +60,13 @@ export class DiskRestorePointOperationsImpl resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, - options?: DiskRestorePointListByRestorePointOptionalParams + options?: DiskRestorePointListByRestorePointOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByRestorePointPagingAll( resourceGroupName, restorePointCollectionName, vmRestorePointName, - options + options, ); return { next() { @@ -83,9 +84,9 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName, vmRestorePointName, options, - settings + settings, ); - } + }, }; } @@ -94,7 +95,7 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName: string, vmRestorePointName: string, options?: DiskRestorePointListByRestorePointOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiskRestorePointListByRestorePointResponse; let continuationToken = settings?.continuationToken; @@ -103,7 +104,7 @@ export class DiskRestorePointOperationsImpl resourceGroupName, restorePointCollectionName, vmRestorePointName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -116,7 +117,7 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName, vmRestorePointName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -129,13 +130,13 @@ export class DiskRestorePointOperationsImpl resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, - options?: DiskRestorePointListByRestorePointOptionalParams + options?: DiskRestorePointListByRestorePointOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByRestorePointPagingPage( resourceGroupName, restorePointCollectionName, vmRestorePointName, - options + options, )) { yield* page; } @@ -155,7 +156,7 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, - options?: DiskRestorePointGetOptionalParams + options?: DiskRestorePointGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -163,9 +164,9 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName, vmRestorePointName, diskRestorePointName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -181,16 +182,16 @@ export class DiskRestorePointOperationsImpl resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, - options?: DiskRestorePointListByRestorePointOptionalParams + options?: DiskRestorePointListByRestorePointOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, restorePointCollectionName, vmRestorePointName, - options + options, }, - listByRestorePointOperationSpec + listByRestorePointOperationSpec, ); } @@ -210,7 +211,7 @@ export class DiskRestorePointOperationsImpl vmRestorePointName: string, diskRestorePointName: string, grantAccessData: GrantAccessData, - options?: DiskRestorePointGrantAccessOptionalParams + options?: DiskRestorePointGrantAccessOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -219,21 +220,20 @@ export class DiskRestorePointOperationsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -242,8 +242,8 @@ export class DiskRestorePointOperationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -251,8 +251,8 @@ export class DiskRestorePointOperationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -264,9 +264,9 @@ export class DiskRestorePointOperationsImpl vmRestorePointName, diskRestorePointName, grantAccessData, - options + options, }, - spec: grantAccessOperationSpec + spec: grantAccessOperationSpec, }); const poller = await createHttpPoller< DiskRestorePointGrantAccessResponse, @@ -274,7 +274,7 @@ export class DiskRestorePointOperationsImpl >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -296,7 +296,7 @@ export class DiskRestorePointOperationsImpl vmRestorePointName: string, diskRestorePointName: string, grantAccessData: GrantAccessData, - options?: DiskRestorePointGrantAccessOptionalParams + options?: DiskRestorePointGrantAccessOptionalParams, ): Promise { const poller = await this.beginGrantAccess( resourceGroupName, @@ -304,7 +304,7 @@ export class DiskRestorePointOperationsImpl vmRestorePointName, diskRestorePointName, grantAccessData, - options + options, ); return poller.pollUntilDone(); } @@ -323,25 +323,24 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, - options?: DiskRestorePointRevokeAccessOptionalParams + options?: DiskRestorePointRevokeAccessOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -350,8 +349,8 @@ export class DiskRestorePointOperationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -359,8 +358,8 @@ export class DiskRestorePointOperationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -371,14 +370,14 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName, vmRestorePointName, diskRestorePointName, - options + options, }, - spec: revokeAccessOperationSpec + spec: revokeAccessOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -398,14 +397,14 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, - options?: DiskRestorePointRevokeAccessOptionalParams + options?: DiskRestorePointRevokeAccessOptionalParams, ): Promise { const poller = await this.beginRevokeAccess( resourceGroupName, restorePointCollectionName, vmRestorePointName, diskRestorePointName, - options + options, ); return poller.pollUntilDone(); } @@ -424,7 +423,7 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName: string, vmRestorePointName: string, nextLink: string, - options?: DiskRestorePointListByRestorePointNextOptionalParams + options?: DiskRestorePointListByRestorePointNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -432,9 +431,9 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName, vmRestorePointName, nextLink, - options + options, }, - listByRestorePointNextOperationSpec + listByRestorePointNextOperationSpec, ); } } @@ -442,16 +441,15 @@ export class DiskRestorePointOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskRestorePoint + bodyMapper: Mappers.DiskRestorePoint, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -460,22 +458,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.vmRestorePointName, - Parameters.diskRestorePointName + Parameters.diskRestorePointName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByRestorePointOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskRestorePointList + bodyMapper: Mappers.DiskRestorePointList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -483,31 +480,30 @@ const listByRestorePointOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.restorePointCollectionName, - Parameters.vmRestorePointName + Parameters.vmRestorePointName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const grantAccessOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/beginGetAccess", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/beginGetAccess", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 201: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 202: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 204: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.grantAccessData, queryParameters: [Parameters.apiVersion1], @@ -517,15 +513,14 @@ const grantAccessOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.vmRestorePointName, - Parameters.diskRestorePointName + Parameters.diskRestorePointName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const revokeAccessOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/endGetAccess", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/endGetAccess", httpMethod: "POST", responses: { 200: {}, @@ -533,8 +528,8 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -543,21 +538,21 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.vmRestorePointName, - Parameters.diskRestorePointName + Parameters.diskRestorePointName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByRestorePointNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskRestorePointList + bodyMapper: Mappers.DiskRestorePointList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -565,8 +560,8 @@ const listByRestorePointNextOperationSpec: coreClient.OperationSpec = { Parameters.nextLink, Parameters.resourceGroupName, Parameters.restorePointCollectionName, - Parameters.vmRestorePointName + Parameters.vmRestorePointName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/disks.ts b/sdk/compute/arm-compute/src/operations/disks.ts index 0ae26f9967c1..a1011e3c103a 100644 --- a/sdk/compute/arm-compute/src/operations/disks.ts +++ b/sdk/compute/arm-compute/src/operations/disks.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -40,7 +40,7 @@ import { DisksGrantAccessResponse, DisksRevokeAccessOptionalParams, DisksListByResourceGroupNextResponse, - DisksListNextResponse + DisksListNextResponse, } from "../models"; /// @@ -63,7 +63,7 @@ export class DisksImpl implements Disks { */ public listByResourceGroup( resourceGroupName: string, - options?: DisksListByResourceGroupOptionalParams + options?: DisksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -80,16 +80,16 @@ export class DisksImpl implements Disks { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: DisksListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DisksListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -104,7 +104,7 @@ export class DisksImpl implements Disks { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,11 +115,11 @@ export class DisksImpl implements Disks { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: DisksListByResourceGroupOptionalParams + options?: DisksListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -130,7 +130,7 @@ export class DisksImpl implements Disks { * @param options The options parameters. */ public list( - options?: DisksListOptionalParams + options?: DisksListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -145,13 +145,13 @@ export class DisksImpl implements Disks { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: DisksListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DisksListResponse; let continuationToken = settings?.continuationToken; @@ -172,7 +172,7 @@ export class DisksImpl implements Disks { } private async *listPagingAll( - options?: DisksListOptionalParams + options?: DisksListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -192,7 +192,7 @@ export class DisksImpl implements Disks { resourceGroupName: string, diskName: string, disk: Disk, - options?: DisksCreateOrUpdateOptionalParams + options?: DisksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -201,21 +201,20 @@ export class DisksImpl implements Disks { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -224,8 +223,8 @@ export class DisksImpl implements Disks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -233,22 +232,22 @@ export class DisksImpl implements Disks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskName, disk, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< DisksCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -267,13 +266,13 @@ export class DisksImpl implements Disks { resourceGroupName: string, diskName: string, disk: Disk, - options?: DisksCreateOrUpdateOptionalParams + options?: DisksCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, diskName, disk, - options + options, ); return poller.pollUntilDone(); } @@ -291,27 +290,26 @@ export class DisksImpl implements Disks { resourceGroupName: string, diskName: string, disk: DiskUpdate, - options?: DisksUpdateOptionalParams + options?: DisksUpdateOptionalParams, ): Promise< SimplePollerLike, DisksUpdateResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -320,8 +318,8 @@ export class DisksImpl implements Disks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -329,22 +327,22 @@ export class DisksImpl implements Disks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskName, disk, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< DisksUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -363,13 +361,13 @@ export class DisksImpl implements Disks { resourceGroupName: string, diskName: string, disk: DiskUpdate, - options?: DisksUpdateOptionalParams + options?: DisksUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, diskName, disk, - options + options, ); return poller.pollUntilDone(); } @@ -385,11 +383,11 @@ export class DisksImpl implements Disks { get( resourceGroupName: string, diskName: string, - options?: DisksGetOptionalParams + options?: DisksGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskName, options }, - getOperationSpec + getOperationSpec, ); } @@ -404,25 +402,24 @@ export class DisksImpl implements Disks { async beginDelete( resourceGroupName: string, diskName: string, - options?: DisksDeleteOptionalParams + options?: DisksDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -431,8 +428,8 @@ export class DisksImpl implements Disks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -440,19 +437,19 @@ export class DisksImpl implements Disks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -469,7 +466,7 @@ export class DisksImpl implements Disks { async beginDeleteAndWait( resourceGroupName: string, diskName: string, - options?: DisksDeleteOptionalParams + options?: DisksDeleteOptionalParams, ): Promise { const poller = await this.beginDelete(resourceGroupName, diskName, options); return poller.pollUntilDone(); @@ -482,11 +479,11 @@ export class DisksImpl implements Disks { */ private _listByResourceGroup( resourceGroupName: string, - options?: DisksListByResourceGroupOptionalParams + options?: DisksListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -511,7 +508,7 @@ export class DisksImpl implements Disks { resourceGroupName: string, diskName: string, grantAccessData: GrantAccessData, - options?: DisksGrantAccessOptionalParams + options?: DisksGrantAccessOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -520,21 +517,20 @@ export class DisksImpl implements Disks { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -543,8 +539,8 @@ export class DisksImpl implements Disks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -552,15 +548,15 @@ export class DisksImpl implements Disks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskName, grantAccessData, options }, - spec: grantAccessOperationSpec + spec: grantAccessOperationSpec, }); const poller = await createHttpPoller< DisksGrantAccessResponse, @@ -568,7 +564,7 @@ export class DisksImpl implements Disks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -587,13 +583,13 @@ export class DisksImpl implements Disks { resourceGroupName: string, diskName: string, grantAccessData: GrantAccessData, - options?: DisksGrantAccessOptionalParams + options?: DisksGrantAccessOptionalParams, ): Promise { const poller = await this.beginGrantAccess( resourceGroupName, diskName, grantAccessData, - options + options, ); return poller.pollUntilDone(); } @@ -609,25 +605,24 @@ export class DisksImpl implements Disks { async beginRevokeAccess( resourceGroupName: string, diskName: string, - options?: DisksRevokeAccessOptionalParams + options?: DisksRevokeAccessOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -636,8 +631,8 @@ export class DisksImpl implements Disks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -645,20 +640,20 @@ export class DisksImpl implements Disks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskName, options }, - spec: revokeAccessOperationSpec + spec: revokeAccessOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -675,12 +670,12 @@ export class DisksImpl implements Disks { async beginRevokeAccessAndWait( resourceGroupName: string, diskName: string, - options?: DisksRevokeAccessOptionalParams + options?: DisksRevokeAccessOptionalParams, ): Promise { const poller = await this.beginRevokeAccess( resourceGroupName, diskName, - options + options, ); return poller.pollUntilDone(); } @@ -694,11 +689,11 @@ export class DisksImpl implements Disks { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: DisksListByResourceGroupNextOptionalParams + options?: DisksListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -709,11 +704,11 @@ export class DisksImpl implements Disks { */ private _listNext( nextLink: string, - options?: DisksListNextOptionalParams + options?: DisksListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -721,22 +716,21 @@ export class DisksImpl implements Disks { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Disk + bodyMapper: Mappers.Disk, }, 201: { - bodyMapper: Mappers.Disk + bodyMapper: Mappers.Disk, }, 202: { - bodyMapper: Mappers.Disk + bodyMapper: Mappers.Disk, }, 204: { - bodyMapper: Mappers.Disk - } + bodyMapper: Mappers.Disk, + }, }, requestBody: Parameters.disk, queryParameters: [Parameters.apiVersion1], @@ -744,29 +738,28 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskName + Parameters.diskName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Disk + bodyMapper: Mappers.Disk, }, 201: { - bodyMapper: Mappers.Disk + bodyMapper: Mappers.Disk, }, 202: { - bodyMapper: Mappers.Disk + bodyMapper: Mappers.Disk, }, 204: { - bodyMapper: Mappers.Disk - } + bodyMapper: Mappers.Disk, + }, }, requestBody: Parameters.disk1, queryParameters: [Parameters.apiVersion1], @@ -774,34 +767,32 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskName + Parameters.diskName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Disk - } + bodyMapper: Mappers.Disk, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskName + Parameters.diskName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {} }, queryParameters: [Parameters.apiVersion1], @@ -809,58 +800,56 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskName + Parameters.diskName, ], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskList - } + bodyMapper: Mappers.DiskList, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/disks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskList - } + bodyMapper: Mappers.DiskList, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const grantAccessOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/beginGetAccess", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/beginGetAccess", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 201: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 202: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 204: { - bodyMapper: Mappers.AccessUri - } + bodyMapper: Mappers.AccessUri, + }, }, requestBody: Parameters.grantAccessData, queryParameters: [Parameters.apiVersion1], @@ -868,15 +857,14 @@ const grantAccessOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskName + Parameters.diskName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const revokeAccessOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/endGetAccess", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/endGetAccess", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {} }, queryParameters: [Parameters.apiVersion1], @@ -884,40 +872,40 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskName + Parameters.diskName, ], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskList - } + bodyMapper: Mappers.DiskList, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskList - } + bodyMapper: Mappers.DiskList, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/galleries.ts b/sdk/compute/arm-compute/src/operations/galleries.ts index 7271bc6a0d0f..4789b75ff38e 100644 --- a/sdk/compute/arm-compute/src/operations/galleries.ts +++ b/sdk/compute/arm-compute/src/operations/galleries.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -36,7 +36,7 @@ import { GalleriesGetResponse, GalleriesDeleteOptionalParams, GalleriesListByResourceGroupNextResponse, - GalleriesListNextResponse + GalleriesListNextResponse, } from "../models"; /// @@ -59,7 +59,7 @@ export class GalleriesImpl implements Galleries { */ public listByResourceGroup( resourceGroupName: string, - options?: GalleriesListByResourceGroupOptionalParams + options?: GalleriesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -76,16 +76,16 @@ export class GalleriesImpl implements Galleries { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: GalleriesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GalleriesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +100,7 @@ export class GalleriesImpl implements Galleries { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -111,11 +111,11 @@ export class GalleriesImpl implements Galleries { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: GalleriesListByResourceGroupOptionalParams + options?: GalleriesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -126,7 +126,7 @@ export class GalleriesImpl implements Galleries { * @param options The options parameters. */ public list( - options?: GalleriesListOptionalParams + options?: GalleriesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -141,13 +141,13 @@ export class GalleriesImpl implements Galleries { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: GalleriesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GalleriesListResponse; let continuationToken = settings?.continuationToken; @@ -168,7 +168,7 @@ export class GalleriesImpl implements Galleries { } private async *listPagingAll( - options?: GalleriesListOptionalParams + options?: GalleriesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -187,7 +187,7 @@ export class GalleriesImpl implements Galleries { resourceGroupName: string, galleryName: string, gallery: Gallery, - options?: GalleriesCreateOrUpdateOptionalParams + options?: GalleriesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -196,21 +196,20 @@ export class GalleriesImpl implements Galleries { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -219,8 +218,8 @@ export class GalleriesImpl implements Galleries { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -228,22 +227,22 @@ export class GalleriesImpl implements Galleries { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, galleryName, gallery, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< GalleriesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -261,13 +260,13 @@ export class GalleriesImpl implements Galleries { resourceGroupName: string, galleryName: string, gallery: Gallery, - options?: GalleriesCreateOrUpdateOptionalParams + options?: GalleriesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, galleryName, gallery, - options + options, ); return poller.pollUntilDone(); } @@ -284,7 +283,7 @@ export class GalleriesImpl implements Galleries { resourceGroupName: string, galleryName: string, gallery: GalleryUpdate, - options?: GalleriesUpdateOptionalParams + options?: GalleriesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -293,21 +292,20 @@ export class GalleriesImpl implements Galleries { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -316,8 +314,8 @@ export class GalleriesImpl implements Galleries { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -325,22 +323,22 @@ export class GalleriesImpl implements Galleries { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, galleryName, gallery, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< GalleriesUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -358,13 +356,13 @@ export class GalleriesImpl implements Galleries { resourceGroupName: string, galleryName: string, gallery: GalleryUpdate, - options?: GalleriesUpdateOptionalParams + options?: GalleriesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, galleryName, gallery, - options + options, ); return poller.pollUntilDone(); } @@ -378,11 +376,11 @@ export class GalleriesImpl implements Galleries { get( resourceGroupName: string, galleryName: string, - options?: GalleriesGetOptionalParams + options?: GalleriesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, options }, - getOperationSpec + getOperationSpec, ); } @@ -395,25 +393,24 @@ export class GalleriesImpl implements Galleries { async beginDelete( resourceGroupName: string, galleryName: string, - options?: GalleriesDeleteOptionalParams + options?: GalleriesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -422,8 +419,8 @@ export class GalleriesImpl implements Galleries { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -431,19 +428,19 @@ export class GalleriesImpl implements Galleries { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, galleryName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -458,12 +455,12 @@ export class GalleriesImpl implements Galleries { async beginDeleteAndWait( resourceGroupName: string, galleryName: string, - options?: GalleriesDeleteOptionalParams + options?: GalleriesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, galleryName, - options + options, ); return poller.pollUntilDone(); } @@ -475,11 +472,11 @@ export class GalleriesImpl implements Galleries { */ private _listByResourceGroup( resourceGroupName: string, - options?: GalleriesListByResourceGroupOptionalParams + options?: GalleriesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -488,7 +485,7 @@ export class GalleriesImpl implements Galleries { * @param options The options parameters. */ private _list( - options?: GalleriesListOptionalParams + options?: GalleriesListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -502,11 +499,11 @@ export class GalleriesImpl implements Galleries { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: GalleriesListByResourceGroupNextOptionalParams + options?: GalleriesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -517,11 +514,11 @@ export class GalleriesImpl implements Galleries { */ private _listNext( nextLink: string, - options?: GalleriesListNextOptionalParams + options?: GalleriesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -529,25 +526,24 @@ export class GalleriesImpl implements Galleries { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, 201: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, 202: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, 204: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.gallery, queryParameters: [Parameters.apiVersion3], @@ -555,32 +551,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, 201: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, 202: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, 204: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.gallery1, queryParameters: [Parameters.apiVersion3], @@ -588,41 +583,39 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion3, Parameters.select1, - Parameters.expand10 + Parameters.expand10, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", httpMethod: "DELETE", responses: { 200: {}, @@ -630,92 +623,91 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryList + bodyMapper: Mappers.GalleryList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryList + bodyMapper: Mappers.GalleryList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryList + bodyMapper: Mappers.GalleryList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryList + bodyMapper: Mappers.GalleryList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts index db2c30c71f9a..6b2204ef640c 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,13 +32,14 @@ import { GalleryApplicationVersionsGetOptionalParams, GalleryApplicationVersionsGetResponse, GalleryApplicationVersionsDeleteOptionalParams, - GalleryApplicationVersionsListByGalleryApplicationNextResponse + GalleryApplicationVersionsListByGalleryApplicationNextResponse, } from "../models"; /// /** Class containing GalleryApplicationVersions operations. */ export class GalleryApplicationVersionsImpl - implements GalleryApplicationVersions { + implements GalleryApplicationVersions +{ private readonly client: ComputeManagementClient; /** @@ -62,13 +63,13 @@ export class GalleryApplicationVersionsImpl resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams + options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByGalleryApplicationPagingAll( resourceGroupName, galleryName, galleryApplicationName, - options + options, ); return { next() { @@ -86,9 +87,9 @@ export class GalleryApplicationVersionsImpl galleryName, galleryApplicationName, options, - settings + settings, ); - } + }, }; } @@ -97,7 +98,7 @@ export class GalleryApplicationVersionsImpl galleryName: string, galleryApplicationName: string, options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GalleryApplicationVersionsListByGalleryApplicationResponse; let continuationToken = settings?.continuationToken; @@ -106,7 +107,7 @@ export class GalleryApplicationVersionsImpl resourceGroupName, galleryName, galleryApplicationName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -119,7 +120,7 @@ export class GalleryApplicationVersionsImpl galleryName, galleryApplicationName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -132,13 +133,13 @@ export class GalleryApplicationVersionsImpl resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams + options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByGalleryApplicationPagingPage( resourceGroupName, galleryName, galleryApplicationName, - options + options, )) { yield* page; } @@ -164,7 +165,7 @@ export class GalleryApplicationVersionsImpl galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, - options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams + options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -173,21 +174,20 @@ export class GalleryApplicationVersionsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -196,8 +196,8 @@ export class GalleryApplicationVersionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -205,8 +205,8 @@ export class GalleryApplicationVersionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -218,16 +218,16 @@ export class GalleryApplicationVersionsImpl galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< GalleryApplicationVersionsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -253,7 +253,7 @@ export class GalleryApplicationVersionsImpl galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, - options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams + options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -261,7 +261,7 @@ export class GalleryApplicationVersionsImpl galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, - options + options, ); return poller.pollUntilDone(); } @@ -286,7 +286,7 @@ export class GalleryApplicationVersionsImpl galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, - options?: GalleryApplicationVersionsUpdateOptionalParams + options?: GalleryApplicationVersionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -295,21 +295,20 @@ export class GalleryApplicationVersionsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -318,8 +317,8 @@ export class GalleryApplicationVersionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -327,8 +326,8 @@ export class GalleryApplicationVersionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -340,16 +339,16 @@ export class GalleryApplicationVersionsImpl galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< GalleryApplicationVersionsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -375,7 +374,7 @@ export class GalleryApplicationVersionsImpl galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, - options?: GalleryApplicationVersionsUpdateOptionalParams + options?: GalleryApplicationVersionsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -383,7 +382,7 @@ export class GalleryApplicationVersionsImpl galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, - options + options, ); return poller.pollUntilDone(); } @@ -403,7 +402,7 @@ export class GalleryApplicationVersionsImpl galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, - options?: GalleryApplicationVersionsGetOptionalParams + options?: GalleryApplicationVersionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -411,9 +410,9 @@ export class GalleryApplicationVersionsImpl galleryName, galleryApplicationName, galleryApplicationVersionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -432,25 +431,24 @@ export class GalleryApplicationVersionsImpl galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, - options?: GalleryApplicationVersionsDeleteOptionalParams + options?: GalleryApplicationVersionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -459,8 +457,8 @@ export class GalleryApplicationVersionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -468,8 +466,8 @@ export class GalleryApplicationVersionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -480,13 +478,13 @@ export class GalleryApplicationVersionsImpl galleryName, galleryApplicationName, galleryApplicationVersionName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -507,14 +505,14 @@ export class GalleryApplicationVersionsImpl galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, - options?: GalleryApplicationVersionsDeleteOptionalParams + options?: GalleryApplicationVersionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, - options + options, ); return poller.pollUntilDone(); } @@ -532,11 +530,11 @@ export class GalleryApplicationVersionsImpl resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams + options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, galleryApplicationName, options }, - listByGalleryApplicationOperationSpec + listByGalleryApplicationOperationSpec, ); } @@ -556,7 +554,7 @@ export class GalleryApplicationVersionsImpl galleryName: string, galleryApplicationName: string, nextLink: string, - options?: GalleryApplicationVersionsListByGalleryApplicationNextOptionalParams + options?: GalleryApplicationVersionsListByGalleryApplicationNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -564,9 +562,9 @@ export class GalleryApplicationVersionsImpl galleryName, galleryApplicationName, nextLink, - options + options, }, - listByGalleryApplicationNextOperationSpec + listByGalleryApplicationNextOperationSpec, ); } } @@ -574,25 +572,24 @@ export class GalleryApplicationVersionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, 201: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, 202: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, 204: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryApplicationVersion, queryParameters: [Parameters.apiVersion3], @@ -602,32 +599,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName, - Parameters.galleryApplicationVersionName + Parameters.galleryApplicationVersionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, 201: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, 202: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, 204: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryApplicationVersion1, queryParameters: [Parameters.apiVersion3], @@ -637,23 +633,22 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName, - Parameters.galleryApplicationVersionName + Parameters.galleryApplicationVersionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3, Parameters.expand11], urlParameters: [ @@ -662,14 +657,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName, - Parameters.galleryApplicationVersionName + Parameters.galleryApplicationVersionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -677,8 +671,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -687,22 +681,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName, - Parameters.galleryApplicationVersionName + Parameters.galleryApplicationVersionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryApplicationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryApplicationVersionList + bodyMapper: Mappers.GalleryApplicationVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -710,21 +703,21 @@ const listByGalleryApplicationOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryApplicationName + Parameters.galleryApplicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryApplicationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryApplicationVersionList + bodyMapper: Mappers.GalleryApplicationVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -732,8 +725,8 @@ const listByGalleryApplicationNextOperationSpec: coreClient.OperationSpec = { Parameters.nextLink, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryApplicationName + Parameters.galleryApplicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/galleryApplications.ts b/sdk/compute/arm-compute/src/operations/galleryApplications.ts index 03fee87c042e..7a1acfa42e73 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplications.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplications.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { GalleryApplicationsGetOptionalParams, GalleryApplicationsGetResponse, GalleryApplicationsDeleteOptionalParams, - GalleryApplicationsListByGalleryNextResponse + GalleryApplicationsListByGalleryNextResponse, } from "../models"; /// @@ -58,12 +58,12 @@ export class GalleryApplicationsImpl implements GalleryApplications { public listByGallery( resourceGroupName: string, galleryName: string, - options?: GalleryApplicationsListByGalleryOptionalParams + options?: GalleryApplicationsListByGalleryOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByGalleryPagingAll( resourceGroupName, galleryName, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class GalleryApplicationsImpl implements GalleryApplications { resourceGroupName, galleryName, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class GalleryApplicationsImpl implements GalleryApplications { resourceGroupName: string, galleryName: string, options?: GalleryApplicationsListByGalleryOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GalleryApplicationsListByGalleryResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class GalleryApplicationsImpl implements GalleryApplications { result = await this._listByGallery( resourceGroupName, galleryName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -110,7 +110,7 @@ export class GalleryApplicationsImpl implements GalleryApplications { resourceGroupName, galleryName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -122,12 +122,12 @@ export class GalleryApplicationsImpl implements GalleryApplications { private async *listByGalleryPagingAll( resourceGroupName: string, galleryName: string, - options?: GalleryApplicationsListByGalleryOptionalParams + options?: GalleryApplicationsListByGalleryOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByGalleryPagingPage( resourceGroupName, galleryName, - options + options, )) { yield* page; } @@ -149,7 +149,7 @@ export class GalleryApplicationsImpl implements GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, - options?: GalleryApplicationsCreateOrUpdateOptionalParams + options?: GalleryApplicationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -158,21 +158,20 @@ export class GalleryApplicationsImpl implements GalleryApplications { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -181,8 +180,8 @@ export class GalleryApplicationsImpl implements GalleryApplications { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -190,8 +189,8 @@ export class GalleryApplicationsImpl implements GalleryApplications { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -202,16 +201,16 @@ export class GalleryApplicationsImpl implements GalleryApplications { galleryName, galleryApplicationName, galleryApplication, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< GalleryApplicationsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -233,14 +232,14 @@ export class GalleryApplicationsImpl implements GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, - options?: GalleryApplicationsCreateOrUpdateOptionalParams + options?: GalleryApplicationsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, galleryName, galleryApplicationName, galleryApplication, - options + options, ); return poller.pollUntilDone(); } @@ -261,7 +260,7 @@ export class GalleryApplicationsImpl implements GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, - options?: GalleryApplicationsUpdateOptionalParams + options?: GalleryApplicationsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -270,21 +269,20 @@ export class GalleryApplicationsImpl implements GalleryApplications { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -293,8 +291,8 @@ export class GalleryApplicationsImpl implements GalleryApplications { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -302,8 +300,8 @@ export class GalleryApplicationsImpl implements GalleryApplications { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -314,16 +312,16 @@ export class GalleryApplicationsImpl implements GalleryApplications { galleryName, galleryApplicationName, galleryApplication, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< GalleryApplicationsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -345,14 +343,14 @@ export class GalleryApplicationsImpl implements GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, - options?: GalleryApplicationsUpdateOptionalParams + options?: GalleryApplicationsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, galleryName, galleryApplicationName, galleryApplication, - options + options, ); return poller.pollUntilDone(); } @@ -369,11 +367,11 @@ export class GalleryApplicationsImpl implements GalleryApplications { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationsGetOptionalParams + options?: GalleryApplicationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, galleryApplicationName, options }, - getOperationSpec + getOperationSpec, ); } @@ -389,25 +387,24 @@ export class GalleryApplicationsImpl implements GalleryApplications { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationsDeleteOptionalParams + options?: GalleryApplicationsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -416,8 +413,8 @@ export class GalleryApplicationsImpl implements GalleryApplications { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -425,19 +422,19 @@ export class GalleryApplicationsImpl implements GalleryApplications { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, galleryName, galleryApplicationName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -455,13 +452,13 @@ export class GalleryApplicationsImpl implements GalleryApplications { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationsDeleteOptionalParams + options?: GalleryApplicationsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, galleryName, galleryApplicationName, - options + options, ); return poller.pollUntilDone(); } @@ -476,11 +473,11 @@ export class GalleryApplicationsImpl implements GalleryApplications { private _listByGallery( resourceGroupName: string, galleryName: string, - options?: GalleryApplicationsListByGalleryOptionalParams + options?: GalleryApplicationsListByGalleryOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, options }, - listByGalleryOperationSpec + listByGalleryOperationSpec, ); } @@ -496,11 +493,11 @@ export class GalleryApplicationsImpl implements GalleryApplications { resourceGroupName: string, galleryName: string, nextLink: string, - options?: GalleryApplicationsListByGalleryNextOptionalParams + options?: GalleryApplicationsListByGalleryNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, nextLink, options }, - listByGalleryNextOperationSpec + listByGalleryNextOperationSpec, ); } } @@ -508,25 +505,24 @@ export class GalleryApplicationsImpl implements GalleryApplications { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, 201: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, 202: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, 204: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryApplication, queryParameters: [Parameters.apiVersion3], @@ -535,32 +531,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryApplicationName + Parameters.galleryApplicationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, 201: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, 202: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, 204: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryApplication1, queryParameters: [Parameters.apiVersion3], @@ -569,23 +564,22 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryApplicationName + Parameters.galleryApplicationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -593,14 +587,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryApplicationName + Parameters.galleryApplicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", httpMethod: "DELETE", responses: { 200: {}, @@ -608,8 +601,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -617,51 +610,50 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryApplicationName + Parameters.galleryApplicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryApplicationList + bodyMapper: Mappers.GalleryApplicationList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryApplicationList + bodyMapper: Mappers.GalleryApplicationList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts index c271b859db0b..60853007870d 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { GalleryImageVersionsGetOptionalParams, GalleryImageVersionsGetResponse, GalleryImageVersionsDeleteOptionalParams, - GalleryImageVersionsListByGalleryImageNextResponse + GalleryImageVersionsListByGalleryImageNextResponse, } from "../models"; /// @@ -60,13 +60,13 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImageVersionsListByGalleryImageOptionalParams + options?: GalleryImageVersionsListByGalleryImageOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByGalleryImagePagingAll( resourceGroupName, galleryName, galleryImageName, - options + options, ); return { next() { @@ -84,9 +84,9 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName, galleryImageName, options, - settings + settings, ); - } + }, }; } @@ -95,7 +95,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName: string, galleryImageName: string, options?: GalleryImageVersionsListByGalleryImageOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GalleryImageVersionsListByGalleryImageResponse; let continuationToken = settings?.continuationToken; @@ -104,7 +104,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { resourceGroupName, galleryName, galleryImageName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -117,7 +117,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName, galleryImageName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -130,13 +130,13 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImageVersionsListByGalleryImageOptionalParams + options?: GalleryImageVersionsListByGalleryImageOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByGalleryImagePagingPage( resourceGroupName, galleryName, galleryImageName, - options + options, )) { yield* page; } @@ -161,7 +161,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, - options?: GalleryImageVersionsCreateOrUpdateOptionalParams + options?: GalleryImageVersionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -170,21 +170,20 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -193,8 +192,8 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -202,8 +201,8 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -215,16 +214,16 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName, galleryImageVersionName, galleryImageVersion, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< GalleryImageVersionsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -249,7 +248,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, - options?: GalleryImageVersionsCreateOrUpdateOptionalParams + options?: GalleryImageVersionsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -257,7 +256,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName, galleryImageVersionName, galleryImageVersion, - options + options, ); return poller.pollUntilDone(); } @@ -280,7 +279,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, - options?: GalleryImageVersionsUpdateOptionalParams + options?: GalleryImageVersionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -289,21 +288,20 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -312,8 +310,8 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -321,8 +319,8 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -334,16 +332,16 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName, galleryImageVersionName, galleryImageVersion, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< GalleryImageVersionsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -367,7 +365,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, - options?: GalleryImageVersionsUpdateOptionalParams + options?: GalleryImageVersionsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -375,7 +373,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName, galleryImageVersionName, galleryImageVersion, - options + options, ); return poller.pollUntilDone(); } @@ -393,7 +391,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: GalleryImageVersionsGetOptionalParams + options?: GalleryImageVersionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -401,9 +399,9 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName, galleryImageName, galleryImageVersionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -420,25 +418,24 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: GalleryImageVersionsDeleteOptionalParams + options?: GalleryImageVersionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -447,8 +444,8 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -456,8 +453,8 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -468,13 +465,13 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName, galleryImageName, galleryImageVersionName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -493,14 +490,14 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: GalleryImageVersionsDeleteOptionalParams + options?: GalleryImageVersionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, galleryName, galleryImageName, galleryImageVersionName, - options + options, ); return poller.pollUntilDone(); } @@ -517,11 +514,11 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImageVersionsListByGalleryImageOptionalParams + options?: GalleryImageVersionsListByGalleryImageOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, galleryImageName, options }, - listByGalleryImageOperationSpec + listByGalleryImageOperationSpec, ); } @@ -539,11 +536,11 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName: string, galleryImageName: string, nextLink: string, - options?: GalleryImageVersionsListByGalleryImageNextOptionalParams + options?: GalleryImageVersionsListByGalleryImageNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, galleryImageName, nextLink, options }, - listByGalleryImageNextOperationSpec + listByGalleryImageNextOperationSpec, ); } } @@ -551,25 +548,24 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, 201: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, 202: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, 204: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryImageVersion, queryParameters: [Parameters.apiVersion3], @@ -579,32 +575,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName, - Parameters.galleryImageVersionName + Parameters.galleryImageVersionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, 201: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, 202: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, 204: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryImageVersion1, queryParameters: [Parameters.apiVersion3], @@ -614,23 +609,22 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName, - Parameters.galleryImageVersionName + Parameters.galleryImageVersionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3, Parameters.expand11], urlParameters: [ @@ -639,14 +633,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName, - Parameters.galleryImageVersionName + Parameters.galleryImageVersionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -654,8 +647,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -664,22 +657,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName, - Parameters.galleryImageVersionName + Parameters.galleryImageVersionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryImageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryImageVersionList + bodyMapper: Mappers.GalleryImageVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -687,21 +679,21 @@ const listByGalleryImageOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryImageName + Parameters.galleryImageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryImageNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryImageVersionList + bodyMapper: Mappers.GalleryImageVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -709,8 +701,8 @@ const listByGalleryImageNextOperationSpec: coreClient.OperationSpec = { Parameters.nextLink, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryImageName + Parameters.galleryImageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/galleryImages.ts b/sdk/compute/arm-compute/src/operations/galleryImages.ts index e46aa4ef9a1d..ceaec3309e10 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImages.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { GalleryImagesGetOptionalParams, GalleryImagesGetResponse, GalleryImagesDeleteOptionalParams, - GalleryImagesListByGalleryNextResponse + GalleryImagesListByGalleryNextResponse, } from "../models"; /// @@ -58,12 +58,12 @@ export class GalleryImagesImpl implements GalleryImages { public listByGallery( resourceGroupName: string, galleryName: string, - options?: GalleryImagesListByGalleryOptionalParams + options?: GalleryImagesListByGalleryOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByGalleryPagingAll( resourceGroupName, galleryName, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class GalleryImagesImpl implements GalleryImages { resourceGroupName, galleryName, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class GalleryImagesImpl implements GalleryImages { resourceGroupName: string, galleryName: string, options?: GalleryImagesListByGalleryOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GalleryImagesListByGalleryResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class GalleryImagesImpl implements GalleryImages { result = await this._listByGallery( resourceGroupName, galleryName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -110,7 +110,7 @@ export class GalleryImagesImpl implements GalleryImages { resourceGroupName, galleryName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -122,12 +122,12 @@ export class GalleryImagesImpl implements GalleryImages { private async *listByGalleryPagingAll( resourceGroupName: string, galleryName: string, - options?: GalleryImagesListByGalleryOptionalParams + options?: GalleryImagesListByGalleryOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByGalleryPagingPage( resourceGroupName, galleryName, - options + options, )) { yield* page; } @@ -149,7 +149,7 @@ export class GalleryImagesImpl implements GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImage, - options?: GalleryImagesCreateOrUpdateOptionalParams + options?: GalleryImagesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -158,21 +158,20 @@ export class GalleryImagesImpl implements GalleryImages { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -181,8 +180,8 @@ export class GalleryImagesImpl implements GalleryImages { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -190,8 +189,8 @@ export class GalleryImagesImpl implements GalleryImages { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -202,16 +201,16 @@ export class GalleryImagesImpl implements GalleryImages { galleryName, galleryImageName, galleryImage, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< GalleryImagesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -233,14 +232,14 @@ export class GalleryImagesImpl implements GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImage, - options?: GalleryImagesCreateOrUpdateOptionalParams + options?: GalleryImagesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, galleryName, galleryImageName, galleryImage, - options + options, ); return poller.pollUntilDone(); } @@ -261,7 +260,7 @@ export class GalleryImagesImpl implements GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, - options?: GalleryImagesUpdateOptionalParams + options?: GalleryImagesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -270,21 +269,20 @@ export class GalleryImagesImpl implements GalleryImages { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -293,8 +291,8 @@ export class GalleryImagesImpl implements GalleryImages { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -302,8 +300,8 @@ export class GalleryImagesImpl implements GalleryImages { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -314,16 +312,16 @@ export class GalleryImagesImpl implements GalleryImages { galleryName, galleryImageName, galleryImage, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< GalleryImagesUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -345,14 +343,14 @@ export class GalleryImagesImpl implements GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, - options?: GalleryImagesUpdateOptionalParams + options?: GalleryImagesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, galleryName, galleryImageName, galleryImage, - options + options, ); return poller.pollUntilDone(); } @@ -369,11 +367,11 @@ export class GalleryImagesImpl implements GalleryImages { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImagesGetOptionalParams + options?: GalleryImagesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, galleryImageName, options }, - getOperationSpec + getOperationSpec, ); } @@ -389,25 +387,24 @@ export class GalleryImagesImpl implements GalleryImages { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImagesDeleteOptionalParams + options?: GalleryImagesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -416,8 +413,8 @@ export class GalleryImagesImpl implements GalleryImages { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -425,19 +422,19 @@ export class GalleryImagesImpl implements GalleryImages { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, galleryName, galleryImageName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -455,13 +452,13 @@ export class GalleryImagesImpl implements GalleryImages { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImagesDeleteOptionalParams + options?: GalleryImagesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, galleryName, galleryImageName, - options + options, ); return poller.pollUntilDone(); } @@ -476,11 +473,11 @@ export class GalleryImagesImpl implements GalleryImages { private _listByGallery( resourceGroupName: string, galleryName: string, - options?: GalleryImagesListByGalleryOptionalParams + options?: GalleryImagesListByGalleryOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, options }, - listByGalleryOperationSpec + listByGalleryOperationSpec, ); } @@ -496,11 +493,11 @@ export class GalleryImagesImpl implements GalleryImages { resourceGroupName: string, galleryName: string, nextLink: string, - options?: GalleryImagesListByGalleryNextOptionalParams + options?: GalleryImagesListByGalleryNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, nextLink, options }, - listByGalleryNextOperationSpec + listByGalleryNextOperationSpec, ); } } @@ -508,25 +505,24 @@ export class GalleryImagesImpl implements GalleryImages { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, 201: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, 202: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, 204: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryImage, queryParameters: [Parameters.apiVersion3], @@ -535,32 +531,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryImageName + Parameters.galleryImageName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, 201: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, 202: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, 204: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryImage1, queryParameters: [Parameters.apiVersion3], @@ -569,23 +564,22 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryImageName + Parameters.galleryImageName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -593,14 +587,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryImageName + Parameters.galleryImageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", httpMethod: "DELETE", responses: { 200: {}, @@ -608,8 +601,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -617,51 +610,50 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryImageName + Parameters.galleryImageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryImageList + bodyMapper: Mappers.GalleryImageList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryImageList + bodyMapper: Mappers.GalleryImageList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts index 717a581ef043..dafbd027979c 100644 --- a/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts +++ b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts @@ -14,13 +14,13 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { SharingUpdate, GallerySharingProfileUpdateOptionalParams, - GallerySharingProfileUpdateResponse + GallerySharingProfileUpdateResponse, } from "../models"; /** Class containing GallerySharingProfile operations. */ @@ -46,7 +46,7 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { resourceGroupName: string, galleryName: string, sharingUpdate: SharingUpdate, - options?: GallerySharingProfileUpdateOptionalParams + options?: GallerySharingProfileUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -55,21 +55,20 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -78,8 +77,8 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -87,22 +86,22 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, galleryName, sharingUpdate, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< GallerySharingProfileUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -119,13 +118,13 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { resourceGroupName: string, galleryName: string, sharingUpdate: SharingUpdate, - options?: GallerySharingProfileUpdateOptionalParams + options?: GallerySharingProfileUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, galleryName, sharingUpdate, - options + options, ); return poller.pollUntilDone(); } @@ -134,25 +133,24 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.SharingUpdate + bodyMapper: Mappers.SharingUpdate, }, 201: { - bodyMapper: Mappers.SharingUpdate + bodyMapper: Mappers.SharingUpdate, }, 202: { - bodyMapper: Mappers.SharingUpdate + bodyMapper: Mappers.SharingUpdate, }, 204: { - bodyMapper: Mappers.SharingUpdate + bodyMapper: Mappers.SharingUpdate, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.sharingUpdate, queryParameters: [Parameters.apiVersion3], @@ -160,9 +158,9 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/images.ts b/sdk/compute/arm-compute/src/operations/images.ts index c59a61a63b0b..ff652c103cae 100644 --- a/sdk/compute/arm-compute/src/operations/images.ts +++ b/sdk/compute/arm-compute/src/operations/images.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -36,7 +36,7 @@ import { ImagesGetOptionalParams, ImagesGetResponse, ImagesListByResourceGroupNextResponse, - ImagesListNextResponse + ImagesListNextResponse, } from "../models"; /// @@ -60,7 +60,7 @@ export class ImagesImpl implements Images { */ public listByResourceGroup( resourceGroupName: string, - options?: ImagesListByResourceGroupOptionalParams + options?: ImagesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -77,16 +77,16 @@ export class ImagesImpl implements Images { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ImagesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ImagesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +101,7 @@ export class ImagesImpl implements Images { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -112,11 +112,11 @@ export class ImagesImpl implements Images { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ImagesListByResourceGroupOptionalParams + options?: ImagesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -128,7 +128,7 @@ export class ImagesImpl implements Images { * @param options The options parameters. */ public list( - options?: ImagesListOptionalParams + options?: ImagesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -143,13 +143,13 @@ export class ImagesImpl implements Images { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ImagesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ImagesListResponse; let continuationToken = settings?.continuationToken; @@ -170,7 +170,7 @@ export class ImagesImpl implements Images { } private async *listPagingAll( - options?: ImagesListOptionalParams + options?: ImagesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -188,7 +188,7 @@ export class ImagesImpl implements Images { resourceGroupName: string, imageName: string, parameters: Image, - options?: ImagesCreateOrUpdateOptionalParams + options?: ImagesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -197,21 +197,20 @@ export class ImagesImpl implements Images { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -220,8 +219,8 @@ export class ImagesImpl implements Images { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -229,22 +228,22 @@ export class ImagesImpl implements Images { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, imageName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ImagesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -261,13 +260,13 @@ export class ImagesImpl implements Images { resourceGroupName: string, imageName: string, parameters: Image, - options?: ImagesCreateOrUpdateOptionalParams + options?: ImagesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, imageName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -283,27 +282,26 @@ export class ImagesImpl implements Images { resourceGroupName: string, imageName: string, parameters: ImageUpdate, - options?: ImagesUpdateOptionalParams + options?: ImagesUpdateOptionalParams, ): Promise< SimplePollerLike, ImagesUpdateResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -312,8 +310,8 @@ export class ImagesImpl implements Images { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -321,22 +319,22 @@ export class ImagesImpl implements Images { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, imageName, parameters, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< ImagesUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -353,13 +351,13 @@ export class ImagesImpl implements Images { resourceGroupName: string, imageName: string, parameters: ImageUpdate, - options?: ImagesUpdateOptionalParams + options?: ImagesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, imageName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -373,25 +371,24 @@ export class ImagesImpl implements Images { async beginDelete( resourceGroupName: string, imageName: string, - options?: ImagesDeleteOptionalParams + options?: ImagesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -400,8 +397,8 @@ export class ImagesImpl implements Images { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -409,19 +406,19 @@ export class ImagesImpl implements Images { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, imageName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -436,12 +433,12 @@ export class ImagesImpl implements Images { async beginDeleteAndWait( resourceGroupName: string, imageName: string, - options?: ImagesDeleteOptionalParams + options?: ImagesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, imageName, - options + options, ); return poller.pollUntilDone(); } @@ -455,11 +452,11 @@ export class ImagesImpl implements Images { get( resourceGroupName: string, imageName: string, - options?: ImagesGetOptionalParams + options?: ImagesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, imageName, options }, - getOperationSpec + getOperationSpec, ); } @@ -471,11 +468,11 @@ export class ImagesImpl implements Images { */ private _listByResourceGroup( resourceGroupName: string, - options?: ImagesListByResourceGroupOptionalParams + options?: ImagesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -485,7 +482,7 @@ export class ImagesImpl implements Images { * @param options The options parameters. */ private _list( - options?: ImagesListOptionalParams + options?: ImagesListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -499,11 +496,11 @@ export class ImagesImpl implements Images { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ImagesListByResourceGroupNextOptionalParams + options?: ImagesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -514,11 +511,11 @@ export class ImagesImpl implements Images { */ private _listNext( nextLink: string, - options?: ImagesListNextOptionalParams + options?: ImagesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -526,74 +523,71 @@ export class ImagesImpl implements Images { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, 201: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, 202: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, 204: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters20, + requestBody: Parameters.parameters22, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.imageName + Parameters.imageName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, 201: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, 202: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, 204: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters21, + requestBody: Parameters.parameters23, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.imageName + Parameters.imageName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", httpMethod: "DELETE", responses: { 200: {}, @@ -601,114 +595,112 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.imageName + Parameters.imageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.imageName + Parameters.imageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ImageListResult + bodyMapper: Mappers.ImageListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/images", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ImageListResult + bodyMapper: Mappers.ImageListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ImageListResult + bodyMapper: Mappers.ImageListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ImageListResult + bodyMapper: Mappers.ImageListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/logAnalytics.ts b/sdk/compute/arm-compute/src/operations/logAnalytics.ts index 1ee43c16df21..ae76d32997d3 100644 --- a/sdk/compute/arm-compute/src/operations/logAnalytics.ts +++ b/sdk/compute/arm-compute/src/operations/logAnalytics.ts @@ -14,7 +14,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -23,7 +23,7 @@ import { LogAnalyticsExportRequestRateByIntervalResponse, ThrottledRequestsInput, LogAnalyticsExportThrottledRequestsOptionalParams, - LogAnalyticsExportThrottledRequestsResponse + LogAnalyticsExportThrottledRequestsResponse, } from "../models"; /** Class containing LogAnalytics operations. */ @@ -48,7 +48,7 @@ export class LogAnalyticsImpl implements LogAnalytics { async beginExportRequestRateByInterval( location: string, parameters: RequestRateByIntervalInput, - options?: LogAnalyticsExportRequestRateByIntervalOptionalParams + options?: LogAnalyticsExportRequestRateByIntervalOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -57,21 +57,20 @@ export class LogAnalyticsImpl implements LogAnalytics { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -80,8 +79,8 @@ export class LogAnalyticsImpl implements LogAnalytics { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -89,15 +88,15 @@ export class LogAnalyticsImpl implements LogAnalytics { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { location, parameters, options }, - spec: exportRequestRateByIntervalOperationSpec + spec: exportRequestRateByIntervalOperationSpec, }); const poller = await createHttpPoller< LogAnalyticsExportRequestRateByIntervalResponse, @@ -105,7 +104,7 @@ export class LogAnalyticsImpl implements LogAnalytics { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -121,12 +120,12 @@ export class LogAnalyticsImpl implements LogAnalytics { async beginExportRequestRateByIntervalAndWait( location: string, parameters: RequestRateByIntervalInput, - options?: LogAnalyticsExportRequestRateByIntervalOptionalParams + options?: LogAnalyticsExportRequestRateByIntervalOptionalParams, ): Promise { const poller = await this.beginExportRequestRateByInterval( location, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -140,7 +139,7 @@ export class LogAnalyticsImpl implements LogAnalytics { async beginExportThrottledRequests( location: string, parameters: ThrottledRequestsInput, - options?: LogAnalyticsExportThrottledRequestsOptionalParams + options?: LogAnalyticsExportThrottledRequestsOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -149,21 +148,20 @@ export class LogAnalyticsImpl implements LogAnalytics { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -172,8 +170,8 @@ export class LogAnalyticsImpl implements LogAnalytics { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -181,15 +179,15 @@ export class LogAnalyticsImpl implements LogAnalytics { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { location, parameters, options }, - spec: exportThrottledRequestsOperationSpec + spec: exportThrottledRequestsOperationSpec, }); const poller = await createHttpPoller< LogAnalyticsExportThrottledRequestsResponse, @@ -197,7 +195,7 @@ export class LogAnalyticsImpl implements LogAnalytics { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -212,12 +210,12 @@ export class LogAnalyticsImpl implements LogAnalytics { async beginExportThrottledRequestsAndWait( location: string, parameters: ThrottledRequestsInput, - options?: LogAnalyticsExportThrottledRequestsOptionalParams + options?: LogAnalyticsExportThrottledRequestsOptionalParams, ): Promise { const poller = await this.beginExportThrottledRequests( location, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -226,66 +224,64 @@ export class LogAnalyticsImpl implements LogAnalytics { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const exportRequestRateByIntervalOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getRequestRateByInterval", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getRequestRateByInterval", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, 201: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, 202: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, 204: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters29, + requestBody: Parameters.parameters31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const exportThrottledRequestsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getThrottledRequests", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getThrottledRequests", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, 201: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, 202: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, 204: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters30, + requestBody: Parameters.parameters32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/operations.ts b/sdk/compute/arm-compute/src/operations/operations.ts index 179dc78a0e09..6d5f1ab4d7eb 100644 --- a/sdk/compute/arm-compute/src/operations/operations.ts +++ b/sdk/compute/arm-compute/src/operations/operations.ts @@ -15,7 +15,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { ComputeOperationValue, OperationsListOptionalParams, - OperationsListResponse + OperationsListResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -51,13 +51,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; result = await this._list(options); @@ -65,7 +65,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -77,7 +77,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -90,14 +90,14 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ComputeOperationListResult + bodyMapper: Mappers.ComputeOperationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts b/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts index f132008f1fa9..e158d9f4a25a 100644 --- a/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts +++ b/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts @@ -30,7 +30,7 @@ import { ProximityPlacementGroupsGetOptionalParams, ProximityPlacementGroupsGetResponse, ProximityPlacementGroupsListBySubscriptionNextResponse, - ProximityPlacementGroupsListByResourceGroupNextResponse + ProximityPlacementGroupsListByResourceGroupNextResponse, } from "../models"; /// @@ -51,7 +51,7 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { * @param options The options parameters. */ public listBySubscription( - options?: ProximityPlacementGroupsListBySubscriptionOptionalParams + options?: ProximityPlacementGroupsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -66,13 +66,13 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: ProximityPlacementGroupsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProximityPlacementGroupsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { } private async *listBySubscriptionPagingAll( - options?: ProximityPlacementGroupsListBySubscriptionOptionalParams + options?: ProximityPlacementGroupsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -107,7 +107,7 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { */ public listByResourceGroup( resourceGroupName: string, - options?: ProximityPlacementGroupsListByResourceGroupOptionalParams + options?: ProximityPlacementGroupsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -124,16 +124,16 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ProximityPlacementGroupsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProximityPlacementGroupsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -148,7 +148,7 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -159,11 +159,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ProximityPlacementGroupsListByResourceGroupOptionalParams + options?: ProximityPlacementGroupsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -180,11 +180,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { resourceGroupName: string, proximityPlacementGroupName: string, parameters: ProximityPlacementGroup, - options?: ProximityPlacementGroupsCreateOrUpdateOptionalParams + options?: ProximityPlacementGroupsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, proximityPlacementGroupName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -199,11 +199,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { resourceGroupName: string, proximityPlacementGroupName: string, parameters: ProximityPlacementGroupUpdate, - options?: ProximityPlacementGroupsUpdateOptionalParams + options?: ProximityPlacementGroupsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, proximityPlacementGroupName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -216,11 +216,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { delete( resourceGroupName: string, proximityPlacementGroupName: string, - options?: ProximityPlacementGroupsDeleteOptionalParams + options?: ProximityPlacementGroupsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, proximityPlacementGroupName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -233,11 +233,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { get( resourceGroupName: string, proximityPlacementGroupName: string, - options?: ProximityPlacementGroupsGetOptionalParams + options?: ProximityPlacementGroupsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, proximityPlacementGroupName, options }, - getOperationSpec + getOperationSpec, ); } @@ -246,11 +246,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { * @param options The options parameters. */ private _listBySubscription( - options?: ProximityPlacementGroupsListBySubscriptionOptionalParams + options?: ProximityPlacementGroupsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -261,11 +261,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { */ private _listByResourceGroup( resourceGroupName: string, - options?: ProximityPlacementGroupsListByResourceGroupOptionalParams + options?: ProximityPlacementGroupsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -276,11 +276,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { */ private _listBySubscriptionNext( nextLink: string, - options?: ProximityPlacementGroupsListBySubscriptionNextOptionalParams + options?: ProximityPlacementGroupsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -293,11 +293,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ProximityPlacementGroupsListByResourceGroupNextOptionalParams + options?: ProximityPlacementGroupsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -305,172 +305,166 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ProximityPlacementGroup + bodyMapper: Mappers.ProximityPlacementGroup, }, 201: { - bodyMapper: Mappers.ProximityPlacementGroup + bodyMapper: Mappers.ProximityPlacementGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters12, + requestBody: Parameters.parameters13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.proximityPlacementGroupName + Parameters.proximityPlacementGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ProximityPlacementGroup + bodyMapper: Mappers.ProximityPlacementGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters13, + requestBody: Parameters.parameters14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.proximityPlacementGroupName + Parameters.proximityPlacementGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", httpMethod: "DELETE", responses: { 200: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.proximityPlacementGroupName + Parameters.proximityPlacementGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProximityPlacementGroup + bodyMapper: Mappers.ProximityPlacementGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.includeColocationStatus], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.proximityPlacementGroupName + Parameters.proximityPlacementGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/proximityPlacementGroups", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/proximityPlacementGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProximityPlacementGroupListResult + bodyMapper: Mappers.ProximityPlacementGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProximityPlacementGroupListResult + bodyMapper: Mappers.ProximityPlacementGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProximityPlacementGroupListResult + bodyMapper: Mappers.ProximityPlacementGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProximityPlacementGroupListResult + bodyMapper: Mappers.ProximityPlacementGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/resourceSkus.ts b/sdk/compute/arm-compute/src/operations/resourceSkus.ts index f500d42fc553..37e0a9de5a5f 100644 --- a/sdk/compute/arm-compute/src/operations/resourceSkus.ts +++ b/sdk/compute/arm-compute/src/operations/resourceSkus.ts @@ -18,7 +18,7 @@ import { ResourceSkusListNextOptionalParams, ResourceSkusListOptionalParams, ResourceSkusListResponse, - ResourceSkusListNextResponse + ResourceSkusListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class ResourceSkusImpl implements ResourceSkus { * @param options The options parameters. */ public list( - options?: ResourceSkusListOptionalParams + options?: ResourceSkusListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class ResourceSkusImpl implements ResourceSkus { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ResourceSkusListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ResourceSkusListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class ResourceSkusImpl implements ResourceSkus { } private async *listPagingAll( - options?: ResourceSkusListOptionalParams + options?: ResourceSkusListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class ResourceSkusImpl implements ResourceSkus { * @param options The options parameters. */ private _list( - options?: ResourceSkusListOptionalParams + options?: ResourceSkusListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class ResourceSkusImpl implements ResourceSkus { */ private _listNext( nextLink: string, - options?: ResourceSkusListNextOptionalParams + options?: ResourceSkusListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,31 +121,31 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceSkusResult - } + bodyMapper: Mappers.ResourceSkusResult, + }, }, queryParameters: [ Parameters.filter, Parameters.apiVersion2, - Parameters.includeExtendedLocations + Parameters.includeExtendedLocations, ], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceSkusResult - } + bodyMapper: Mappers.ResourceSkusResult, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/restorePointCollections.ts b/sdk/compute/arm-compute/src/operations/restorePointCollections.ts index f08ccb1c3f68..2b89eb2c14cf 100644 --- a/sdk/compute/arm-compute/src/operations/restorePointCollections.ts +++ b/sdk/compute/arm-compute/src/operations/restorePointCollections.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -36,7 +36,7 @@ import { RestorePointCollectionsGetOptionalParams, RestorePointCollectionsGetResponse, RestorePointCollectionsListNextResponse, - RestorePointCollectionsListAllNextResponse + RestorePointCollectionsListAllNextResponse, } from "../models"; /// @@ -59,7 +59,7 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { */ public list( resourceGroupName: string, - options?: RestorePointCollectionsListOptionalParams + options?: RestorePointCollectionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -74,14 +74,14 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceGroupName, options, settings); - } + }, }; } private async *listPagingPage( resourceGroupName: string, options?: RestorePointCollectionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RestorePointCollectionsListResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +96,7 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { result = await this._listNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,7 +107,7 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { private async *listPagingAll( resourceGroupName: string, - options?: RestorePointCollectionsListOptionalParams + options?: RestorePointCollectionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; @@ -121,7 +121,7 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { * @param options The options parameters. */ public listAll( - options?: RestorePointCollectionsListAllOptionalParams + options?: RestorePointCollectionsListAllOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAllPagingAll(options); return { @@ -136,13 +136,13 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { throw new Error("maxPageSize is not supported by this operation."); } return this.listAllPagingPage(options, settings); - } + }, }; } private async *listAllPagingPage( options?: RestorePointCollectionsListAllOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RestorePointCollectionsListAllResponse; let continuationToken = settings?.continuationToken; @@ -163,7 +163,7 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { } private async *listAllPagingAll( - options?: RestorePointCollectionsListAllOptionalParams + options?: RestorePointCollectionsListAllOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAllPagingPage(options)) { yield* page; @@ -183,11 +183,11 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { resourceGroupName: string, restorePointCollectionName: string, parameters: RestorePointCollection, - options?: RestorePointCollectionsCreateOrUpdateOptionalParams + options?: RestorePointCollectionsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, restorePointCollectionName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -202,11 +202,11 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { resourceGroupName: string, restorePointCollectionName: string, parameters: RestorePointCollectionUpdate, - options?: RestorePointCollectionsUpdateOptionalParams + options?: RestorePointCollectionsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, restorePointCollectionName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -220,25 +220,24 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { async beginDelete( resourceGroupName: string, restorePointCollectionName: string, - options?: RestorePointCollectionsDeleteOptionalParams + options?: RestorePointCollectionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -247,8 +246,8 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -256,19 +255,19 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, restorePointCollectionName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -284,12 +283,12 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { async beginDeleteAndWait( resourceGroupName: string, restorePointCollectionName: string, - options?: RestorePointCollectionsDeleteOptionalParams + options?: RestorePointCollectionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, restorePointCollectionName, - options + options, ); return poller.pollUntilDone(); } @@ -303,11 +302,11 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { get( resourceGroupName: string, restorePointCollectionName: string, - options?: RestorePointCollectionsGetOptionalParams + options?: RestorePointCollectionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, restorePointCollectionName, options }, - getOperationSpec + getOperationSpec, ); } @@ -318,11 +317,11 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { */ private _list( resourceGroupName: string, - options?: RestorePointCollectionsListOptionalParams + options?: RestorePointCollectionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listOperationSpec + listOperationSpec, ); } @@ -333,7 +332,7 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { * @param options The options parameters. */ private _listAll( - options?: RestorePointCollectionsListAllOptionalParams + options?: RestorePointCollectionsListAllOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listAllOperationSpec); } @@ -347,11 +346,11 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { private _listNext( resourceGroupName: string, nextLink: string, - options?: RestorePointCollectionsListNextOptionalParams + options?: RestorePointCollectionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -362,11 +361,11 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { */ private _listAllNext( nextLink: string, - options?: RestorePointCollectionsListAllNextOptionalParams + options?: RestorePointCollectionsListAllNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAllNextOperationSpec + listAllNextOperationSpec, ); } } @@ -374,59 +373,56 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.RestorePointCollection + bodyMapper: Mappers.RestorePointCollection, }, 201: { - bodyMapper: Mappers.RestorePointCollection + bodyMapper: Mappers.RestorePointCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters22, + requestBody: Parameters.parameters24, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.restorePointCollectionName + Parameters.restorePointCollectionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.RestorePointCollection + bodyMapper: Mappers.RestorePointCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters23, + requestBody: Parameters.parameters25, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.restorePointCollectionName + Parameters.restorePointCollectionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -434,115 +430,112 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.restorePointCollectionName + Parameters.restorePointCollectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorePointCollection + bodyMapper: Mappers.RestorePointCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.restorePointCollectionName + Parameters.restorePointCollectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorePointCollectionListResult + bodyMapper: Mappers.RestorePointCollectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/restorePointCollections", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/restorePointCollections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorePointCollectionListResult + bodyMapper: Mappers.RestorePointCollectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorePointCollectionListResult + bodyMapper: Mappers.RestorePointCollectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorePointCollectionListResult + bodyMapper: Mappers.RestorePointCollectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/restorePoints.ts b/sdk/compute/arm-compute/src/operations/restorePoints.ts index 27bc381911ce..7d2d9a0376d3 100644 --- a/sdk/compute/arm-compute/src/operations/restorePoints.ts +++ b/sdk/compute/arm-compute/src/operations/restorePoints.ts @@ -14,7 +14,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -23,7 +23,7 @@ import { RestorePointsCreateResponse, RestorePointsDeleteOptionalParams, RestorePointsGetOptionalParams, - RestorePointsGetResponse + RestorePointsGetResponse, } from "../models"; /** Class containing RestorePoints operations. */ @@ -52,7 +52,7 @@ export class RestorePointsImpl implements RestorePoints { restorePointCollectionName: string, restorePointName: string, parameters: RestorePoint, - options?: RestorePointsCreateOptionalParams + options?: RestorePointsCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -61,21 +61,20 @@ export class RestorePointsImpl implements RestorePoints { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -84,8 +83,8 @@ export class RestorePointsImpl implements RestorePoints { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -93,8 +92,8 @@ export class RestorePointsImpl implements RestorePoints { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -105,16 +104,16 @@ export class RestorePointsImpl implements RestorePoints { restorePointCollectionName, restorePointName, parameters, - options + options, }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< RestorePointsCreateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -134,14 +133,14 @@ export class RestorePointsImpl implements RestorePoints { restorePointCollectionName: string, restorePointName: string, parameters: RestorePoint, - options?: RestorePointsCreateOptionalParams + options?: RestorePointsCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, restorePointCollectionName, restorePointName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -157,25 +156,24 @@ export class RestorePointsImpl implements RestorePoints { resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, - options?: RestorePointsDeleteOptionalParams + options?: RestorePointsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -184,8 +182,8 @@ export class RestorePointsImpl implements RestorePoints { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -193,8 +191,8 @@ export class RestorePointsImpl implements RestorePoints { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -204,13 +202,13 @@ export class RestorePointsImpl implements RestorePoints { resourceGroupName, restorePointCollectionName, restorePointName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -227,13 +225,13 @@ export class RestorePointsImpl implements RestorePoints { resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, - options?: RestorePointsDeleteOptionalParams + options?: RestorePointsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, restorePointCollectionName, restorePointName, - options + options, ); return poller.pollUntilDone(); } @@ -249,16 +247,16 @@ export class RestorePointsImpl implements RestorePoints { resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, - options?: RestorePointsGetOptionalParams + options?: RestorePointsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, restorePointCollectionName, restorePointName, - options + options, }, - getOperationSpec + getOperationSpec, ); } } @@ -266,42 +264,40 @@ export class RestorePointsImpl implements RestorePoints { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.RestorePoint + bodyMapper: Mappers.RestorePoint, }, 201: { - bodyMapper: Mappers.RestorePoint + bodyMapper: Mappers.RestorePoint, }, 202: { - bodyMapper: Mappers.RestorePoint + bodyMapper: Mappers.RestorePoint, }, 204: { - bodyMapper: Mappers.RestorePoint + bodyMapper: Mappers.RestorePoint, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters24, + requestBody: Parameters.parameters26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.restorePointCollectionName, - Parameters.restorePointName + Parameters.restorePointName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", httpMethod: "DELETE", responses: { 200: {}, @@ -309,8 +305,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -318,22 +314,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.restorePointCollectionName, - Parameters.restorePointName + Parameters.restorePointName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorePoint + bodyMapper: Mappers.RestorePoint, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand6], urlParameters: [ @@ -341,8 +336,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.restorePointCollectionName, - Parameters.restorePointName + Parameters.restorePointName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleries.ts b/sdk/compute/arm-compute/src/operations/sharedGalleries.ts index fbfc216914cd..8ba3cab788eb 100644 --- a/sdk/compute/arm-compute/src/operations/sharedGalleries.ts +++ b/sdk/compute/arm-compute/src/operations/sharedGalleries.ts @@ -20,7 +20,7 @@ import { SharedGalleriesListResponse, SharedGalleriesGetOptionalParams, SharedGalleriesGetResponse, - SharedGalleriesListNextResponse + SharedGalleriesListNextResponse, } from "../models"; /// @@ -43,7 +43,7 @@ export class SharedGalleriesImpl implements SharedGalleries { */ public list( location: string, - options?: SharedGalleriesListOptionalParams + options?: SharedGalleriesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, options); return { @@ -58,14 +58,14 @@ export class SharedGalleriesImpl implements SharedGalleries { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(location, options, settings); - } + }, }; } private async *listPagingPage( location: string, options?: SharedGalleriesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SharedGalleriesListResponse; let continuationToken = settings?.continuationToken; @@ -87,7 +87,7 @@ export class SharedGalleriesImpl implements SharedGalleries { private async *listPagingAll( location: string, - options?: SharedGalleriesListOptionalParams + options?: SharedGalleriesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(location, options)) { yield* page; @@ -101,11 +101,11 @@ export class SharedGalleriesImpl implements SharedGalleries { */ private _list( location: string, - options?: SharedGalleriesListOptionalParams + options?: SharedGalleriesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOperationSpec + listOperationSpec, ); } @@ -118,11 +118,11 @@ export class SharedGalleriesImpl implements SharedGalleries { get( location: string, galleryUniqueName: string, - options?: SharedGalleriesGetOptionalParams + options?: SharedGalleriesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, galleryUniqueName, options }, - getOperationSpec + getOperationSpec, ); } @@ -135,11 +135,11 @@ export class SharedGalleriesImpl implements SharedGalleries { private _listNext( location: string, nextLink: string, - options?: SharedGalleriesListNextOptionalParams + options?: SharedGalleriesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -147,65 +147,63 @@ export class SharedGalleriesImpl implements SharedGalleries { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryList + bodyMapper: Mappers.SharedGalleryList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3, Parameters.sharedTo], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGallery + bodyMapper: Mappers.SharedGallery, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.galleryUniqueName + Parameters.galleryUniqueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryList + bodyMapper: Mappers.SharedGalleryList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts index d079ce61a9b9..9df6b2749c89 100644 --- a/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts @@ -20,13 +20,14 @@ import { SharedGalleryImageVersionsListResponse, SharedGalleryImageVersionsGetOptionalParams, SharedGalleryImageVersionsGetResponse, - SharedGalleryImageVersionsListNextResponse + SharedGalleryImageVersionsListNextResponse, } from "../models"; /// /** Class containing SharedGalleryImageVersions operations. */ export class SharedGalleryImageVersionsImpl - implements SharedGalleryImageVersions { + implements SharedGalleryImageVersions +{ private readonly client: ComputeManagementClient; /** @@ -49,13 +50,13 @@ export class SharedGalleryImageVersionsImpl location: string, galleryUniqueName: string, galleryImageName: string, - options?: SharedGalleryImageVersionsListOptionalParams + options?: SharedGalleryImageVersionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( location, galleryUniqueName, galleryImageName, - options + options, ); return { next() { @@ -73,9 +74,9 @@ export class SharedGalleryImageVersionsImpl galleryUniqueName, galleryImageName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +85,7 @@ export class SharedGalleryImageVersionsImpl galleryUniqueName: string, galleryImageName: string, options?: SharedGalleryImageVersionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SharedGalleryImageVersionsListResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +94,7 @@ export class SharedGalleryImageVersionsImpl location, galleryUniqueName, galleryImageName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -106,7 +107,7 @@ export class SharedGalleryImageVersionsImpl galleryUniqueName, galleryImageName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -119,13 +120,13 @@ export class SharedGalleryImageVersionsImpl location: string, galleryUniqueName: string, galleryImageName: string, - options?: SharedGalleryImageVersionsListOptionalParams + options?: SharedGalleryImageVersionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( location, galleryUniqueName, galleryImageName, - options + options, )) { yield* page; } @@ -143,11 +144,11 @@ export class SharedGalleryImageVersionsImpl location: string, galleryUniqueName: string, galleryImageName: string, - options?: SharedGalleryImageVersionsListOptionalParams + options?: SharedGalleryImageVersionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, galleryUniqueName, galleryImageName, options }, - listOperationSpec + listOperationSpec, ); } @@ -167,7 +168,7 @@ export class SharedGalleryImageVersionsImpl galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, - options?: SharedGalleryImageVersionsGetOptionalParams + options?: SharedGalleryImageVersionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -175,9 +176,9 @@ export class SharedGalleryImageVersionsImpl galleryUniqueName, galleryImageName, galleryImageVersionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -195,11 +196,11 @@ export class SharedGalleryImageVersionsImpl galleryUniqueName: string, galleryImageName: string, nextLink: string, - options?: SharedGalleryImageVersionsListNextOptionalParams + options?: SharedGalleryImageVersionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, galleryUniqueName, galleryImageName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -207,16 +208,15 @@ export class SharedGalleryImageVersionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryImageVersionList + bodyMapper: Mappers.SharedGalleryImageVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3, Parameters.sharedTo], urlParameters: [ @@ -224,22 +224,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.location1, Parameters.galleryImageName, - Parameters.galleryUniqueName + Parameters.galleryUniqueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions/{galleryImageVersionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryImageVersion + bodyMapper: Mappers.SharedGalleryImageVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -248,21 +247,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.location1, Parameters.galleryImageName, Parameters.galleryImageVersionName, - Parameters.galleryUniqueName + Parameters.galleryUniqueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryImageVersionList + bodyMapper: Mappers.SharedGalleryImageVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -270,8 +269,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.nextLink, Parameters.location1, Parameters.galleryImageName, - Parameters.galleryUniqueName + Parameters.galleryUniqueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts b/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts index 4f5bc150e926..13688248039c 100644 --- a/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts @@ -20,7 +20,7 @@ import { SharedGalleryImagesListResponse, SharedGalleryImagesGetOptionalParams, SharedGalleryImagesGetResponse, - SharedGalleryImagesListNextResponse + SharedGalleryImagesListNextResponse, } from "../models"; /// @@ -45,7 +45,7 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { public list( location: string, galleryUniqueName: string, - options?: SharedGalleryImagesListOptionalParams + options?: SharedGalleryImagesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, galleryUniqueName, options); return { @@ -63,9 +63,9 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { location, galleryUniqueName, options, - settings + settings, ); - } + }, }; } @@ -73,7 +73,7 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { location: string, galleryUniqueName: string, options?: SharedGalleryImagesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SharedGalleryImagesListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { location, galleryUniqueName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -101,12 +101,12 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { private async *listPagingAll( location: string, galleryUniqueName: string, - options?: SharedGalleryImagesListOptionalParams + options?: SharedGalleryImagesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( location, galleryUniqueName, - options + options, )) { yield* page; } @@ -121,11 +121,11 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { private _list( location: string, galleryUniqueName: string, - options?: SharedGalleryImagesListOptionalParams + options?: SharedGalleryImagesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, galleryUniqueName, options }, - listOperationSpec + listOperationSpec, ); } @@ -141,11 +141,11 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { location: string, galleryUniqueName: string, galleryImageName: string, - options?: SharedGalleryImagesGetOptionalParams + options?: SharedGalleryImagesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, galleryUniqueName, galleryImageName, options }, - getOperationSpec + getOperationSpec, ); } @@ -160,11 +160,11 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { location: string, galleryUniqueName: string, nextLink: string, - options?: SharedGalleryImagesListNextOptionalParams + options?: SharedGalleryImagesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, galleryUniqueName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -172,38 +172,36 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryImageList + bodyMapper: Mappers.SharedGalleryImageList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3, Parameters.sharedTo], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.galleryUniqueName + Parameters.galleryUniqueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryImage + bodyMapper: Mappers.SharedGalleryImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -211,29 +209,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.location1, Parameters.galleryImageName, - Parameters.galleryUniqueName + Parameters.galleryUniqueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryImageList + bodyMapper: Mappers.SharedGalleryImageList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.location1, - Parameters.galleryUniqueName + Parameters.galleryUniqueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/snapshots.ts b/sdk/compute/arm-compute/src/operations/snapshots.ts index 6257f2de0768..1ea69312bda1 100644 --- a/sdk/compute/arm-compute/src/operations/snapshots.ts +++ b/sdk/compute/arm-compute/src/operations/snapshots.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -40,7 +40,7 @@ import { SnapshotsGrantAccessResponse, SnapshotsRevokeAccessOptionalParams, SnapshotsListByResourceGroupNextResponse, - SnapshotsListNextResponse + SnapshotsListNextResponse, } from "../models"; /// @@ -63,7 +63,7 @@ export class SnapshotsImpl implements Snapshots { */ public listByResourceGroup( resourceGroupName: string, - options?: SnapshotsListByResourceGroupOptionalParams + options?: SnapshotsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -80,16 +80,16 @@ export class SnapshotsImpl implements Snapshots { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: SnapshotsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SnapshotsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -104,7 +104,7 @@ export class SnapshotsImpl implements Snapshots { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,11 +115,11 @@ export class SnapshotsImpl implements Snapshots { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: SnapshotsListByResourceGroupOptionalParams + options?: SnapshotsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -130,7 +130,7 @@ export class SnapshotsImpl implements Snapshots { * @param options The options parameters. */ public list( - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -145,13 +145,13 @@ export class SnapshotsImpl implements Snapshots { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: SnapshotsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SnapshotsListResponse; let continuationToken = settings?.continuationToken; @@ -172,7 +172,7 @@ export class SnapshotsImpl implements Snapshots { } private async *listPagingAll( - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -192,7 +192,7 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, snapshotName: string, snapshot: Snapshot, - options?: SnapshotsCreateOrUpdateOptionalParams + options?: SnapshotsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -201,21 +201,20 @@ export class SnapshotsImpl implements Snapshots { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -224,8 +223,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -233,22 +232,22 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, snapshotName, snapshot, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< SnapshotsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -267,13 +266,13 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, snapshotName: string, snapshot: Snapshot, - options?: SnapshotsCreateOrUpdateOptionalParams + options?: SnapshotsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, snapshotName, snapshot, - options + options, ); return poller.pollUntilDone(); } @@ -291,7 +290,7 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, snapshotName: string, snapshot: SnapshotUpdate, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -300,21 +299,20 @@ export class SnapshotsImpl implements Snapshots { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -323,8 +321,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -332,22 +330,22 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, snapshotName, snapshot, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< SnapshotsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -366,13 +364,13 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, snapshotName: string, snapshot: SnapshotUpdate, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, snapshotName, snapshot, - options + options, ); return poller.pollUntilDone(); } @@ -388,11 +386,11 @@ export class SnapshotsImpl implements Snapshots { get( resourceGroupName: string, snapshotName: string, - options?: SnapshotsGetOptionalParams + options?: SnapshotsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, snapshotName, options }, - getOperationSpec + getOperationSpec, ); } @@ -407,25 +405,24 @@ export class SnapshotsImpl implements Snapshots { async beginDelete( resourceGroupName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -434,8 +431,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -443,19 +440,19 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, snapshotName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -472,12 +469,12 @@ export class SnapshotsImpl implements Snapshots { async beginDeleteAndWait( resourceGroupName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, snapshotName, - options + options, ); return poller.pollUntilDone(); } @@ -489,11 +486,11 @@ export class SnapshotsImpl implements Snapshots { */ private _listByResourceGroup( resourceGroupName: string, - options?: SnapshotsListByResourceGroupOptionalParams + options?: SnapshotsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -502,7 +499,7 @@ export class SnapshotsImpl implements Snapshots { * @param options The options parameters. */ private _list( - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -520,7 +517,7 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, snapshotName: string, grantAccessData: GrantAccessData, - options?: SnapshotsGrantAccessOptionalParams + options?: SnapshotsGrantAccessOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -529,21 +526,20 @@ export class SnapshotsImpl implements Snapshots { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -552,8 +548,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -561,15 +557,15 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, snapshotName, grantAccessData, options }, - spec: grantAccessOperationSpec + spec: grantAccessOperationSpec, }); const poller = await createHttpPoller< SnapshotsGrantAccessResponse, @@ -577,7 +573,7 @@ export class SnapshotsImpl implements Snapshots { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -596,13 +592,13 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, snapshotName: string, grantAccessData: GrantAccessData, - options?: SnapshotsGrantAccessOptionalParams + options?: SnapshotsGrantAccessOptionalParams, ): Promise { const poller = await this.beginGrantAccess( resourceGroupName, snapshotName, grantAccessData, - options + options, ); return poller.pollUntilDone(); } @@ -618,25 +614,24 @@ export class SnapshotsImpl implements Snapshots { async beginRevokeAccess( resourceGroupName: string, snapshotName: string, - options?: SnapshotsRevokeAccessOptionalParams + options?: SnapshotsRevokeAccessOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -645,8 +640,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -654,20 +649,20 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, snapshotName, options }, - spec: revokeAccessOperationSpec + spec: revokeAccessOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -684,12 +679,12 @@ export class SnapshotsImpl implements Snapshots { async beginRevokeAccessAndWait( resourceGroupName: string, snapshotName: string, - options?: SnapshotsRevokeAccessOptionalParams + options?: SnapshotsRevokeAccessOptionalParams, ): Promise { const poller = await this.beginRevokeAccess( resourceGroupName, snapshotName, - options + options, ); return poller.pollUntilDone(); } @@ -703,11 +698,11 @@ export class SnapshotsImpl implements Snapshots { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: SnapshotsListByResourceGroupNextOptionalParams + options?: SnapshotsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -718,11 +713,11 @@ export class SnapshotsImpl implements Snapshots { */ private _listNext( nextLink: string, - options?: SnapshotsListNextOptionalParams + options?: SnapshotsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -730,22 +725,21 @@ export class SnapshotsImpl implements Snapshots { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 201: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 202: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 204: { - bodyMapper: Mappers.Snapshot - } + bodyMapper: Mappers.Snapshot, + }, }, requestBody: Parameters.snapshot, queryParameters: [Parameters.apiVersion1], @@ -753,29 +747,28 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.snapshotName + Parameters.snapshotName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 201: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 202: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 204: { - bodyMapper: Mappers.Snapshot - } + bodyMapper: Mappers.Snapshot, + }, }, requestBody: Parameters.snapshot1, queryParameters: [Parameters.apiVersion1], @@ -783,34 +776,32 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.snapshotName + Parameters.snapshotName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Snapshot - } + bodyMapper: Mappers.Snapshot, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.snapshotName + Parameters.snapshotName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {} }, queryParameters: [Parameters.apiVersion1], @@ -818,58 +809,56 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.snapshotName + Parameters.snapshotName, ], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotList - } + bodyMapper: Mappers.SnapshotList, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/snapshots", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotList - } + bodyMapper: Mappers.SnapshotList, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const grantAccessOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/beginGetAccess", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/beginGetAccess", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 201: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 202: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 204: { - bodyMapper: Mappers.AccessUri - } + bodyMapper: Mappers.AccessUri, + }, }, requestBody: Parameters.grantAccessData, queryParameters: [Parameters.apiVersion1], @@ -877,15 +866,14 @@ const grantAccessOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.snapshotName + Parameters.snapshotName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const revokeAccessOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/endGetAccess", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/endGetAccess", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {} }, queryParameters: [Parameters.apiVersion1], @@ -893,40 +881,40 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.snapshotName + Parameters.snapshotName, ], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotList - } + bodyMapper: Mappers.SnapshotList, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotList - } + bodyMapper: Mappers.SnapshotList, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts b/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts index 069c4705476c..3af7d3524614 100644 --- a/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts +++ b/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts @@ -32,7 +32,7 @@ import { SshPublicKeysGenerateKeyPairOptionalParams, SshPublicKeysGenerateKeyPairResponse, SshPublicKeysListBySubscriptionNextResponse, - SshPublicKeysListByResourceGroupNextResponse + SshPublicKeysListByResourceGroupNextResponse, } from "../models"; /// @@ -54,7 +54,7 @@ export class SshPublicKeysImpl implements SshPublicKeys { * @param options The options parameters. */ public listBySubscription( - options?: SshPublicKeysListBySubscriptionOptionalParams + options?: SshPublicKeysListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -69,13 +69,13 @@ export class SshPublicKeysImpl implements SshPublicKeys { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: SshPublicKeysListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SshPublicKeysListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +96,7 @@ export class SshPublicKeysImpl implements SshPublicKeys { } private async *listBySubscriptionPagingAll( - options?: SshPublicKeysListBySubscriptionOptionalParams + options?: SshPublicKeysListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -111,7 +111,7 @@ export class SshPublicKeysImpl implements SshPublicKeys { */ public listByResourceGroup( resourceGroupName: string, - options?: SshPublicKeysListByResourceGroupOptionalParams + options?: SshPublicKeysListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -128,16 +128,16 @@ export class SshPublicKeysImpl implements SshPublicKeys { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: SshPublicKeysListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SshPublicKeysListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -152,7 +152,7 @@ export class SshPublicKeysImpl implements SshPublicKeys { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -163,11 +163,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: SshPublicKeysListByResourceGroupOptionalParams + options?: SshPublicKeysListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -179,11 +179,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { * @param options The options parameters. */ private _listBySubscription( - options?: SshPublicKeysListBySubscriptionOptionalParams + options?: SshPublicKeysListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -195,11 +195,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { */ private _listByResourceGroup( resourceGroupName: string, - options?: SshPublicKeysListByResourceGroupOptionalParams + options?: SshPublicKeysListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -214,11 +214,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { resourceGroupName: string, sshPublicKeyName: string, parameters: SshPublicKeyResource, - options?: SshPublicKeysCreateOptionalParams + options?: SshPublicKeysCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, sshPublicKeyName, parameters, options }, - createOperationSpec + createOperationSpec, ); } @@ -233,11 +233,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { resourceGroupName: string, sshPublicKeyName: string, parameters: SshPublicKeyUpdateResource, - options?: SshPublicKeysUpdateOptionalParams + options?: SshPublicKeysUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, sshPublicKeyName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -250,11 +250,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { delete( resourceGroupName: string, sshPublicKeyName: string, - options?: SshPublicKeysDeleteOptionalParams + options?: SshPublicKeysDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, sshPublicKeyName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -267,11 +267,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { get( resourceGroupName: string, sshPublicKeyName: string, - options?: SshPublicKeysGetOptionalParams + options?: SshPublicKeysGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, sshPublicKeyName, options }, - getOperationSpec + getOperationSpec, ); } @@ -286,11 +286,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { generateKeyPair( resourceGroupName: string, sshPublicKeyName: string, - options?: SshPublicKeysGenerateKeyPairOptionalParams + options?: SshPublicKeysGenerateKeyPairOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, sshPublicKeyName, options }, - generateKeyPairOperationSpec + generateKeyPairOperationSpec, ); } @@ -301,11 +301,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { */ private _listBySubscriptionNext( nextLink: string, - options?: SshPublicKeysListBySubscriptionNextOptionalParams + options?: SshPublicKeysListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -318,11 +318,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: SshPublicKeysListByResourceGroupNextOptionalParams + options?: SshPublicKeysListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -330,195 +330,190 @@ export class SshPublicKeysImpl implements SshPublicKeys { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/sshPublicKeys", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/sshPublicKeys", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SshPublicKeysGroupListResult + bodyMapper: Mappers.SshPublicKeysGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SshPublicKeysGroupListResult + bodyMapper: Mappers.SshPublicKeysGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SshPublicKeyResource + bodyMapper: Mappers.SshPublicKeyResource, }, 201: { - bodyMapper: Mappers.SshPublicKeyResource + bodyMapper: Mappers.SshPublicKeyResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters18, + requestBody: Parameters.parameters19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.sshPublicKeyName + Parameters.sshPublicKeyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.SshPublicKeyResource + bodyMapper: Mappers.SshPublicKeyResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters19, + requestBody: Parameters.parameters20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.sshPublicKeyName + Parameters.sshPublicKeyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.sshPublicKeyName + Parameters.sshPublicKeyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SshPublicKeyResource + bodyMapper: Mappers.SshPublicKeyResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.sshPublicKeyName + Parameters.sshPublicKeyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const generateKeyPairOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}/generateKeyPair", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}/generateKeyPair", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.SshPublicKeyGenerateKeyPairResult + bodyMapper: Mappers.SshPublicKeyGenerateKeyPairResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, + requestBody: Parameters.parameters21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.sshPublicKeyName + Parameters.sshPublicKeyName, ], - headerParameters: [Parameters.accept], - serializer + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SshPublicKeysGroupListResult + bodyMapper: Mappers.SshPublicKeysGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SshPublicKeysGroupListResult + bodyMapper: Mappers.SshPublicKeysGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/usageOperations.ts b/sdk/compute/arm-compute/src/operations/usageOperations.ts index c554e62731ef..b10c18f706ab 100644 --- a/sdk/compute/arm-compute/src/operations/usageOperations.ts +++ b/sdk/compute/arm-compute/src/operations/usageOperations.ts @@ -18,7 +18,7 @@ import { UsageListNextOptionalParams, UsageListOptionalParams, UsageListResponse, - UsageListNextResponse + UsageListNextResponse, } from "../models"; /// @@ -42,7 +42,7 @@ export class UsageOperationsImpl implements UsageOperations { */ public list( location: string, - options?: UsageListOptionalParams + options?: UsageListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, options); return { @@ -57,14 +57,14 @@ export class UsageOperationsImpl implements UsageOperations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(location, options, settings); - } + }, }; } private async *listPagingPage( location: string, options?: UsageListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: UsageListResponse; let continuationToken = settings?.continuationToken; @@ -86,7 +86,7 @@ export class UsageOperationsImpl implements UsageOperations { private async *listPagingAll( location: string, - options?: UsageListOptionalParams + options?: UsageListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(location, options)) { yield* page; @@ -101,11 +101,11 @@ export class UsageOperationsImpl implements UsageOperations { */ private _list( location: string, - options?: UsageListOptionalParams + options?: UsageListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOperationSpec + listOperationSpec, ); } @@ -118,11 +118,11 @@ export class UsageOperationsImpl implements UsageOperations { private _listNext( location: string, nextLink: string, - options?: UsageListNextOptionalParams + options?: UsageListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -130,43 +130,42 @@ export class UsageOperationsImpl implements UsageOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/usages", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/usages", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListUsagesResult + bodyMapper: Mappers.ListUsagesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListUsagesResult + bodyMapper: Mappers.ListUsagesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.location, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts b/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts index 8d337c4325b7..64fc1610910d 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts @@ -17,12 +17,13 @@ import { VirtualMachineExtensionImagesListTypesOptionalParams, VirtualMachineExtensionImagesListTypesResponse, VirtualMachineExtensionImagesListVersionsOptionalParams, - VirtualMachineExtensionImagesListVersionsResponse + VirtualMachineExtensionImagesListVersionsResponse, } from "../models"; /** Class containing VirtualMachineExtensionImages operations. */ export class VirtualMachineExtensionImagesImpl - implements VirtualMachineExtensionImages { + implements VirtualMachineExtensionImages +{ private readonly client: ComputeManagementClient; /** @@ -46,11 +47,11 @@ export class VirtualMachineExtensionImagesImpl publisherName: string, typeParam: string, version: string, - options?: VirtualMachineExtensionImagesGetOptionalParams + options?: VirtualMachineExtensionImagesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publisherName, typeParam, version, options }, - getOperationSpec + getOperationSpec, ); } @@ -63,11 +64,11 @@ export class VirtualMachineExtensionImagesImpl listTypes( location: string, publisherName: string, - options?: VirtualMachineExtensionImagesListTypesOptionalParams + options?: VirtualMachineExtensionImagesListTypesOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publisherName, options }, - listTypesOperationSpec + listTypesOperationSpec, ); } @@ -82,11 +83,11 @@ export class VirtualMachineExtensionImagesImpl location: string, publisherName: string, typeParam: string, - options?: VirtualMachineExtensionImagesListVersionsOptionalParams + options?: VirtualMachineExtensionImagesListVersionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publisherName, typeParam, options }, - listVersionsOperationSpec + listVersionsOperationSpec, ); } } @@ -94,16 +95,15 @@ export class VirtualMachineExtensionImagesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions/{version}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions/{version}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtensionImage + bodyMapper: Mappers.VirtualMachineExtensionImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -112,14 +112,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.location1, Parameters.publisherName, Parameters.version, - Parameters.typeParam + Parameters.typeParam, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listTypesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types", httpMethod: "GET", responses: { 200: { @@ -129,29 +128,28 @@ const listTypesOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineExtensionImage" - } - } - } - } + className: "VirtualMachineExtensionImage", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.publisherName + Parameters.publisherName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listVersionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions", httpMethod: "GET", responses: { 200: { @@ -161,29 +159,29 @@ const listVersionsOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineExtensionImage" - } - } - } - } + className: "VirtualMachineExtensionImage", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.filter, Parameters.top, - Parameters.orderby + Parameters.orderby, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, Parameters.publisherName, - Parameters.typeParam + Parameters.typeParam, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts index 860d8eca27ab..bdd634d670df 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts @@ -14,7 +14,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -28,7 +28,7 @@ import { VirtualMachineExtensionsGetOptionalParams, VirtualMachineExtensionsGetResponse, VirtualMachineExtensionsListOptionalParams, - VirtualMachineExtensionsListResponse + VirtualMachineExtensionsListResponse, } from "../models"; /** Class containing VirtualMachineExtensions operations. */ @@ -56,7 +56,7 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtension, - options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -65,21 +65,20 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -88,8 +87,8 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -97,8 +96,8 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -109,16 +108,16 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { vmName, vmExtensionName, extensionParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineExtensionsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -137,14 +136,14 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtension, - options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, vmName, vmExtensionName, extensionParameters, - options + options, ); return poller.pollUntilDone(); } @@ -162,7 +161,7 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtensionUpdate, - options?: VirtualMachineExtensionsUpdateOptionalParams + options?: VirtualMachineExtensionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -171,21 +170,20 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -194,8 +192,8 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -203,8 +201,8 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -215,16 +213,16 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { vmName, vmExtensionName, extensionParameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineExtensionsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -243,14 +241,14 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtensionUpdate, - options?: VirtualMachineExtensionsUpdateOptionalParams + options?: VirtualMachineExtensionsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, vmName, vmExtensionName, extensionParameters, - options + options, ); return poller.pollUntilDone(); } @@ -266,25 +264,24 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { resourceGroupName: string, vmName: string, vmExtensionName: string, - options?: VirtualMachineExtensionsDeleteOptionalParams + options?: VirtualMachineExtensionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -293,8 +290,8 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -302,19 +299,19 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, vmExtensionName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -331,13 +328,13 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { resourceGroupName: string, vmName: string, vmExtensionName: string, - options?: VirtualMachineExtensionsDeleteOptionalParams + options?: VirtualMachineExtensionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vmName, vmExtensionName, - options + options, ); return poller.pollUntilDone(); } @@ -353,11 +350,11 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { resourceGroupName: string, vmName: string, vmExtensionName: string, - options?: VirtualMachineExtensionsGetOptionalParams + options?: VirtualMachineExtensionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, vmExtensionName, options }, - getOperationSpec + getOperationSpec, ); } @@ -370,11 +367,11 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { list( resourceGroupName: string, vmName: string, - options?: VirtualMachineExtensionsListOptionalParams + options?: VirtualMachineExtensionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - listOperationSpec + listOperationSpec, ); } } @@ -382,25 +379,24 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, 201: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, 202: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, 204: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.extensionParameters4, queryParameters: [Parameters.apiVersion], @@ -409,32 +405,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmExtensionName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, 201: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, 202: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, 204: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.extensionParameters5, queryParameters: [Parameters.apiVersion], @@ -443,15 +438,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmExtensionName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -459,8 +453,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -468,22 +462,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmExtensionName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -491,30 +484,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmExtensionName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtensionsListResult + bodyMapper: Mappers.VirtualMachineExtensionsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts b/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts index b45de23a25ba..ca8cbb85a692 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts @@ -23,7 +23,7 @@ import { VirtualMachineImagesListSkusOptionalParams, VirtualMachineImagesListSkusResponse, VirtualMachineImagesListByEdgeZoneOptionalParams, - VirtualMachineImagesListByEdgeZoneResponse + VirtualMachineImagesListByEdgeZoneResponse, } from "../models"; /** Class containing VirtualMachineImages operations. */ @@ -53,11 +53,11 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { offer: string, skus: string, version: string, - options?: VirtualMachineImagesGetOptionalParams + options?: VirtualMachineImagesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publisherName, offer, skus, version, options }, - getOperationSpec + getOperationSpec, ); } @@ -75,11 +75,11 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { publisherName: string, offer: string, skus: string, - options?: VirtualMachineImagesListOptionalParams + options?: VirtualMachineImagesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publisherName, offer, skus, options }, - listOperationSpec + listOperationSpec, ); } @@ -92,11 +92,11 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { listOffers( location: string, publisherName: string, - options?: VirtualMachineImagesListOffersOptionalParams + options?: VirtualMachineImagesListOffersOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publisherName, options }, - listOffersOperationSpec + listOffersOperationSpec, ); } @@ -107,11 +107,11 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { */ listPublishers( location: string, - options?: VirtualMachineImagesListPublishersOptionalParams + options?: VirtualMachineImagesListPublishersOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listPublishersOperationSpec + listPublishersOperationSpec, ); } @@ -126,11 +126,11 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { location: string, publisherName: string, offer: string, - options?: VirtualMachineImagesListSkusOptionalParams + options?: VirtualMachineImagesListSkusOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publisherName, offer, options }, - listSkusOperationSpec + listSkusOperationSpec, ); } @@ -143,11 +143,11 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { listByEdgeZone( location: string, edgeZone: string, - options?: VirtualMachineImagesListByEdgeZoneOptionalParams + options?: VirtualMachineImagesListByEdgeZoneOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, edgeZone, options }, - listByEdgeZoneOperationSpec + listByEdgeZoneOperationSpec, ); } } @@ -155,16 +155,15 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineImage + bodyMapper: Mappers.VirtualMachineImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -174,14 +173,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.publisherName, Parameters.offer, Parameters.skus, - Parameters.version + Parameters.version, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions", httpMethod: "GET", responses: { 200: { @@ -191,21 +189,21 @@ const listOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.expand1, Parameters.top, - Parameters.orderby + Parameters.orderby, ], urlParameters: [ Parameters.$host, @@ -213,14 +211,13 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.location1, Parameters.publisherName, Parameters.offer, - Parameters.skus + Parameters.skus, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOffersOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers", httpMethod: "GET", responses: { 200: { @@ -230,29 +227,28 @@ const listOffersOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.publisherName + Parameters.publisherName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listPublishersOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers", httpMethod: "GET", responses: { 200: { @@ -262,28 +258,27 @@ const listPublishersOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSkusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus", httpMethod: "GET", responses: { 200: { @@ -293,15 +288,15 @@ const listSkusOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -309,30 +304,29 @@ const listSkusOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.location1, Parameters.publisherName, - Parameters.offer + Parameters.offer, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByEdgeZoneOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/vmimages", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/vmimages", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VmImagesInEdgeZoneListResult + bodyMapper: Mappers.VmImagesInEdgeZoneListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.edgeZone + Parameters.edgeZone, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts b/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts index b0e5e0614c4b..173bf75ce5e2 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts @@ -21,12 +21,13 @@ import { VirtualMachineImagesEdgeZoneListPublishersOptionalParams, VirtualMachineImagesEdgeZoneListPublishersResponse, VirtualMachineImagesEdgeZoneListSkusOptionalParams, - VirtualMachineImagesEdgeZoneListSkusResponse + VirtualMachineImagesEdgeZoneListSkusResponse, } from "../models"; /** Class containing VirtualMachineImagesEdgeZone operations. */ export class VirtualMachineImagesEdgeZoneImpl - implements VirtualMachineImagesEdgeZone { + implements VirtualMachineImagesEdgeZone +{ private readonly client: ComputeManagementClient; /** @@ -54,11 +55,11 @@ export class VirtualMachineImagesEdgeZoneImpl offer: string, skus: string, version: string, - options?: VirtualMachineImagesEdgeZoneGetOptionalParams + options?: VirtualMachineImagesEdgeZoneGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, edgeZone, publisherName, offer, skus, version, options }, - getOperationSpec + getOperationSpec, ); } @@ -78,11 +79,11 @@ export class VirtualMachineImagesEdgeZoneImpl publisherName: string, offer: string, skus: string, - options?: VirtualMachineImagesEdgeZoneListOptionalParams + options?: VirtualMachineImagesEdgeZoneListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, edgeZone, publisherName, offer, skus, options }, - listOperationSpec + listOperationSpec, ); } @@ -97,11 +98,11 @@ export class VirtualMachineImagesEdgeZoneImpl location: string, edgeZone: string, publisherName: string, - options?: VirtualMachineImagesEdgeZoneListOffersOptionalParams + options?: VirtualMachineImagesEdgeZoneListOffersOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, edgeZone, publisherName, options }, - listOffersOperationSpec + listOffersOperationSpec, ); } @@ -114,11 +115,11 @@ export class VirtualMachineImagesEdgeZoneImpl listPublishers( location: string, edgeZone: string, - options?: VirtualMachineImagesEdgeZoneListPublishersOptionalParams + options?: VirtualMachineImagesEdgeZoneListPublishersOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, edgeZone, options }, - listPublishersOperationSpec + listPublishersOperationSpec, ); } @@ -136,11 +137,11 @@ export class VirtualMachineImagesEdgeZoneImpl edgeZone: string, publisherName: string, offer: string, - options?: VirtualMachineImagesEdgeZoneListSkusOptionalParams + options?: VirtualMachineImagesEdgeZoneListSkusOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, edgeZone, publisherName, offer, options }, - listSkusOperationSpec + listSkusOperationSpec, ); } } @@ -148,16 +149,15 @@ export class VirtualMachineImagesEdgeZoneImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineImage + bodyMapper: Mappers.VirtualMachineImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -168,14 +168,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.offer, Parameters.skus, Parameters.version, - Parameters.edgeZone + Parameters.edgeZone, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions", httpMethod: "GET", responses: { 200: { @@ -185,21 +184,21 @@ const listOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.expand1, Parameters.top, - Parameters.orderby + Parameters.orderby, ], urlParameters: [ Parameters.$host, @@ -208,14 +207,13 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.publisherName, Parameters.offer, Parameters.skus, - Parameters.edgeZone + Parameters.edgeZone, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOffersOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers", httpMethod: "GET", responses: { 200: { @@ -225,15 +223,15 @@ const listOffersOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -241,14 +239,13 @@ const listOffersOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.location1, Parameters.publisherName, - Parameters.edgeZone + Parameters.edgeZone, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listPublishersOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers", httpMethod: "GET", responses: { 200: { @@ -258,29 +255,28 @@ const listPublishersOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.edgeZone + Parameters.edgeZone, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSkusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus", httpMethod: "GET", responses: { 200: { @@ -290,15 +286,15 @@ const listSkusOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -307,8 +303,8 @@ const listSkusOperationSpec: coreClient.OperationSpec = { Parameters.location1, Parameters.publisherName, Parameters.offer, - Parameters.edgeZone + Parameters.edgeZone, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts b/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts index 53fc4f8f474e..31951e6780f9 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -39,13 +39,14 @@ import { VirtualMachineRunCommandsGetByVirtualMachineOptionalParams, VirtualMachineRunCommandsGetByVirtualMachineResponse, VirtualMachineRunCommandsListNextResponse, - VirtualMachineRunCommandsListByVirtualMachineNextResponse + VirtualMachineRunCommandsListByVirtualMachineNextResponse, } from "../models"; /// /** Class containing VirtualMachineRunCommands operations. */ export class VirtualMachineRunCommandsImpl - implements VirtualMachineRunCommands { + implements VirtualMachineRunCommands +{ private readonly client: ComputeManagementClient; /** @@ -63,7 +64,7 @@ export class VirtualMachineRunCommandsImpl */ public list( location: string, - options?: VirtualMachineRunCommandsListOptionalParams + options?: VirtualMachineRunCommandsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, options); return { @@ -78,14 +79,14 @@ export class VirtualMachineRunCommandsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(location, options, settings); - } + }, }; } private async *listPagingPage( location: string, options?: VirtualMachineRunCommandsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineRunCommandsListResponse; let continuationToken = settings?.continuationToken; @@ -107,7 +108,7 @@ export class VirtualMachineRunCommandsImpl private async *listPagingAll( location: string, - options?: VirtualMachineRunCommandsListOptionalParams + options?: VirtualMachineRunCommandsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(location, options)) { yield* page; @@ -123,12 +124,12 @@ export class VirtualMachineRunCommandsImpl public listByVirtualMachine( resourceGroupName: string, vmName: string, - options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams + options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByVirtualMachinePagingAll( resourceGroupName, vmName, - options + options, ); return { next() { @@ -145,9 +146,9 @@ export class VirtualMachineRunCommandsImpl resourceGroupName, vmName, options, - settings + settings, ); - } + }, }; } @@ -155,7 +156,7 @@ export class VirtualMachineRunCommandsImpl resourceGroupName: string, vmName: string, options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineRunCommandsListByVirtualMachineResponse; let continuationToken = settings?.continuationToken; @@ -163,7 +164,7 @@ export class VirtualMachineRunCommandsImpl result = await this._listByVirtualMachine( resourceGroupName, vmName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -175,7 +176,7 @@ export class VirtualMachineRunCommandsImpl resourceGroupName, vmName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -187,12 +188,12 @@ export class VirtualMachineRunCommandsImpl private async *listByVirtualMachinePagingAll( resourceGroupName: string, vmName: string, - options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams + options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByVirtualMachinePagingPage( resourceGroupName, vmName, - options + options, )) { yield* page; } @@ -205,11 +206,11 @@ export class VirtualMachineRunCommandsImpl */ private _list( location: string, - options?: VirtualMachineRunCommandsListOptionalParams + options?: VirtualMachineRunCommandsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOperationSpec + listOperationSpec, ); } @@ -222,11 +223,11 @@ export class VirtualMachineRunCommandsImpl get( location: string, commandId: string, - options?: VirtualMachineRunCommandsGetOptionalParams + options?: VirtualMachineRunCommandsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, commandId, options }, - getOperationSpec + getOperationSpec, ); } @@ -243,7 +244,7 @@ export class VirtualMachineRunCommandsImpl vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -252,21 +253,20 @@ export class VirtualMachineRunCommandsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -275,8 +275,8 @@ export class VirtualMachineRunCommandsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -284,22 +284,22 @@ export class VirtualMachineRunCommandsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, runCommandName, runCommand, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineRunCommandsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -318,14 +318,14 @@ export class VirtualMachineRunCommandsImpl vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, vmName, runCommandName, runCommand, - options + options, ); return poller.pollUntilDone(); } @@ -343,7 +343,7 @@ export class VirtualMachineRunCommandsImpl vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineRunCommandsUpdateOptionalParams + options?: VirtualMachineRunCommandsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -352,21 +352,20 @@ export class VirtualMachineRunCommandsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -375,8 +374,8 @@ export class VirtualMachineRunCommandsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -384,22 +383,22 @@ export class VirtualMachineRunCommandsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, runCommandName, runCommand, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineRunCommandsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -418,14 +417,14 @@ export class VirtualMachineRunCommandsImpl vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineRunCommandsUpdateOptionalParams + options?: VirtualMachineRunCommandsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, vmName, runCommandName, runCommand, - options + options, ); return poller.pollUntilDone(); } @@ -441,25 +440,24 @@ export class VirtualMachineRunCommandsImpl resourceGroupName: string, vmName: string, runCommandName: string, - options?: VirtualMachineRunCommandsDeleteOptionalParams + options?: VirtualMachineRunCommandsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -468,8 +466,8 @@ export class VirtualMachineRunCommandsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -477,19 +475,19 @@ export class VirtualMachineRunCommandsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, runCommandName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -506,13 +504,13 @@ export class VirtualMachineRunCommandsImpl resourceGroupName: string, vmName: string, runCommandName: string, - options?: VirtualMachineRunCommandsDeleteOptionalParams + options?: VirtualMachineRunCommandsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vmName, runCommandName, - options + options, ); return poller.pollUntilDone(); } @@ -528,11 +526,11 @@ export class VirtualMachineRunCommandsImpl resourceGroupName: string, vmName: string, runCommandName: string, - options?: VirtualMachineRunCommandsGetByVirtualMachineOptionalParams + options?: VirtualMachineRunCommandsGetByVirtualMachineOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, runCommandName, options }, - getByVirtualMachineOperationSpec + getByVirtualMachineOperationSpec, ); } @@ -545,11 +543,11 @@ export class VirtualMachineRunCommandsImpl private _listByVirtualMachine( resourceGroupName: string, vmName: string, - options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams + options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - listByVirtualMachineOperationSpec + listByVirtualMachineOperationSpec, ); } @@ -562,11 +560,11 @@ export class VirtualMachineRunCommandsImpl private _listNext( location: string, nextLink: string, - options?: VirtualMachineRunCommandsListNextOptionalParams + options?: VirtualMachineRunCommandsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -581,11 +579,11 @@ export class VirtualMachineRunCommandsImpl resourceGroupName: string, vmName: string, nextLink: string, - options?: VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams + options?: VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, nextLink, options }, - listByVirtualMachineNextOperationSpec + listByVirtualMachineNextOperationSpec, ); } } @@ -593,62 +591,59 @@ export class VirtualMachineRunCommandsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RunCommandListResult - } + bodyMapper: Mappers.RunCommandListResult, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands/{commandId}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands/{commandId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RunCommandDocument - } + bodyMapper: Mappers.RunCommandDocument, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, Parameters.subscriptionId, - Parameters.commandId + Parameters.commandId, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 201: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 202: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 204: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.runCommand, queryParameters: [Parameters.apiVersion], @@ -657,32 +652,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmName, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.contentType, Parameters.accept1], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 201: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 202: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 204: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.runCommand1, queryParameters: [Parameters.apiVersion], @@ -691,15 +685,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmName, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.contentType, Parameters.accept1], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", httpMethod: "DELETE", responses: { 200: {}, @@ -707,8 +700,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -716,22 +709,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmName, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const getByVirtualMachineOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -739,68 +731,67 @@ const getByVirtualMachineOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmName, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const listByVirtualMachineOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommandsListResult + bodyMapper: Mappers.VirtualMachineRunCommandsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RunCommandListResult - } + bodyMapper: Mappers.RunCommandListResult, + }, }, urlParameters: [ Parameters.$host, Parameters.location, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const listByVirtualMachineNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommandsListResult + bodyMapper: Mappers.VirtualMachineRunCommandsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts index 7611976b9b7f..0f8c8b2e6604 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,13 +32,14 @@ import { VirtualMachineScaleSetExtensionsDeleteOptionalParams, VirtualMachineScaleSetExtensionsGetOptionalParams, VirtualMachineScaleSetExtensionsGetResponse, - VirtualMachineScaleSetExtensionsListNextResponse + VirtualMachineScaleSetExtensionsListNextResponse, } from "../models"; /// /** Class containing VirtualMachineScaleSetExtensions operations. */ export class VirtualMachineScaleSetExtensionsImpl - implements VirtualMachineScaleSetExtensions { + implements VirtualMachineScaleSetExtensions +{ private readonly client: ComputeManagementClient; /** @@ -58,7 +59,7 @@ export class VirtualMachineScaleSetExtensionsImpl public list( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetExtensionsListOptionalParams + options?: VirtualMachineScaleSetExtensionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, vmScaleSetName, options); return { @@ -76,9 +77,9 @@ export class VirtualMachineScaleSetExtensionsImpl resourceGroupName, vmScaleSetName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +87,7 @@ export class VirtualMachineScaleSetExtensionsImpl resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetExtensionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetExtensionsListResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +103,7 @@ export class VirtualMachineScaleSetExtensionsImpl resourceGroupName, vmScaleSetName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -114,12 +115,12 @@ export class VirtualMachineScaleSetExtensionsImpl private async *listPagingAll( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetExtensionsListOptionalParams + options?: VirtualMachineScaleSetExtensionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, vmScaleSetName, - options + options, )) { yield* page; } @@ -138,7 +139,7 @@ export class VirtualMachineScaleSetExtensionsImpl vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtension, - options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -147,21 +148,20 @@ export class VirtualMachineScaleSetExtensionsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -170,8 +170,8 @@ export class VirtualMachineScaleSetExtensionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -179,8 +179,8 @@ export class VirtualMachineScaleSetExtensionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -191,16 +191,16 @@ export class VirtualMachineScaleSetExtensionsImpl vmScaleSetName, vmssExtensionName, extensionParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetExtensionsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -219,14 +219,14 @@ export class VirtualMachineScaleSetExtensionsImpl vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtension, - options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters, - options + options, ); return poller.pollUntilDone(); } @@ -244,7 +244,7 @@ export class VirtualMachineScaleSetExtensionsImpl vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtensionUpdate, - options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -253,21 +253,20 @@ export class VirtualMachineScaleSetExtensionsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -276,8 +275,8 @@ export class VirtualMachineScaleSetExtensionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -285,8 +284,8 @@ export class VirtualMachineScaleSetExtensionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -297,16 +296,16 @@ export class VirtualMachineScaleSetExtensionsImpl vmScaleSetName, vmssExtensionName, extensionParameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetExtensionsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -325,14 +324,14 @@ export class VirtualMachineScaleSetExtensionsImpl vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtensionUpdate, - options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters, - options + options, ); return poller.pollUntilDone(); } @@ -348,25 +347,24 @@ export class VirtualMachineScaleSetExtensionsImpl resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, - options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -375,8 +373,8 @@ export class VirtualMachineScaleSetExtensionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -384,19 +382,19 @@ export class VirtualMachineScaleSetExtensionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, vmssExtensionName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -413,13 +411,13 @@ export class VirtualMachineScaleSetExtensionsImpl resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, - options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vmScaleSetName, vmssExtensionName, - options + options, ); return poller.pollUntilDone(); } @@ -435,11 +433,11 @@ export class VirtualMachineScaleSetExtensionsImpl resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, - options?: VirtualMachineScaleSetExtensionsGetOptionalParams + options?: VirtualMachineScaleSetExtensionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, vmssExtensionName, options }, - getOperationSpec + getOperationSpec, ); } @@ -452,11 +450,11 @@ export class VirtualMachineScaleSetExtensionsImpl private _list( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetExtensionsListOptionalParams + options?: VirtualMachineScaleSetExtensionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, options }, - listOperationSpec + listOperationSpec, ); } @@ -471,11 +469,11 @@ export class VirtualMachineScaleSetExtensionsImpl resourceGroupName: string, vmScaleSetName: string, nextLink: string, - options?: VirtualMachineScaleSetExtensionsListNextOptionalParams + options?: VirtualMachineScaleSetExtensionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -483,25 +481,24 @@ export class VirtualMachineScaleSetExtensionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, 201: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, 202: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, 204: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.extensionParameters, queryParameters: [Parameters.apiVersion], @@ -510,32 +507,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.vmssExtensionName + Parameters.vmssExtensionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, 201: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, 202: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, 204: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.extensionParameters1, queryParameters: [Parameters.apiVersion], @@ -544,15 +540,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.vmssExtensionName + Parameters.vmssExtensionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -560,8 +555,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -569,22 +564,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.vmssExtensionName + Parameters.vmssExtensionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -592,51 +586,50 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.vmssExtensionName + Parameters.vmssExtensionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetExtensionListResult + bodyMapper: Mappers.VirtualMachineScaleSetExtensionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetExtensionListResult + bodyMapper: Mappers.VirtualMachineScaleSetExtensionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts index 58b6cc1bf29f..48140f02b3f5 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts @@ -14,7 +14,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -22,12 +22,13 @@ import { VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams, VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams, VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams, - VirtualMachineScaleSetRollingUpgradesGetLatestResponse + VirtualMachineScaleSetRollingUpgradesGetLatestResponse, } from "../models"; /** Class containing VirtualMachineScaleSetRollingUpgrades operations. */ export class VirtualMachineScaleSetRollingUpgradesImpl - implements VirtualMachineScaleSetRollingUpgrades { + implements VirtualMachineScaleSetRollingUpgrades +{ private readonly client: ComputeManagementClient; /** @@ -47,25 +48,24 @@ export class VirtualMachineScaleSetRollingUpgradesImpl async beginCancel( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -74,8 +74,8 @@ export class VirtualMachineScaleSetRollingUpgradesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -83,19 +83,19 @@ export class VirtualMachineScaleSetRollingUpgradesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: cancelOperationSpec + spec: cancelOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -110,12 +110,12 @@ export class VirtualMachineScaleSetRollingUpgradesImpl async beginCancelAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams, ): Promise { const poller = await this.beginCancel( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -131,25 +131,24 @@ export class VirtualMachineScaleSetRollingUpgradesImpl async beginStartOSUpgrade( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -158,8 +157,8 @@ export class VirtualMachineScaleSetRollingUpgradesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -167,19 +166,19 @@ export class VirtualMachineScaleSetRollingUpgradesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: startOSUpgradeOperationSpec + spec: startOSUpgradeOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -196,12 +195,12 @@ export class VirtualMachineScaleSetRollingUpgradesImpl async beginStartOSUpgradeAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams, ): Promise { const poller = await this.beginStartOSUpgrade( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -217,25 +216,24 @@ export class VirtualMachineScaleSetRollingUpgradesImpl async beginStartExtensionUpgrade( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -244,8 +242,8 @@ export class VirtualMachineScaleSetRollingUpgradesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -253,19 +251,19 @@ export class VirtualMachineScaleSetRollingUpgradesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: startExtensionUpgradeOperationSpec + spec: startExtensionUpgradeOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -282,12 +280,12 @@ export class VirtualMachineScaleSetRollingUpgradesImpl async beginStartExtensionUpgradeAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams, ): Promise { const poller = await this.beginStartExtensionUpgrade( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -301,11 +299,11 @@ export class VirtualMachineScaleSetRollingUpgradesImpl getLatest( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, options }, - getLatestOperationSpec + getLatestOperationSpec, ); } } @@ -313,8 +311,7 @@ export class VirtualMachineScaleSetRollingUpgradesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const cancelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel", httpMethod: "POST", responses: { 200: {}, @@ -322,22 +319,21 @@ const cancelOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startOSUpgradeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade", httpMethod: "POST", responses: { 200: {}, @@ -345,22 +341,21 @@ const startOSUpgradeOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startExtensionUpgradeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade", httpMethod: "POST", responses: { 200: {}, @@ -368,38 +363,37 @@ const startExtensionUpgradeOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getLatestOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RollingUpgradeStatusInfo + bodyMapper: Mappers.RollingUpgradeStatusInfo, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts index c58d77d235f9..1881eb65e082 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts @@ -14,7 +14,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -28,12 +28,13 @@ import { VirtualMachineScaleSetVMExtensionsGetOptionalParams, VirtualMachineScaleSetVMExtensionsGetResponse, VirtualMachineScaleSetVMExtensionsListOptionalParams, - VirtualMachineScaleSetVMExtensionsListResponse + VirtualMachineScaleSetVMExtensionsListResponse, } from "../models"; /** Class containing VirtualMachineScaleSetVMExtensions operations. */ export class VirtualMachineScaleSetVMExtensionsImpl - implements VirtualMachineScaleSetVMExtensions { + implements VirtualMachineScaleSetVMExtensions +{ private readonly client: ComputeManagementClient; /** @@ -59,7 +60,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtension, - options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -68,21 +69,20 @@ export class VirtualMachineScaleSetVMExtensionsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -91,8 +91,8 @@ export class VirtualMachineScaleSetVMExtensionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -100,8 +100,8 @@ export class VirtualMachineScaleSetVMExtensionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -113,16 +113,16 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId, vmExtensionName, extensionParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -143,7 +143,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtension, - options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -151,7 +151,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId, vmExtensionName, extensionParameters, - options + options, ); return poller.pollUntilDone(); } @@ -171,7 +171,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtensionUpdate, - options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -180,21 +180,20 @@ export class VirtualMachineScaleSetVMExtensionsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -203,8 +202,8 @@ export class VirtualMachineScaleSetVMExtensionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -212,8 +211,8 @@ export class VirtualMachineScaleSetVMExtensionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -225,16 +224,16 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId, vmExtensionName, extensionParameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMExtensionsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -255,7 +254,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtensionUpdate, - options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -263,7 +262,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId, vmExtensionName, extensionParameters, - options + options, ); return poller.pollUntilDone(); } @@ -281,25 +280,24 @@ export class VirtualMachineScaleSetVMExtensionsImpl vmScaleSetName: string, instanceId: string, vmExtensionName: string, - options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -308,8 +306,8 @@ export class VirtualMachineScaleSetVMExtensionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -317,8 +315,8 @@ export class VirtualMachineScaleSetVMExtensionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -329,13 +327,13 @@ export class VirtualMachineScaleSetVMExtensionsImpl vmScaleSetName, instanceId, vmExtensionName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -354,14 +352,14 @@ export class VirtualMachineScaleSetVMExtensionsImpl vmScaleSetName: string, instanceId: string, vmExtensionName: string, - options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vmScaleSetName, instanceId, vmExtensionName, - options + options, ); return poller.pollUntilDone(); } @@ -379,7 +377,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl vmScaleSetName: string, instanceId: string, vmExtensionName: string, - options?: VirtualMachineScaleSetVMExtensionsGetOptionalParams + options?: VirtualMachineScaleSetVMExtensionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -387,9 +385,9 @@ export class VirtualMachineScaleSetVMExtensionsImpl vmScaleSetName, instanceId, vmExtensionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -404,11 +402,11 @@ export class VirtualMachineScaleSetVMExtensionsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMExtensionsListOptionalParams + options?: VirtualMachineScaleSetVMExtensionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, options }, - listOperationSpec + listOperationSpec, ); } } @@ -416,25 +414,24 @@ export class VirtualMachineScaleSetVMExtensionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, 201: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, 202: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, 204: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.extensionParameters2, queryParameters: [Parameters.apiVersion], @@ -444,32 +441,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.vmExtensionName + Parameters.vmExtensionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, 201: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, 202: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, 204: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.extensionParameters3, queryParameters: [Parameters.apiVersion], @@ -479,15 +475,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.vmExtensionName + Parameters.vmExtensionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -495,8 +490,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -505,22 +500,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.vmExtensionName + Parameters.vmExtensionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -529,22 +523,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.vmExtensionName + Parameters.vmExtensionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtensionsListResult + bodyMapper: Mappers.VirtualMachineScaleSetVMExtensionsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -552,8 +545,8 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts index 763b5aba3561..b251b64a5e62 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,13 +32,14 @@ import { VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams, VirtualMachineScaleSetVMRunCommandsGetOptionalParams, VirtualMachineScaleSetVMRunCommandsGetResponse, - VirtualMachineScaleSetVMRunCommandsListNextResponse + VirtualMachineScaleSetVMRunCommandsListNextResponse, } from "../models"; /// /** Class containing VirtualMachineScaleSetVMRunCommands operations. */ export class VirtualMachineScaleSetVMRunCommandsImpl - implements VirtualMachineScaleSetVMRunCommands { + implements VirtualMachineScaleSetVMRunCommands +{ private readonly client: ComputeManagementClient; /** @@ -60,13 +61,13 @@ export class VirtualMachineScaleSetVMRunCommandsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return { next() { @@ -84,9 +85,9 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName, instanceId, options, - settings + settings, ); - } + }, }; } @@ -95,7 +96,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetVMRunCommandsListResponse; let continuationToken = settings?.continuationToken; @@ -104,7 +105,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl resourceGroupName, vmScaleSetName, instanceId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -117,7 +118,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName, instanceId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -130,13 +131,13 @@ export class VirtualMachineScaleSetVMRunCommandsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, vmScaleSetName, instanceId, - options + options, )) { yield* page; } @@ -157,7 +158,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -166,21 +167,20 @@ export class VirtualMachineScaleSetVMRunCommandsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -189,8 +189,8 @@ export class VirtualMachineScaleSetVMRunCommandsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -198,8 +198,8 @@ export class VirtualMachineScaleSetVMRunCommandsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -211,16 +211,16 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId, runCommandName, runCommand, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -241,7 +241,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -249,7 +249,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId, runCommandName, runCommand, - options + options, ); return poller.pollUntilDone(); } @@ -269,7 +269,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -278,21 +278,20 @@ export class VirtualMachineScaleSetVMRunCommandsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -301,8 +300,8 @@ export class VirtualMachineScaleSetVMRunCommandsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -310,8 +309,8 @@ export class VirtualMachineScaleSetVMRunCommandsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -323,16 +322,16 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId, runCommandName, runCommand, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMRunCommandsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -353,7 +352,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -361,7 +360,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId, runCommandName, runCommand, - options + options, ); return poller.pollUntilDone(); } @@ -379,25 +378,24 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName: string, instanceId: string, runCommandName: string, - options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -406,8 +404,8 @@ export class VirtualMachineScaleSetVMRunCommandsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -415,8 +413,8 @@ export class VirtualMachineScaleSetVMRunCommandsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -427,13 +425,13 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName, instanceId, runCommandName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -452,14 +450,14 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName: string, instanceId: string, runCommandName: string, - options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vmScaleSetName, instanceId, runCommandName, - options + options, ); return poller.pollUntilDone(); } @@ -477,7 +475,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName: string, instanceId: string, runCommandName: string, - options?: VirtualMachineScaleSetVMRunCommandsGetOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -485,9 +483,9 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName, instanceId, runCommandName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -502,11 +500,11 @@ export class VirtualMachineScaleSetVMRunCommandsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, options }, - listOperationSpec + listOperationSpec, ); } @@ -523,11 +521,11 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName: string, instanceId: string, nextLink: string, - options?: VirtualMachineScaleSetVMRunCommandsListNextOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -535,25 +533,24 @@ export class VirtualMachineScaleSetVMRunCommandsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 201: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 202: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 204: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.runCommand, queryParameters: [Parameters.apiVersion], @@ -563,32 +560,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.contentType, Parameters.accept1], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 201: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 202: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 204: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.runCommand1, queryParameters: [Parameters.apiVersion], @@ -598,15 +594,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.contentType, Parameters.accept1], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", httpMethod: "DELETE", responses: { 200: {}, @@ -614,8 +609,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -624,22 +619,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -648,22 +642,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommandsListResult + bodyMapper: Mappers.VirtualMachineRunCommandsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -671,21 +664,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommandsListResult + bodyMapper: Mappers.VirtualMachineRunCommandsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -693,8 +686,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.nextLink, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts index e5bcb0c15845..8a18e8a731cc 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -26,6 +26,8 @@ import { VirtualMachineScaleSetVMsListResponse, VirtualMachineScaleSetVMsReimageOptionalParams, VirtualMachineScaleSetVMsReimageAllOptionalParams, + VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams, + VirtualMachineScaleSetVMsApproveRollingUpgradeResponse, VirtualMachineScaleSetVMsDeallocateOptionalParams, VirtualMachineScaleSetVMsUpdateOptionalParams, VirtualMachineScaleSetVMsUpdateResponse, @@ -42,16 +44,20 @@ import { VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResponse, VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams, VirtualMachineScaleSetVMsSimulateEvictionOptionalParams, + AttachDetachDataDisksRequest, + VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams, + VirtualMachineScaleSetVMsAttachDetachDataDisksResponse, RunCommandInput, VirtualMachineScaleSetVMsRunCommandOptionalParams, VirtualMachineScaleSetVMsRunCommandResponse, - VirtualMachineScaleSetVMsListNextResponse + VirtualMachineScaleSetVMsListNextResponse, } from "../models"; /// /** Class containing VirtualMachineScaleSetVMs operations. */ export class VirtualMachineScaleSetVMsImpl - implements VirtualMachineScaleSetVMs { + implements VirtualMachineScaleSetVMs +{ private readonly client: ComputeManagementClient; /** @@ -71,12 +77,12 @@ export class VirtualMachineScaleSetVMsImpl public list( resourceGroupName: string, virtualMachineScaleSetName: string, - options?: VirtualMachineScaleSetVMsListOptionalParams + options?: VirtualMachineScaleSetVMsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, virtualMachineScaleSetName, - options + options, ); return { next() { @@ -93,9 +99,9 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName, virtualMachineScaleSetName, options, - settings + settings, ); - } + }, }; } @@ -103,7 +109,7 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, virtualMachineScaleSetName: string, options?: VirtualMachineScaleSetVMsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetVMsListResponse; let continuationToken = settings?.continuationToken; @@ -111,7 +117,7 @@ export class VirtualMachineScaleSetVMsImpl result = await this._list( resourceGroupName, virtualMachineScaleSetName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -123,7 +129,7 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName, virtualMachineScaleSetName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -135,12 +141,12 @@ export class VirtualMachineScaleSetVMsImpl private async *listPagingAll( resourceGroupName: string, virtualMachineScaleSetName: string, - options?: VirtualMachineScaleSetVMsListOptionalParams + options?: VirtualMachineScaleSetVMsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, virtualMachineScaleSetName, - options + options, )) { yield* page; } @@ -157,25 +163,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageOptionalParams + options?: VirtualMachineScaleSetVMsReimageOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -184,8 +189,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -193,19 +198,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: reimageOperationSpec + spec: reimageOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -222,13 +227,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageOptionalParams + options?: VirtualMachineScaleSetVMsReimageOptionalParams, ): Promise { const poller = await this.beginReimage( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -245,25 +250,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageAllOptionalParams + options?: VirtualMachineScaleSetVMsReimageAllOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -272,8 +276,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -281,19 +285,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: reimageAllOperationSpec + spec: reimageAllOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -311,13 +315,107 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageAllOptionalParams + options?: VirtualMachineScaleSetVMsReimageAllOptionalParams, ): Promise { const poller = await this.beginReimageAll( resourceGroupName, vmScaleSetName, instanceId, - options + options, + ); + 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(); } @@ -335,25 +433,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeallocateOptionalParams + options?: VirtualMachineScaleSetVMsDeallocateOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -362,8 +459,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -371,19 +468,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: deallocateOperationSpec + spec: deallocateOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -402,13 +499,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeallocateOptionalParams + options?: VirtualMachineScaleSetVMsDeallocateOptionalParams, ): Promise { const poller = await this.beginDeallocate( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -426,7 +523,7 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, parameters: VirtualMachineScaleSetVM, - options?: VirtualMachineScaleSetVMsUpdateOptionalParams + options?: VirtualMachineScaleSetVMsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -435,21 +532,20 @@ export class VirtualMachineScaleSetVMsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -458,8 +554,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -467,8 +563,8 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -479,16 +575,16 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName, instanceId, parameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -507,14 +603,14 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, parameters: VirtualMachineScaleSetVM, - options?: VirtualMachineScaleSetVMsUpdateOptionalParams + options?: VirtualMachineScaleSetVMsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, vmScaleSetName, instanceId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -530,25 +626,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeleteOptionalParams + options?: VirtualMachineScaleSetVMsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -557,8 +652,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -566,19 +661,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -595,13 +690,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeleteOptionalParams + options?: VirtualMachineScaleSetVMsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -617,11 +712,11 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsGetOptionalParams + options?: VirtualMachineScaleSetVMsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, options }, - getOperationSpec + getOperationSpec, ); } @@ -636,11 +731,11 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsGetInstanceViewOptionalParams + options?: VirtualMachineScaleSetVMsGetInstanceViewOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, options }, - getInstanceViewOperationSpec + getInstanceViewOperationSpec, ); } @@ -653,11 +748,11 @@ export class VirtualMachineScaleSetVMsImpl private _list( resourceGroupName: string, virtualMachineScaleSetName: string, - options?: VirtualMachineScaleSetVMsListOptionalParams + options?: VirtualMachineScaleSetVMsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, virtualMachineScaleSetName, options }, - listOperationSpec + listOperationSpec, ); } @@ -674,25 +769,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPowerOffOptionalParams + options?: VirtualMachineScaleSetVMsPowerOffOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -701,8 +795,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -710,19 +804,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: powerOffOperationSpec + spec: powerOffOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -741,13 +835,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPowerOffOptionalParams + options?: VirtualMachineScaleSetVMsPowerOffOptionalParams, ): Promise { const poller = await this.beginPowerOff( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -763,25 +857,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRestartOptionalParams + options?: VirtualMachineScaleSetVMsRestartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -790,8 +883,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -799,19 +892,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -828,13 +921,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRestartOptionalParams + options?: VirtualMachineScaleSetVMsRestartOptionalParams, ): Promise { const poller = await this.beginRestart( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -850,25 +943,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsStartOptionalParams + options?: VirtualMachineScaleSetVMsStartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -877,8 +969,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -886,19 +978,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: startOperationSpec + spec: startOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -915,13 +1007,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsStartOptionalParams + options?: VirtualMachineScaleSetVMsStartOptionalParams, ): Promise { const poller = await this.beginStart( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -938,25 +1030,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRedeployOptionalParams + options?: VirtualMachineScaleSetVMsRedeployOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -965,8 +1056,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -974,19 +1065,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: redeployOperationSpec + spec: redeployOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1004,13 +1095,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRedeployOptionalParams + options?: VirtualMachineScaleSetVMsRedeployOptionalParams, ): Promise { const poller = await this.beginRedeploy( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -1026,11 +1117,11 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams + options?: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, options }, - retrieveBootDiagnosticsDataOperationSpec + retrieveBootDiagnosticsDataOperationSpec, ); } @@ -1045,25 +1136,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1072,8 +1162,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1081,19 +1171,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: performMaintenanceOperationSpec + spec: performMaintenanceOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1110,13 +1200,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams, ): Promise { const poller = await this.beginPerformMaintenance( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -1132,14 +1222,122 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsSimulateEvictionOptionalParams + options?: VirtualMachineScaleSetVMsSimulateEvictionOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, options }, - simulateEvictionOperationSpec + simulateEvictionOperationSpec, ); } + /** + * 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. @@ -1153,7 +1351,7 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, parameters: RunCommandInput, - options?: VirtualMachineScaleSetVMsRunCommandOptionalParams + options?: VirtualMachineScaleSetVMsRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1162,21 +1360,20 @@ export class VirtualMachineScaleSetVMsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1185,8 +1382,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1194,8 +1391,8 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1206,9 +1403,9 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName, instanceId, parameters, - options + options, }, - spec: runCommandOperationSpec + spec: runCommandOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMsRunCommandResponse, @@ -1216,7 +1413,7 @@ export class VirtualMachineScaleSetVMsImpl >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1235,14 +1432,14 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, parameters: RunCommandInput, - options?: VirtualMachineScaleSetVMsRunCommandOptionalParams + options?: VirtualMachineScaleSetVMsRunCommandOptionalParams, ): Promise { const poller = await this.beginRunCommand( resourceGroupName, vmScaleSetName, instanceId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1258,11 +1455,11 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, virtualMachineScaleSetName: string, nextLink: string, - options?: VirtualMachineScaleSetVMsListNextOptionalParams + options?: VirtualMachineScaleSetVMsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, virtualMachineScaleSetName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -1270,8 +1467,7 @@ export class VirtualMachineScaleSetVMsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const reimageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimage", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimage", httpMethod: "POST", responses: { 200: {}, @@ -1279,8 +1475,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmScaleSetVMReimageInput, queryParameters: [Parameters.apiVersion], @@ -1289,15 +1485,14 @@ const reimageOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reimageAllOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimageall", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimageall", httpMethod: "POST", responses: { 200: {}, @@ -1305,8 +1500,43 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.instanceId, + ], + 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: [ @@ -1314,14 +1544,13 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deallocateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/deallocate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/deallocate", httpMethod: "POST", responses: { 200: {}, @@ -1329,8 +1558,8 @@ const deallocateOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1338,31 +1567,30 @@ const deallocateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVM + bodyMapper: Mappers.VirtualMachineScaleSetVM, }, 201: { - bodyMapper: Mappers.VirtualMachineScaleSetVM + bodyMapper: Mappers.VirtualMachineScaleSetVM, }, 202: { - bodyMapper: Mappers.VirtualMachineScaleSetVM + bodyMapper: Mappers.VirtualMachineScaleSetVM, }, 204: { - bodyMapper: Mappers.VirtualMachineScaleSetVM + bodyMapper: Mappers.VirtualMachineScaleSetVM, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], @@ -1371,15 +1599,19 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + Parameters.ifNoneMatch, ], - headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", httpMethod: "DELETE", responses: { 200: {}, @@ -1387,8 +1619,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.forceDeletion], urlParameters: [ @@ -1396,22 +1628,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVM + bodyMapper: Mappers.VirtualMachineScaleSetVM, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand2], urlParameters: [ @@ -1419,22 +1650,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getInstanceViewOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/instanceView", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/instanceView", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVMInstanceView + bodyMapper: Mappers.VirtualMachineScaleSetVMInstanceView, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1442,41 +1672,39 @@ const getInstanceViewOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVMListResult + bodyMapper: Mappers.VirtualMachineScaleSetVMListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.expand1, Parameters.filter, - Parameters.select + Parameters.select, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineScaleSetName + Parameters.virtualMachineScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const powerOffOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff", httpMethod: "POST", responses: { 200: {}, @@ -1484,8 +1712,8 @@ const powerOffOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.skipShutdown], urlParameters: [ @@ -1493,14 +1721,13 @@ const powerOffOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart", httpMethod: "POST", responses: { 200: {}, @@ -1508,8 +1735,8 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1517,14 +1744,13 @@ const restartOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start", httpMethod: "POST", responses: { 200: {}, @@ -1532,8 +1758,8 @@ const startOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1541,14 +1767,13 @@ const startOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const redeployOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/redeploy", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/redeploy", httpMethod: "POST", responses: { 200: {}, @@ -1556,8 +1781,8 @@ const redeployOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1565,40 +1790,38 @@ const redeployOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const retrieveBootDiagnosticsDataOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/retrieveBootDiagnosticsData", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/retrieveBootDiagnosticsData", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RetrieveBootDiagnosticsDataResult + bodyMapper: Mappers.RetrieveBootDiagnosticsDataResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, - Parameters.sasUriExpirationTimeInMinutes + Parameters.sasUriExpirationTimeInMinutes, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const performMaintenanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/performMaintenance", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/performMaintenance", httpMethod: "POST", responses: { 200: {}, @@ -1606,8 +1829,8 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1615,20 +1838,19 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const simulateEvictionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1636,28 +1858,30 @@ const simulateEvictionOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const runCommandOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand", +const attachDetachDataDisksOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/attachDetachDataDisks", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.StorageProfile, }, 201: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.StorageProfile, }, 202: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.StorageProfile, }, 204: { - bodyMapper: Mappers.RunCommandResult - } + bodyMapper: Mappers.StorageProfile, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], @@ -1666,30 +1890,60 @@ const runCommandOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + 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", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.RunCommandResult, + }, + 201: { + bodyMapper: Mappers.RunCommandResult, + }, + 202: { + bodyMapper: Mappers.RunCommandResult, + }, + 204: { + bodyMapper: Mappers.RunCommandResult, + }, + }, + requestBody: Parameters.parameters6, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.instanceId, ], headerParameters: [Parameters.contentType, Parameters.accept1], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVMListResult + bodyMapper: Mappers.VirtualMachineScaleSetVMListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.virtualMachineScaleSetName + Parameters.virtualMachineScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts index 09a163751fbe..7e46bf7821f2 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -60,6 +60,8 @@ import { VirtualMachineScaleSetsUpdateInstancesOptionalParams, VirtualMachineScaleSetsReimageOptionalParams, VirtualMachineScaleSetsReimageAllOptionalParams, + VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, + VirtualMachineScaleSetsApproveRollingUpgradeResponse, VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams, VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse, VMScaleSetConvertToSinglePlacementGroupInput, @@ -70,7 +72,7 @@ import { VirtualMachineScaleSetsListNextResponse, VirtualMachineScaleSetsListAllNextResponse, VirtualMachineScaleSetsListSkusNextResponse, - VirtualMachineScaleSetsGetOSUpgradeHistoryNextResponse + VirtualMachineScaleSetsGetOSUpgradeHistoryNextResponse, } from "../models"; /// @@ -93,7 +95,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { */ public listByLocation( location: string, - options?: VirtualMachineScaleSetsListByLocationOptionalParams + options?: VirtualMachineScaleSetsListByLocationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByLocationPagingAll(location, options); return { @@ -108,14 +110,14 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { throw new Error("maxPageSize is not supported by this operation."); } return this.listByLocationPagingPage(location, options, settings); - } + }, }; } private async *listByLocationPagingPage( location: string, options?: VirtualMachineScaleSetsListByLocationOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetsListByLocationResponse; let continuationToken = settings?.continuationToken; @@ -130,7 +132,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { result = await this._listByLocationNext( location, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -141,7 +143,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private async *listByLocationPagingAll( location: string, - options?: VirtualMachineScaleSetsListByLocationOptionalParams + options?: VirtualMachineScaleSetsListByLocationOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByLocationPagingPage(location, options)) { yield* page; @@ -155,7 +157,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { */ public list( resourceGroupName: string, - options?: VirtualMachineScaleSetsListOptionalParams + options?: VirtualMachineScaleSetsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -170,14 +172,14 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceGroupName, options, settings); - } + }, }; } private async *listPagingPage( resourceGroupName: string, options?: VirtualMachineScaleSetsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetsListResponse; let continuationToken = settings?.continuationToken; @@ -192,7 +194,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { result = await this._listNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -203,7 +205,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private async *listPagingAll( resourceGroupName: string, - options?: VirtualMachineScaleSetsListOptionalParams + options?: VirtualMachineScaleSetsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; @@ -217,7 +219,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { * @param options The options parameters. */ public listAll( - options?: VirtualMachineScaleSetsListAllOptionalParams + options?: VirtualMachineScaleSetsListAllOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAllPagingAll(options); return { @@ -232,13 +234,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { throw new Error("maxPageSize is not supported by this operation."); } return this.listAllPagingPage(options, settings); - } + }, }; } private async *listAllPagingPage( options?: VirtualMachineScaleSetsListAllOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetsListAllResponse; let continuationToken = settings?.continuationToken; @@ -259,7 +261,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { } private async *listAllPagingAll( - options?: VirtualMachineScaleSetsListAllOptionalParams + options?: VirtualMachineScaleSetsListAllOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAllPagingPage(options)) { yield* page; @@ -276,12 +278,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { public listSkus( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsListSkusOptionalParams + options?: VirtualMachineScaleSetsListSkusOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listSkusPagingAll( resourceGroupName, vmScaleSetName, - options + options, ); return { next() { @@ -298,9 +300,9 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName, vmScaleSetName, options, - settings + settings, ); - } + }, }; } @@ -308,7 +310,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsListSkusOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetsListSkusResponse; let continuationToken = settings?.continuationToken; @@ -324,7 +326,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName, vmScaleSetName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -336,12 +338,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private async *listSkusPagingAll( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsListSkusOptionalParams + options?: VirtualMachineScaleSetsListSkusOptionalParams, ): AsyncIterableIterator { for await (const page of this.listSkusPagingPage( resourceGroupName, vmScaleSetName, - options + options, )) { yield* page; } @@ -356,12 +358,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { public listOSUpgradeHistory( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams + options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams, ): PagedAsyncIterableIterator { const iter = this.getOSUpgradeHistoryPagingAll( resourceGroupName, vmScaleSetName, - options + options, ); return { next() { @@ -378,9 +380,9 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName, vmScaleSetName, options, - settings + settings, ); - } + }, }; } @@ -388,7 +390,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetsGetOSUpgradeHistoryResponse; let continuationToken = settings?.continuationToken; @@ -396,7 +398,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { result = await this._getOSUpgradeHistory( resourceGroupName, vmScaleSetName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -408,7 +410,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName, vmScaleSetName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -420,12 +422,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private async *getOSUpgradeHistoryPagingAll( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams + options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams, ): AsyncIterableIterator { for await (const page of this.getOSUpgradeHistoryPagingPage( resourceGroupName, vmScaleSetName, - options + options, )) { yield* page; } @@ -438,11 +440,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { */ private _listByLocation( location: string, - options?: VirtualMachineScaleSetsListByLocationOptionalParams + options?: VirtualMachineScaleSetsListByLocationOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listByLocationOperationSpec + listByLocationOperationSpec, ); } @@ -457,7 +459,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, - options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -466,21 +468,20 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -489,8 +490,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -498,22 +499,22 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -530,13 +531,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, - options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, vmScaleSetName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -552,7 +553,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSetUpdate, - options?: VirtualMachineScaleSetsUpdateOptionalParams + options?: VirtualMachineScaleSetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -561,21 +562,20 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -584,8 +584,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -593,22 +593,22 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, parameters, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -625,13 +625,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSetUpdate, - options?: VirtualMachineScaleSetsUpdateOptionalParams + options?: VirtualMachineScaleSetsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, vmScaleSetName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -645,25 +645,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginDelete( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeleteOptionalParams + options?: VirtualMachineScaleSetsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -672,8 +671,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -681,19 +680,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -708,12 +707,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginDeleteAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeleteOptionalParams + options?: VirtualMachineScaleSetsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -727,11 +726,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { get( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetOptionalParams + options?: VirtualMachineScaleSetsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, options }, - getOperationSpec + getOperationSpec, ); } @@ -746,25 +745,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginDeallocate( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeallocateOptionalParams + options?: VirtualMachineScaleSetsDeallocateOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -773,8 +771,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -782,19 +780,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: deallocateOperationSpec + spec: deallocateOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -811,12 +809,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginDeallocateAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeallocateOptionalParams + options?: VirtualMachineScaleSetsDeallocateOptionalParams, ): Promise { const poller = await this.beginDeallocate( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -832,25 +830,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams + options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -859,8 +856,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -868,19 +865,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, vmInstanceIDs, options }, - spec: deleteInstancesOperationSpec + spec: deleteInstancesOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -897,13 +894,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams + options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams, ): Promise { const poller = await this.beginDeleteInstances( resourceGroupName, vmScaleSetName, vmInstanceIDs, - options + options, ); return poller.pollUntilDone(); } @@ -917,11 +914,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { getInstanceView( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetInstanceViewOptionalParams + options?: VirtualMachineScaleSetsGetInstanceViewOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, options }, - getInstanceViewOperationSpec + getInstanceViewOperationSpec, ); } @@ -932,11 +929,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { */ private _list( resourceGroupName: string, - options?: VirtualMachineScaleSetsListOptionalParams + options?: VirtualMachineScaleSetsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listOperationSpec + listOperationSpec, ); } @@ -947,7 +944,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { * @param options The options parameters. */ private _listAll( - options?: VirtualMachineScaleSetsListAllOptionalParams + options?: VirtualMachineScaleSetsListAllOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listAllOperationSpec); } @@ -962,11 +959,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private _listSkus( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsListSkusOptionalParams + options?: VirtualMachineScaleSetsListSkusOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, options }, - listSkusOperationSpec + listSkusOperationSpec, ); } @@ -979,11 +976,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private _getOSUpgradeHistory( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams + options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, options }, - getOSUpgradeHistoryOperationSpec + getOSUpgradeHistoryOperationSpec, ); } @@ -998,25 +995,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginPowerOff( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPowerOffOptionalParams + options?: VirtualMachineScaleSetsPowerOffOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1025,8 +1021,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1034,19 +1030,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: powerOffOperationSpec + spec: powerOffOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1063,12 +1059,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginPowerOffAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPowerOffOptionalParams + options?: VirtualMachineScaleSetsPowerOffOptionalParams, ): Promise { const poller = await this.beginPowerOff( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1082,25 +1078,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginRestart( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRestartOptionalParams + options?: VirtualMachineScaleSetsRestartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1109,8 +1104,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1118,19 +1113,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1145,12 +1140,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginRestartAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRestartOptionalParams + options?: VirtualMachineScaleSetsRestartOptionalParams, ): Promise { const poller = await this.beginRestart( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1164,25 +1159,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginStart( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsStartOptionalParams + options?: VirtualMachineScaleSetsStartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1191,8 +1185,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1200,19 +1194,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: startOperationSpec + spec: startOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1227,12 +1221,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginStartAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsStartOptionalParams + options?: VirtualMachineScaleSetsStartOptionalParams, ): Promise { const poller = await this.beginStart( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1246,25 +1240,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginReapply( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReapplyOptionalParams + options?: VirtualMachineScaleSetsReapplyOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1273,8 +1266,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1282,20 +1275,20 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: reapplyOperationSpec + spec: reapplyOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1310,12 +1303,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginReapplyAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReapplyOptionalParams + options?: VirtualMachineScaleSetsReapplyOptionalParams, ): Promise { const poller = await this.beginReapply( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1330,25 +1323,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginRedeploy( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRedeployOptionalParams + options?: VirtualMachineScaleSetsRedeployOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1357,8 +1349,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1366,19 +1358,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: redeployOperationSpec + spec: redeployOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1394,12 +1386,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginRedeployAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRedeployOptionalParams + options?: VirtualMachineScaleSetsRedeployOptionalParams, ): Promise { const poller = await this.beginRedeploy( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1416,25 +1408,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginPerformMaintenance( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1443,8 +1434,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1452,19 +1443,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: performMaintenanceOperationSpec + spec: performMaintenanceOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1482,12 +1473,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginPerformMaintenanceAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams, ): Promise { const poller = await this.beginPerformMaintenance( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1503,25 +1494,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams + options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1530,8 +1520,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1539,19 +1529,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, vmInstanceIDs, options }, - spec: updateInstancesOperationSpec + spec: updateInstancesOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1568,13 +1558,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams + options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams, ): Promise { const poller = await this.beginUpdateInstances( resourceGroupName, vmScaleSetName, vmInstanceIDs, - options + options, ); return poller.pollUntilDone(); } @@ -1590,25 +1580,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginReimage( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageOptionalParams + options?: VirtualMachineScaleSetsReimageOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1617,8 +1606,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1626,19 +1615,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: reimageOperationSpec + spec: reimageOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1655,12 +1644,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginReimageAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageOptionalParams + options?: VirtualMachineScaleSetsReimageOptionalParams, ): Promise { const poller = await this.beginReimage( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1675,25 +1664,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginReimageAll( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageAllOptionalParams + options?: VirtualMachineScaleSetsReimageAllOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1702,8 +1690,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1711,19 +1699,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: reimageAllOperationSpec + spec: reimageAllOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1739,12 +1727,101 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginReimageAllAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageAllOptionalParams + options?: VirtualMachineScaleSetsReimageAllOptionalParams, ): Promise { const poller = await this.beginReimageAll( resourceGroupName, vmScaleSetName, - options + options, + ); + 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(); } @@ -1761,13 +1838,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, platformUpdateDomain: number, - options?: VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams - ): Promise< - VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse - > { + options?: VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, platformUpdateDomain, options }, - forceRecoveryServiceFabricPlatformUpdateDomainWalkOperationSpec + forceRecoveryServiceFabricPlatformUpdateDomainWalkOperationSpec, ); } @@ -1782,11 +1857,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VMScaleSetConvertToSinglePlacementGroupInput, - options?: VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams + options?: VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, parameters, options }, - convertToSinglePlacementGroupOperationSpec + convertToSinglePlacementGroupOperationSpec, ); } @@ -1801,25 +1876,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: OrchestrationServiceStateInput, - options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams + options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1828,8 +1902,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1837,19 +1911,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, parameters, options }, - spec: setOrchestrationServiceStateOperationSpec + spec: setOrchestrationServiceStateOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1866,13 +1940,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: OrchestrationServiceStateInput, - options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams + options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams, ): Promise { const poller = await this.beginSetOrchestrationServiceState( resourceGroupName, vmScaleSetName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1886,11 +1960,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private _listByLocationNext( location: string, nextLink: string, - options?: VirtualMachineScaleSetsListByLocationNextOptionalParams + options?: VirtualMachineScaleSetsListByLocationNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listByLocationNextOperationSpec + listByLocationNextOperationSpec, ); } @@ -1903,11 +1977,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private _listNext( resourceGroupName: string, nextLink: string, - options?: VirtualMachineScaleSetsListNextOptionalParams + options?: VirtualMachineScaleSetsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -1918,11 +1992,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { */ private _listAllNext( nextLink: string, - options?: VirtualMachineScaleSetsListAllNextOptionalParams + options?: VirtualMachineScaleSetsListAllNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAllNextOperationSpec + listAllNextOperationSpec, ); } @@ -1937,11 +2011,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, nextLink: string, - options?: VirtualMachineScaleSetsListSkusNextOptionalParams + options?: VirtualMachineScaleSetsListSkusNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, nextLink, options }, - listSkusNextOperationSpec + listSkusNextOperationSpec, ); } @@ -1956,11 +2030,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, nextLink: string, - options?: VirtualMachineScaleSetsGetOSUpgradeHistoryNextOptionalParams + options?: VirtualMachineScaleSetsGetOSUpgradeHistoryNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, nextLink, options }, - getOSUpgradeHistoryNextOperationSpec + getOSUpgradeHistoryNextOperationSpec, ); } } @@ -1968,46 +2042,44 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByLocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachineScaleSets", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachineScaleSets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListResult + bodyMapper: Mappers.VirtualMachineScaleSetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, 201: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, 202: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, 204: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], @@ -2015,32 +2087,36 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + Parameters.ifNoneMatch, ], - headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, 201: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, 202: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, 204: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], @@ -2048,15 +2124,19 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + Parameters.ifNoneMatch, ], - headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", httpMethod: "DELETE", responses: { 200: {}, @@ -2064,44 +2144,42 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.forceDeletion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deallocateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate", httpMethod: "POST", responses: { 200: {}, @@ -2109,8 +2187,8 @@ const deallocateOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion, Parameters.hibernate], @@ -2118,15 +2196,14 @@ const deallocateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteInstancesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete", httpMethod: "POST", responses: { 200: {}, @@ -2134,8 +2211,8 @@ const deleteInstancesOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs1, queryParameters: [Parameters.apiVersion, Parameters.forceDeletion], @@ -2143,119 +2220,113 @@ const deleteInstancesOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getInstanceViewOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetInstanceView + bodyMapper: Mappers.VirtualMachineScaleSetInstanceView, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListResult + bodyMapper: Mappers.VirtualMachineScaleSetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachineScaleSets", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachineScaleSets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListWithLinkResult + bodyMapper: Mappers.VirtualMachineScaleSetListWithLinkResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSkusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/skus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/skus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListSkusResult + bodyMapper: Mappers.VirtualMachineScaleSetListSkusResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOSUpgradeHistoryOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osUpgradeHistory", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osUpgradeHistory", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListOSUpgradeHistory + bodyMapper: Mappers.VirtualMachineScaleSetListOSUpgradeHistory, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const powerOffOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff", httpMethod: "POST", responses: { 200: {}, @@ -2263,8 +2334,8 @@ const powerOffOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion, Parameters.skipShutdown], @@ -2272,15 +2343,14 @@ const powerOffOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart", httpMethod: "POST", responses: { 200: {}, @@ -2288,8 +2358,8 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2297,15 +2367,14 @@ const restartOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start", httpMethod: "POST", responses: { 200: {}, @@ -2313,8 +2382,8 @@ const startOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2322,15 +2391,14 @@ const startOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reapplyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reapply", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reapply", httpMethod: "POST", responses: { 200: {}, @@ -2338,22 +2406,21 @@ const reapplyOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const redeployOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy", httpMethod: "POST", responses: { 200: {}, @@ -2361,8 +2428,8 @@ const redeployOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2370,15 +2437,14 @@ const redeployOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const performMaintenanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance", httpMethod: "POST", responses: { 200: {}, @@ -2386,8 +2452,8 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2395,15 +2461,14 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateInstancesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade", httpMethod: "POST", responses: { 200: {}, @@ -2411,8 +2476,8 @@ const updateInstancesOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs1, queryParameters: [Parameters.apiVersion], @@ -2420,15 +2485,14 @@ const updateInstancesOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reimageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage", httpMethod: "POST", responses: { 200: {}, @@ -2436,8 +2500,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmScaleSetReimageInput, queryParameters: [Parameters.apiVersion], @@ -2445,15 +2509,14 @@ const reimageOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reimageAllOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall", httpMethod: "POST", responses: { 200: {}, @@ -2461,8 +2524,8 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2470,48 +2533,83 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; -const forceRecoveryServiceFabricPlatformUpdateDomainWalkOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk", +const approveRollingUpgradeOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/approveRollingUpgrade", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RecoveryWalkResponse + headersMapper: + Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders, + }, + 201: { + headersMapper: + Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders, + }, + 202: { + headersMapper: + Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders, + }, + 204: { + headersMapper: + Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - queryParameters: [ - Parameters.apiVersion, - Parameters.platformUpdateDomain, - Parameters.zone, - Parameters.placementGroupId - ], + requestBody: Parameters.vmInstanceIDs, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], - headerParameters: [Parameters.accept], - serializer + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, }; +const forceRecoveryServiceFabricPlatformUpdateDomainWalkOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.RecoveryWalkResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.platformUpdateDomain, + Parameters.zone, + Parameters.placementGroupId, + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + ], + headerParameters: [Parameters.accept], + serializer, + }; const convertToSinglePlacementGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], @@ -2519,15 +2617,14 @@ const convertToSinglePlacementGroupOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const setOrchestrationServiceStateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState", httpMethod: "POST", responses: { 200: {}, @@ -2535,8 +2632,8 @@ const setOrchestrationServiceStateOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], @@ -2544,110 +2641,110 @@ const setOrchestrationServiceStateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByLocationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListResult + bodyMapper: Mappers.VirtualMachineScaleSetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.location, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListResult + bodyMapper: Mappers.VirtualMachineScaleSetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListWithLinkResult + bodyMapper: Mappers.VirtualMachineScaleSetListWithLinkResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSkusNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListSkusResult + bodyMapper: Mappers.VirtualMachineScaleSetListSkusResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOSUpgradeHistoryNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListOSUpgradeHistory + bodyMapper: Mappers.VirtualMachineScaleSetListOSUpgradeHistory, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts b/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts index ad6b8563010b..84db03ae75f5 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts @@ -15,7 +15,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { VirtualMachineSize, VirtualMachineSizesListOptionalParams, - VirtualMachineSizesListResponse + VirtualMachineSizesListResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class VirtualMachineSizesImpl implements VirtualMachineSizes { */ public list( location: string, - options?: VirtualMachineSizesListOptionalParams + options?: VirtualMachineSizesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, options); return { @@ -54,14 +54,14 @@ export class VirtualMachineSizesImpl implements VirtualMachineSizes { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(location, options, settings); - } + }, }; } private async *listPagingPage( location: string, options?: VirtualMachineSizesListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineSizesListResponse; result = await this._list(location, options); @@ -70,7 +70,7 @@ export class VirtualMachineSizesImpl implements VirtualMachineSizes { private async *listPagingAll( location: string, - options?: VirtualMachineSizesListOptionalParams + options?: VirtualMachineSizesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(location, options)) { yield* page; @@ -85,11 +85,11 @@ export class VirtualMachineSizesImpl implements VirtualMachineSizes { */ private _list( location: string, - options?: VirtualMachineSizesListOptionalParams + options?: VirtualMachineSizesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOperationSpec + listOperationSpec, ); } } @@ -97,23 +97,22 @@ export class VirtualMachineSizesImpl implements VirtualMachineSizes { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/vmSizes", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/vmSizes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineSizeListResult + bodyMapper: Mappers.VirtualMachineSizeListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachines.ts b/sdk/compute/arm-compute/src/operations/virtualMachines.ts index 5775db9e8ca8..030ffa8c6a39 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachines.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -64,12 +64,15 @@ import { VirtualMachineInstallPatchesParameters, VirtualMachinesInstallPatchesOptionalParams, VirtualMachinesInstallPatchesResponse, + AttachDetachDataDisksRequest, + VirtualMachinesAttachDetachDataDisksOptionalParams, + VirtualMachinesAttachDetachDataDisksResponse, RunCommandInput, VirtualMachinesRunCommandOptionalParams, VirtualMachinesRunCommandResponse, VirtualMachinesListByLocationNextResponse, VirtualMachinesListNextResponse, - VirtualMachinesListAllNextResponse + VirtualMachinesListAllNextResponse, } from "../models"; /// @@ -92,7 +95,7 @@ export class VirtualMachinesImpl implements VirtualMachines { */ public listByLocation( location: string, - options?: VirtualMachinesListByLocationOptionalParams + options?: VirtualMachinesListByLocationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByLocationPagingAll(location, options); return { @@ -107,14 +110,14 @@ export class VirtualMachinesImpl implements VirtualMachines { throw new Error("maxPageSize is not supported by this operation."); } return this.listByLocationPagingPage(location, options, settings); - } + }, }; } private async *listByLocationPagingPage( location: string, options?: VirtualMachinesListByLocationOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachinesListByLocationResponse; let continuationToken = settings?.continuationToken; @@ -129,7 +132,7 @@ export class VirtualMachinesImpl implements VirtualMachines { result = await this._listByLocationNext( location, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -140,7 +143,7 @@ export class VirtualMachinesImpl implements VirtualMachines { private async *listByLocationPagingAll( location: string, - options?: VirtualMachinesListByLocationOptionalParams + options?: VirtualMachinesListByLocationOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByLocationPagingPage(location, options)) { yield* page; @@ -155,7 +158,7 @@ export class VirtualMachinesImpl implements VirtualMachines { */ public list( resourceGroupName: string, - options?: VirtualMachinesListOptionalParams + options?: VirtualMachinesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -170,14 +173,14 @@ export class VirtualMachinesImpl implements VirtualMachines { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceGroupName, options, settings); - } + }, }; } private async *listPagingPage( resourceGroupName: string, options?: VirtualMachinesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachinesListResponse; let continuationToken = settings?.continuationToken; @@ -192,7 +195,7 @@ export class VirtualMachinesImpl implements VirtualMachines { result = await this._listNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -203,7 +206,7 @@ export class VirtualMachinesImpl implements VirtualMachines { private async *listPagingAll( resourceGroupName: string, - options?: VirtualMachinesListOptionalParams + options?: VirtualMachinesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; @@ -216,7 +219,7 @@ export class VirtualMachinesImpl implements VirtualMachines { * @param options The options parameters. */ public listAll( - options?: VirtualMachinesListAllOptionalParams + options?: VirtualMachinesListAllOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAllPagingAll(options); return { @@ -231,13 +234,13 @@ export class VirtualMachinesImpl implements VirtualMachines { throw new Error("maxPageSize is not supported by this operation."); } return this.listAllPagingPage(options, settings); - } + }, }; } private async *listAllPagingPage( options?: VirtualMachinesListAllOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachinesListAllResponse; let continuationToken = settings?.continuationToken; @@ -258,7 +261,7 @@ export class VirtualMachinesImpl implements VirtualMachines { } private async *listAllPagingAll( - options?: VirtualMachinesListAllOptionalParams + options?: VirtualMachinesListAllOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAllPagingPage(options)) { yield* page; @@ -274,12 +277,12 @@ export class VirtualMachinesImpl implements VirtualMachines { public listAvailableSizes( resourceGroupName: string, vmName: string, - options?: VirtualMachinesListAvailableSizesOptionalParams + options?: VirtualMachinesListAvailableSizesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAvailableSizesPagingAll( resourceGroupName, vmName, - options + options, ); return { next() { @@ -296,9 +299,9 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName, vmName, options, - settings + settings, ); - } + }, }; } @@ -306,7 +309,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesListAvailableSizesOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachinesListAvailableSizesResponse; result = await this._listAvailableSizes(resourceGroupName, vmName, options); @@ -316,12 +319,12 @@ export class VirtualMachinesImpl implements VirtualMachines { private async *listAvailableSizesPagingAll( resourceGroupName: string, vmName: string, - options?: VirtualMachinesListAvailableSizesOptionalParams + options?: VirtualMachinesListAvailableSizesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAvailableSizesPagingPage( resourceGroupName, vmName, - options + options, )) { yield* page; } @@ -334,11 +337,11 @@ export class VirtualMachinesImpl implements VirtualMachines { */ private _listByLocation( location: string, - options?: VirtualMachinesListByLocationOptionalParams + options?: VirtualMachinesListByLocationOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listByLocationOperationSpec + listByLocationOperationSpec, ); } @@ -354,7 +357,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineCaptureParameters, - options?: VirtualMachinesCaptureOptionalParams + options?: VirtualMachinesCaptureOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -363,21 +366,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -386,8 +388,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -395,15 +397,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, parameters, options }, - spec: captureOperationSpec + spec: captureOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesCaptureResponse, @@ -411,7 +413,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -429,13 +431,13 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineCaptureParameters, - options?: VirtualMachinesCaptureOptionalParams + options?: VirtualMachinesCaptureOptionalParams, ): Promise { const poller = await this.beginCapture( resourceGroupName, vmName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -452,7 +454,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -461,21 +463,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -484,8 +485,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -493,22 +494,22 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -526,13 +527,13 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, vmName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -548,7 +549,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineUpdate, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -557,21 +558,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -580,8 +580,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -589,22 +589,22 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, parameters, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -621,13 +621,13 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineUpdate, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, vmName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -641,25 +641,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginDelete( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeleteOptionalParams + options?: VirtualMachinesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -668,8 +667,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -677,19 +676,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -704,7 +703,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginDeleteAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeleteOptionalParams + options?: VirtualMachinesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete(resourceGroupName, vmName, options); return poller.pollUntilDone(); @@ -719,11 +718,11 @@ export class VirtualMachinesImpl implements VirtualMachines { get( resourceGroupName: string, vmName: string, - options?: VirtualMachinesGetOptionalParams + options?: VirtualMachinesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - getOperationSpec + getOperationSpec, ); } @@ -736,11 +735,11 @@ export class VirtualMachinesImpl implements VirtualMachines { instanceView( resourceGroupName: string, vmName: string, - options?: VirtualMachinesInstanceViewOptionalParams + options?: VirtualMachinesInstanceViewOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - instanceViewOperationSpec + instanceViewOperationSpec, ); } @@ -754,25 +753,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginConvertToManagedDisks( resourceGroupName: string, vmName: string, - options?: VirtualMachinesConvertToManagedDisksOptionalParams + options?: VirtualMachinesConvertToManagedDisksOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -781,8 +779,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -790,19 +788,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: convertToManagedDisksOperationSpec + spec: convertToManagedDisksOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -818,12 +816,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginConvertToManagedDisksAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesConvertToManagedDisksOptionalParams + options?: VirtualMachinesConvertToManagedDisksOptionalParams, ): Promise { const poller = await this.beginConvertToManagedDisks( resourceGroupName, vmName, - options + options, ); return poller.pollUntilDone(); } @@ -838,25 +836,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginDeallocate( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeallocateOptionalParams + options?: VirtualMachinesDeallocateOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -865,8 +862,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -874,19 +871,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: deallocateOperationSpec + spec: deallocateOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -902,12 +899,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginDeallocateAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeallocateOptionalParams + options?: VirtualMachinesDeallocateOptionalParams, ): Promise { const poller = await this.beginDeallocate( resourceGroupName, vmName, - options + options, ); return poller.pollUntilDone(); } @@ -926,11 +923,11 @@ export class VirtualMachinesImpl implements VirtualMachines { generalize( resourceGroupName: string, vmName: string, - options?: VirtualMachinesGeneralizeOptionalParams + options?: VirtualMachinesGeneralizeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - generalizeOperationSpec + generalizeOperationSpec, ); } @@ -942,11 +939,11 @@ export class VirtualMachinesImpl implements VirtualMachines { */ private _list( resourceGroupName: string, - options?: VirtualMachinesListOptionalParams + options?: VirtualMachinesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listOperationSpec + listOperationSpec, ); } @@ -956,7 +953,7 @@ export class VirtualMachinesImpl implements VirtualMachines { * @param options The options parameters. */ private _listAll( - options?: VirtualMachinesListAllOptionalParams + options?: VirtualMachinesListAllOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listAllOperationSpec); } @@ -970,11 +967,11 @@ export class VirtualMachinesImpl implements VirtualMachines { private _listAvailableSizes( resourceGroupName: string, vmName: string, - options?: VirtualMachinesListAvailableSizesOptionalParams + options?: VirtualMachinesListAvailableSizesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - listAvailableSizesOperationSpec + listAvailableSizesOperationSpec, ); } @@ -988,25 +985,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginPowerOff( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPowerOffOptionalParams + options?: VirtualMachinesPowerOffOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1015,8 +1011,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1024,19 +1020,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: powerOffOperationSpec + spec: powerOffOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1052,7 +1048,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginPowerOffAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPowerOffOptionalParams + options?: VirtualMachinesPowerOffOptionalParams, ): Promise { const poller = await this.beginPowerOff(resourceGroupName, vmName, options); return poller.pollUntilDone(); @@ -1067,25 +1063,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginReapply( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReapplyOptionalParams + options?: VirtualMachinesReapplyOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1094,8 +1089,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1103,19 +1098,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: reapplyOperationSpec + spec: reapplyOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1130,7 +1125,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginReapplyAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReapplyOptionalParams + options?: VirtualMachinesReapplyOptionalParams, ): Promise { const poller = await this.beginReapply(resourceGroupName, vmName, options); return poller.pollUntilDone(); @@ -1145,25 +1140,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginRestart( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1172,8 +1166,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1181,19 +1175,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1208,7 +1202,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginRestartAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise { const poller = await this.beginRestart(resourceGroupName, vmName, options); return poller.pollUntilDone(); @@ -1223,25 +1217,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginStart( resourceGroupName: string, vmName: string, - options?: VirtualMachinesStartOptionalParams + options?: VirtualMachinesStartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1250,8 +1243,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1259,19 +1252,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: startOperationSpec + spec: startOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1286,7 +1279,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginStartAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesStartOptionalParams + options?: VirtualMachinesStartOptionalParams, ): Promise { const poller = await this.beginStart(resourceGroupName, vmName, options); return poller.pollUntilDone(); @@ -1301,25 +1294,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginRedeploy( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRedeployOptionalParams + options?: VirtualMachinesRedeployOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1328,8 +1320,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1337,19 +1329,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: redeployOperationSpec + spec: redeployOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1364,7 +1356,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginRedeployAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRedeployOptionalParams + options?: VirtualMachinesRedeployOptionalParams, ): Promise { const poller = await this.beginRedeploy(resourceGroupName, vmName, options); return poller.pollUntilDone(); @@ -1384,25 +1376,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginReimage( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReimageOptionalParams + options?: VirtualMachinesReimageOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1411,8 +1402,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1420,19 +1411,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: reimageOperationSpec + spec: reimageOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1452,7 +1443,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginReimageAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReimageOptionalParams + options?: VirtualMachinesReimageOptionalParams, ): Promise { const poller = await this.beginReimage(resourceGroupName, vmName, options); return poller.pollUntilDone(); @@ -1467,11 +1458,11 @@ export class VirtualMachinesImpl implements VirtualMachines { retrieveBootDiagnosticsData( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams + options?: VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - retrieveBootDiagnosticsDataOperationSpec + retrieveBootDiagnosticsDataOperationSpec, ); } @@ -1484,25 +1475,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginPerformMaintenance( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPerformMaintenanceOptionalParams + options?: VirtualMachinesPerformMaintenanceOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1511,8 +1501,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1520,19 +1510,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: performMaintenanceOperationSpec + spec: performMaintenanceOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1547,12 +1537,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginPerformMaintenanceAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPerformMaintenanceOptionalParams + options?: VirtualMachinesPerformMaintenanceOptionalParams, ): Promise { const poller = await this.beginPerformMaintenance( resourceGroupName, vmName, - options + options, ); return poller.pollUntilDone(); } @@ -1566,11 +1556,11 @@ export class VirtualMachinesImpl implements VirtualMachines { simulateEviction( resourceGroupName: string, vmName: string, - options?: VirtualMachinesSimulateEvictionOptionalParams + options?: VirtualMachinesSimulateEvictionOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - simulateEvictionOperationSpec + simulateEvictionOperationSpec, ); } @@ -1583,7 +1573,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginAssessPatches( resourceGroupName: string, vmName: string, - options?: VirtualMachinesAssessPatchesOptionalParams + options?: VirtualMachinesAssessPatchesOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1592,21 +1582,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1615,8 +1604,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1624,15 +1613,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: assessPatchesOperationSpec + spec: assessPatchesOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesAssessPatchesResponse, @@ -1640,7 +1629,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1655,12 +1644,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginAssessPatchesAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesAssessPatchesOptionalParams + options?: VirtualMachinesAssessPatchesOptionalParams, ): Promise { const poller = await this.beginAssessPatches( resourceGroupName, vmName, - options + options, ); return poller.pollUntilDone(); } @@ -1676,7 +1665,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, installPatchesInput: VirtualMachineInstallPatchesParameters, - options?: VirtualMachinesInstallPatchesOptionalParams + options?: VirtualMachinesInstallPatchesOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1685,21 +1674,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1708,8 +1696,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1717,15 +1705,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, installPatchesInput, options }, - spec: installPatchesOperationSpec + spec: installPatchesOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesInstallPatchesResponse, @@ -1733,7 +1721,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1750,13 +1738,110 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, installPatchesInput: VirtualMachineInstallPatchesParameters, - options?: VirtualMachinesInstallPatchesOptionalParams + options?: VirtualMachinesInstallPatchesOptionalParams, ): Promise { const poller = await this.beginInstallPatches( resourceGroupName, vmName, installPatchesInput, - options + options, + ); + 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(); } @@ -1772,7 +1857,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: RunCommandInput, - options?: VirtualMachinesRunCommandOptionalParams + options?: VirtualMachinesRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1781,21 +1866,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1804,8 +1888,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1813,15 +1897,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, parameters, options }, - spec: runCommandOperationSpec + spec: runCommandOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesRunCommandResponse, @@ -1829,7 +1913,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1846,13 +1930,13 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: RunCommandInput, - options?: VirtualMachinesRunCommandOptionalParams + options?: VirtualMachinesRunCommandOptionalParams, ): Promise { const poller = await this.beginRunCommand( resourceGroupName, vmName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1866,11 +1950,11 @@ export class VirtualMachinesImpl implements VirtualMachines { private _listByLocationNext( location: string, nextLink: string, - options?: VirtualMachinesListByLocationNextOptionalParams + options?: VirtualMachinesListByLocationNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listByLocationNextOperationSpec + listByLocationNextOperationSpec, ); } @@ -1883,11 +1967,11 @@ export class VirtualMachinesImpl implements VirtualMachines { private _listNext( resourceGroupName: string, nextLink: string, - options?: VirtualMachinesListNextOptionalParams + options?: VirtualMachinesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -1898,11 +1982,11 @@ export class VirtualMachinesImpl implements VirtualMachines { */ private _listAllNext( nextLink: string, - options?: VirtualMachinesListAllNextOptionalParams + options?: VirtualMachinesListAllNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAllNextOperationSpec + listAllNextOperationSpec, ); } } @@ -1910,128 +1994,133 @@ export class VirtualMachinesImpl implements VirtualMachines { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByLocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineListResult + bodyMapper: Mappers.VirtualMachineListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const captureOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.VirtualMachineCaptureResult + bodyMapper: Mappers.VirtualMachineCaptureResult, }, 201: { - bodyMapper: Mappers.VirtualMachineCaptureResult + bodyMapper: Mappers.VirtualMachineCaptureResult, }, 202: { - bodyMapper: Mappers.VirtualMachineCaptureResult + bodyMapper: Mappers.VirtualMachineCaptureResult, }, 204: { - bodyMapper: Mappers.VirtualMachineCaptureResult + bodyMapper: Mappers.VirtualMachineCaptureResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 201: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 202: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 204: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + Parameters.ifNoneMatch, ], - headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 201: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 202: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 204: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + Parameters.ifNoneMatch, ], - headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", httpMethod: "DELETE", responses: { 200: {}, @@ -2039,66 +2128,63 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.forceDeletion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand2], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const instanceViewOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineInstanceView + bodyMapper: Mappers.VirtualMachineInstanceView, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const convertToManagedDisksOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks", httpMethod: "POST", responses: { 200: {}, @@ -2106,22 +2192,21 @@ const convertToManagedDisksOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deallocateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate", httpMethod: "POST", responses: { 200: {}, @@ -2129,111 +2214,106 @@ const deallocateOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.hibernate], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const generalizeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/generalize", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/generalize", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineListResult + bodyMapper: Mappers.VirtualMachineListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.filter, - Parameters.expand3 + Parameters.expand3, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineListResult + bodyMapper: Mappers.VirtualMachineListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.filter, Parameters.statusOnly, - Parameters.expand4 + Parameters.expand4, ], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAvailableSizesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/vmSizes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/vmSizes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineSizeListResult + bodyMapper: Mappers.VirtualMachineSizeListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const powerOffOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff", httpMethod: "POST", responses: { 200: {}, @@ -2241,22 +2321,21 @@ const powerOffOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.skipShutdown], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const reapplyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply", httpMethod: "POST", responses: { 200: {}, @@ -2264,22 +2343,21 @@ const reapplyOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart", httpMethod: "POST", responses: { 200: {}, @@ -2287,22 +2365,21 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start", httpMethod: "POST", responses: { 200: {}, @@ -2310,22 +2387,21 @@ const startOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const redeployOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy", httpMethod: "POST", responses: { 200: {}, @@ -2333,22 +2409,21 @@ const redeployOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const reimageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage", httpMethod: "POST", responses: { 200: {}, @@ -2356,49 +2431,47 @@ const reimageOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - requestBody: Parameters.parameters9, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const retrieveBootDiagnosticsDataOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/retrieveBootDiagnosticsData", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/retrieveBootDiagnosticsData", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RetrieveBootDiagnosticsDataResult + bodyMapper: Mappers.RetrieveBootDiagnosticsDataResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, - Parameters.sasUriExpirationTimeInMinutes + Parameters.sasUriExpirationTimeInMinutes, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const performMaintenanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance", httpMethod: "POST", responses: { 200: {}, @@ -2406,90 +2479,87 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const simulateEvictionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const assessPatchesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/assessPatches", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/assessPatches", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.VirtualMachineAssessPatchesResult + bodyMapper: Mappers.VirtualMachineAssessPatchesResult, }, 201: { - bodyMapper: Mappers.VirtualMachineAssessPatchesResult + bodyMapper: Mappers.VirtualMachineAssessPatchesResult, }, 202: { - bodyMapper: Mappers.VirtualMachineAssessPatchesResult + bodyMapper: Mappers.VirtualMachineAssessPatchesResult, }, 204: { - bodyMapper: Mappers.VirtualMachineAssessPatchesResult + bodyMapper: Mappers.VirtualMachineAssessPatchesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const installPatchesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.VirtualMachineInstallPatchesResult + bodyMapper: Mappers.VirtualMachineInstallPatchesResult, }, 201: { - bodyMapper: Mappers.VirtualMachineInstallPatchesResult + bodyMapper: Mappers.VirtualMachineInstallPatchesResult, }, 202: { - bodyMapper: Mappers.VirtualMachineInstallPatchesResult + bodyMapper: Mappers.VirtualMachineInstallPatchesResult, }, 204: { - bodyMapper: Mappers.VirtualMachineInstallPatchesResult + bodyMapper: Mappers.VirtualMachineInstallPatchesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.installPatchesInput, queryParameters: [Parameters.apiVersion], @@ -2497,29 +2567,31 @@ const installPatchesOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; -const runCommandOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand", +const attachDetachDataDisksOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/attachDetachDataDisks", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.StorageProfile, }, 201: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.StorageProfile, }, 202: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.StorageProfile, }, 204: { - bodyMapper: Mappers.RunCommandResult - } + bodyMapper: Mappers.StorageProfile, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], @@ -2527,68 +2599,97 @@ const runCommandOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + 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", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.RunCommandResult, + }, + 201: { + bodyMapper: Mappers.RunCommandResult, + }, + 202: { + bodyMapper: Mappers.RunCommandResult, + }, + 204: { + bodyMapper: Mappers.RunCommandResult, + }, + }, + requestBody: Parameters.parameters6, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.vmName, ], headerParameters: [Parameters.contentType, Parameters.accept1], mediaType: "json", - serializer + serializer, }; const listByLocationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineListResult + bodyMapper: Mappers.VirtualMachineListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.location, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineListResult + bodyMapper: Mappers.VirtualMachineListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineListResult + bodyMapper: Mappers.VirtualMachineListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/availabilitySets.ts b/sdk/compute/arm-compute/src/operationsInterfaces/availabilitySets.ts index 02e18b92c1dc..1a70a4da012f 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/availabilitySets.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/availabilitySets.ts @@ -20,7 +20,7 @@ import { AvailabilitySetsUpdateResponse, AvailabilitySetsDeleteOptionalParams, AvailabilitySetsGetOptionalParams, - AvailabilitySetsGetResponse + AvailabilitySetsGetResponse, } from "../models"; /// @@ -31,7 +31,7 @@ export interface AvailabilitySets { * @param options The options parameters. */ listBySubscription( - options?: AvailabilitySetsListBySubscriptionOptionalParams + options?: AvailabilitySetsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all availability sets in a resource group. @@ -40,7 +40,7 @@ export interface AvailabilitySets { */ list( resourceGroupName: string, - options?: AvailabilitySetsListOptionalParams + options?: AvailabilitySetsListOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all available virtual machine sizes that can be used to create a new virtual machine in an @@ -52,7 +52,7 @@ export interface AvailabilitySets { listAvailableSizes( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsListAvailableSizesOptionalParams + options?: AvailabilitySetsListAvailableSizesOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update an availability set. @@ -65,7 +65,7 @@ export interface AvailabilitySets { resourceGroupName: string, availabilitySetName: string, parameters: AvailabilitySet, - options?: AvailabilitySetsCreateOrUpdateOptionalParams + options?: AvailabilitySetsCreateOrUpdateOptionalParams, ): Promise; /** * Update an availability set. @@ -78,7 +78,7 @@ export interface AvailabilitySets { resourceGroupName: string, availabilitySetName: string, parameters: AvailabilitySetUpdate, - options?: AvailabilitySetsUpdateOptionalParams + options?: AvailabilitySetsUpdateOptionalParams, ): Promise; /** * Delete an availability set. @@ -89,7 +89,7 @@ export interface AvailabilitySets { delete( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsDeleteOptionalParams + options?: AvailabilitySetsDeleteOptionalParams, ): Promise; /** * Retrieves information about an availability set. @@ -100,6 +100,6 @@ export interface AvailabilitySets { get( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsGetOptionalParams + options?: AvailabilitySetsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservationGroups.ts b/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservationGroups.ts index 2d43fd8f245a..ecf7b2bfd9c7 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservationGroups.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservationGroups.ts @@ -18,7 +18,7 @@ import { CapacityReservationGroupsUpdateResponse, CapacityReservationGroupsDeleteOptionalParams, CapacityReservationGroupsGetOptionalParams, - CapacityReservationGroupsGetResponse + CapacityReservationGroupsGetResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface CapacityReservationGroups { */ listByResourceGroup( resourceGroupName: string, - options?: CapacityReservationGroupsListByResourceGroupOptionalParams + options?: CapacityReservationGroupsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all of the capacity reservation groups in the subscription. Use the nextLink property in the @@ -40,12 +40,12 @@ export interface CapacityReservationGroups { * @param options The options parameters. */ listBySubscription( - options?: CapacityReservationGroupsListBySubscriptionOptionalParams + options?: CapacityReservationGroupsListBySubscriptionOptionalParams, ): 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. @@ -55,11 +55,11 @@ export interface CapacityReservationGroups { resourceGroupName: string, capacityReservationGroupName: string, parameters: CapacityReservationGroup, - options?: CapacityReservationGroupsCreateOrUpdateOptionalParams + options?: CapacityReservationGroupsCreateOrUpdateOptionalParams, ): 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. @@ -69,7 +69,7 @@ export interface CapacityReservationGroups { resourceGroupName: string, capacityReservationGroupName: string, parameters: CapacityReservationGroupUpdate, - options?: CapacityReservationGroupsUpdateOptionalParams + options?: CapacityReservationGroupsUpdateOptionalParams, ): Promise; /** * The operation to delete a capacity reservation group. This operation is allowed only if all the @@ -83,7 +83,7 @@ export interface CapacityReservationGroups { delete( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationGroupsDeleteOptionalParams + options?: CapacityReservationGroupsDeleteOptionalParams, ): Promise; /** * The operation that retrieves information about a capacity reservation group. @@ -94,6 +94,6 @@ export interface CapacityReservationGroups { get( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationGroupsGetOptionalParams + options?: CapacityReservationGroupsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservations.ts b/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservations.ts index 0e7e2b65566f..137659ef17d1 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservations.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservations.ts @@ -18,7 +18,7 @@ import { CapacityReservationsUpdateResponse, CapacityReservationsDeleteOptionalParams, CapacityReservationsGetOptionalParams, - CapacityReservationsGetResponse + CapacityReservationsGetResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface CapacityReservations { listByCapacityReservationGroup( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationsListByCapacityReservationGroupOptionalParams + options?: CapacityReservationsListByCapacityReservationGroupOptionalParams, ): PagedAsyncIterableIterator; /** * The operation to create or update a capacity reservation. Please note some properties can be set @@ -51,7 +51,7 @@ export interface CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservation, - options?: CapacityReservationsCreateOrUpdateOptionalParams + options?: CapacityReservationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -73,7 +73,7 @@ export interface CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservation, - options?: CapacityReservationsCreateOrUpdateOptionalParams + options?: CapacityReservationsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update a capacity reservation. @@ -88,7 +88,7 @@ export interface CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservationUpdate, - options?: CapacityReservationsUpdateOptionalParams + options?: CapacityReservationsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -108,7 +108,7 @@ export interface CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservationUpdate, - options?: CapacityReservationsUpdateOptionalParams + options?: CapacityReservationsUpdateOptionalParams, ): Promise; /** * The operation to delete a capacity reservation. This operation is allowed only when all the @@ -123,7 +123,7 @@ export interface CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, - options?: CapacityReservationsDeleteOptionalParams + options?: CapacityReservationsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete a capacity reservation. This operation is allowed only when all the @@ -138,7 +138,7 @@ export interface CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, - options?: CapacityReservationsDeleteOptionalParams + options?: CapacityReservationsDeleteOptionalParams, ): Promise; /** * The operation that retrieves information about the capacity reservation. @@ -151,6 +151,6 @@ export interface CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, - options?: CapacityReservationsGetOptionalParams + options?: CapacityReservationsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceOperatingSystems.ts b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceOperatingSystems.ts index 43a831b17f7b..ecf78653ab6b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceOperatingSystems.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceOperatingSystems.ts @@ -15,7 +15,7 @@ import { CloudServiceOperatingSystemsGetOSVersionOptionalParams, CloudServiceOperatingSystemsGetOSVersionResponse, CloudServiceOperatingSystemsGetOSFamilyOptionalParams, - CloudServiceOperatingSystemsGetOSFamilyResponse + CloudServiceOperatingSystemsGetOSFamilyResponse, } from "../models"; /// @@ -30,7 +30,7 @@ export interface CloudServiceOperatingSystems { */ listOSVersions( location: string, - options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams + options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of all guest operating system families available to be specified in the XML service @@ -41,7 +41,7 @@ export interface CloudServiceOperatingSystems { */ listOSFamilies( location: string, - options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams + options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams, ): PagedAsyncIterableIterator; /** * Gets properties of a guest operating system version that can be specified in the XML service @@ -53,7 +53,7 @@ export interface CloudServiceOperatingSystems { getOSVersion( location: string, osVersionName: string, - options?: CloudServiceOperatingSystemsGetOSVersionOptionalParams + options?: CloudServiceOperatingSystemsGetOSVersionOptionalParams, ): Promise; /** * Gets properties of a guest operating system family that can be specified in the XML service @@ -65,6 +65,6 @@ export interface CloudServiceOperatingSystems { getOSFamily( location: string, osFamilyName: string, - options?: CloudServiceOperatingSystemsGetOSFamilyOptionalParams + options?: CloudServiceOperatingSystemsGetOSFamilyOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoleInstances.ts b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoleInstances.ts index b34256942c98..201c29097073 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoleInstances.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoleInstances.ts @@ -20,7 +20,7 @@ import { CloudServiceRoleInstancesReimageOptionalParams, CloudServiceRoleInstancesRebuildOptionalParams, CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams, - CloudServiceRoleInstancesGetRemoteDesktopFileResponse + CloudServiceRoleInstancesGetRemoteDesktopFileResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export interface CloudServiceRoleInstances { list( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesListOptionalParams + options?: CloudServiceRoleInstancesListOptionalParams, ): PagedAsyncIterableIterator; /** * Deletes a role instance from a cloud service. @@ -49,7 +49,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesDeleteOptionalParams + options?: CloudServiceRoleInstancesDeleteOptionalParams, ): Promise, void>>; /** * Deletes a role instance from a cloud service. @@ -62,7 +62,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesDeleteOptionalParams + options?: CloudServiceRoleInstancesDeleteOptionalParams, ): Promise; /** * Gets a role instance from a cloud service. @@ -75,7 +75,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesGetOptionalParams + options?: CloudServiceRoleInstancesGetOptionalParams, ): Promise; /** * Retrieves information about the run-time state of a role instance in a cloud service. @@ -88,7 +88,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesGetInstanceViewOptionalParams + options?: CloudServiceRoleInstancesGetInstanceViewOptionalParams, ): Promise; /** * The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud @@ -102,7 +102,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRestartOptionalParams + options?: CloudServiceRoleInstancesRestartOptionalParams, ): Promise, void>>; /** * The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud @@ -116,7 +116,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRestartOptionalParams + options?: CloudServiceRoleInstancesRestartOptionalParams, ): Promise; /** * The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web @@ -130,7 +130,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesReimageOptionalParams + options?: CloudServiceRoleInstancesReimageOptionalParams, ): Promise, void>>; /** * The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web @@ -144,7 +144,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesReimageOptionalParams + options?: CloudServiceRoleInstancesReimageOptionalParams, ): Promise; /** * The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web @@ -159,7 +159,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRebuildOptionalParams + options?: CloudServiceRoleInstancesRebuildOptionalParams, ): Promise, void>>; /** * The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web @@ -174,7 +174,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRebuildOptionalParams + options?: CloudServiceRoleInstancesRebuildOptionalParams, ): Promise; /** * Gets a remote desktop file for a role instance in a cloud service. @@ -187,6 +187,6 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams + options?: CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoles.ts b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoles.ts index f35bf8b2f3ba..21b27b7bc465 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoles.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoles.ts @@ -11,7 +11,7 @@ import { CloudServiceRole, CloudServiceRolesListOptionalParams, CloudServiceRolesGetOptionalParams, - CloudServiceRolesGetResponse + CloudServiceRolesGetResponse, } from "../models"; /// @@ -27,7 +27,7 @@ export interface CloudServiceRoles { list( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRolesListOptionalParams + options?: CloudServiceRolesListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a role from a cloud service. @@ -40,6 +40,6 @@ export interface CloudServiceRoles { roleName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRolesGetOptionalParams + options?: CloudServiceRolesGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServices.ts b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServices.ts index 3e7f88d72e7a..4c84e470b47e 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServices.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServices.ts @@ -26,7 +26,7 @@ import { CloudServicesRestartOptionalParams, CloudServicesReimageOptionalParams, CloudServicesRebuildOptionalParams, - CloudServicesDeleteInstancesOptionalParams + CloudServicesDeleteInstancesOptionalParams, } from "../models"; /// @@ -39,7 +39,7 @@ export interface CloudServices { * @param options The options parameters. */ listAll( - options?: CloudServicesListAllOptionalParams + options?: CloudServicesListAllOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of all cloud services under a resource group. Use nextLink property in the response to @@ -49,7 +49,7 @@ export interface CloudServices { */ list( resourceGroupName: string, - options?: CloudServicesListOptionalParams + options?: CloudServicesListOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a cloud service. Please note some properties can be set only during cloud service @@ -61,7 +61,7 @@ export interface CloudServices { beginCreateOrUpdate( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesCreateOrUpdateOptionalParams + options?: CloudServicesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -78,7 +78,7 @@ export interface CloudServices { beginCreateOrUpdateAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesCreateOrUpdateOptionalParams + options?: CloudServicesCreateOrUpdateOptionalParams, ): Promise; /** * Update a cloud service. @@ -89,7 +89,7 @@ export interface CloudServices { beginUpdate( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateOptionalParams + options?: CloudServicesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -105,7 +105,7 @@ export interface CloudServices { beginUpdateAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateOptionalParams + options?: CloudServicesUpdateOptionalParams, ): Promise; /** * Deletes a cloud service. @@ -116,7 +116,7 @@ export interface CloudServices { beginDelete( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteOptionalParams + options?: CloudServicesDeleteOptionalParams, ): Promise, void>>; /** * Deletes a cloud service. @@ -127,7 +127,7 @@ export interface CloudServices { beginDeleteAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteOptionalParams + options?: CloudServicesDeleteOptionalParams, ): Promise; /** * Display information about a cloud service. @@ -138,7 +138,7 @@ export interface CloudServices { get( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesGetOptionalParams + options?: CloudServicesGetOptionalParams, ): Promise; /** * Gets the status of a cloud service. @@ -149,7 +149,7 @@ export interface CloudServices { getInstanceView( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesGetInstanceViewOptionalParams + options?: CloudServicesGetInstanceViewOptionalParams, ): Promise; /** * Starts the cloud service. @@ -160,7 +160,7 @@ export interface CloudServices { beginStart( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesStartOptionalParams + options?: CloudServicesStartOptionalParams, ): Promise, void>>; /** * Starts the cloud service. @@ -171,7 +171,7 @@ export interface CloudServices { beginStartAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesStartOptionalParams + options?: CloudServicesStartOptionalParams, ): Promise; /** * Power off the cloud service. Note that resources are still attached and you are getting charged for @@ -183,7 +183,7 @@ export interface CloudServices { beginPowerOff( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesPowerOffOptionalParams + options?: CloudServicesPowerOffOptionalParams, ): Promise, void>>; /** * Power off the cloud service. Note that resources are still attached and you are getting charged for @@ -195,7 +195,7 @@ export interface CloudServices { beginPowerOffAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesPowerOffOptionalParams + options?: CloudServicesPowerOffOptionalParams, ): Promise; /** * Restarts one or more role instances in a cloud service. @@ -206,7 +206,7 @@ export interface CloudServices { beginRestart( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRestartOptionalParams + options?: CloudServicesRestartOptionalParams, ): Promise, void>>; /** * Restarts one or more role instances in a cloud service. @@ -217,7 +217,7 @@ export interface CloudServices { beginRestartAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRestartOptionalParams + options?: CloudServicesRestartOptionalParams, ): Promise; /** * Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker @@ -229,7 +229,7 @@ export interface CloudServices { beginReimage( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesReimageOptionalParams + options?: CloudServicesReimageOptionalParams, ): Promise, void>>; /** * Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker @@ -241,7 +241,7 @@ export interface CloudServices { beginReimageAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesReimageOptionalParams + options?: CloudServicesReimageOptionalParams, ): Promise; /** * Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and @@ -254,7 +254,7 @@ export interface CloudServices { beginRebuild( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRebuildOptionalParams + options?: CloudServicesRebuildOptionalParams, ): Promise, void>>; /** * Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and @@ -267,7 +267,7 @@ export interface CloudServices { beginRebuildAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRebuildOptionalParams + options?: CloudServicesRebuildOptionalParams, ): Promise; /** * Deletes role instances in a cloud service. @@ -278,7 +278,7 @@ export interface CloudServices { beginDeleteInstances( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteInstancesOptionalParams + options?: CloudServicesDeleteInstancesOptionalParams, ): Promise, void>>; /** * Deletes role instances in a cloud service. @@ -289,6 +289,6 @@ export interface CloudServices { beginDeleteInstancesAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteInstancesOptionalParams + options?: CloudServicesDeleteInstancesOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServicesUpdateDomain.ts b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServicesUpdateDomain.ts index 88848d085687..c51e440b011b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServicesUpdateDomain.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServicesUpdateDomain.ts @@ -13,7 +13,7 @@ import { CloudServicesUpdateDomainListUpdateDomainsOptionalParams, CloudServicesUpdateDomainWalkUpdateDomainOptionalParams, CloudServicesUpdateDomainGetUpdateDomainOptionalParams, - CloudServicesUpdateDomainGetUpdateDomainResponse + CloudServicesUpdateDomainGetUpdateDomainResponse, } from "../models"; /// @@ -28,7 +28,7 @@ export interface CloudServicesUpdateDomain { listUpdateDomains( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams + options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams, ): PagedAsyncIterableIterator; /** * Updates the role instances in the specified update domain. @@ -43,7 +43,7 @@ export interface CloudServicesUpdateDomain { resourceGroupName: string, cloudServiceName: string, updateDomain: number, - options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams + options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams, ): Promise, void>>; /** * Updates the role instances in the specified update domain. @@ -58,7 +58,7 @@ export interface CloudServicesUpdateDomain { resourceGroupName: string, cloudServiceName: string, updateDomain: number, - options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams + options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams, ): Promise; /** * Gets the specified update domain of a cloud service. Use nextLink property in the response to get @@ -74,6 +74,6 @@ export interface CloudServicesUpdateDomain { resourceGroupName: string, cloudServiceName: string, updateDomain: number, - options?: CloudServicesUpdateDomainGetUpdateDomainOptionalParams + options?: CloudServicesUpdateDomainGetUpdateDomainOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleries.ts b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleries.ts index b39f7dd72a77..b028f5fa3667 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleries.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleries.ts @@ -8,7 +8,7 @@ import { CommunityGalleriesGetOptionalParams, - CommunityGalleriesGetResponse + CommunityGalleriesGetResponse, } from "../models"; /** Interface representing a CommunityGalleries. */ @@ -22,6 +22,6 @@ export interface CommunityGalleries { get( location: string, publicGalleryName: string, - options?: CommunityGalleriesGetOptionalParams + options?: CommunityGalleriesGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImageVersions.ts index 53851504708c..47e34114dec7 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImageVersions.ts @@ -11,7 +11,7 @@ import { CommunityGalleryImageVersion, CommunityGalleryImageVersionsListOptionalParams, CommunityGalleryImageVersionsGetOptionalParams, - CommunityGalleryImageVersionsGetResponse + CommunityGalleryImageVersionsGetResponse, } from "../models"; /// @@ -28,7 +28,7 @@ export interface CommunityGalleryImageVersions { location: string, publicGalleryName: string, galleryImageName: string, - options?: CommunityGalleryImageVersionsListOptionalParams + options?: CommunityGalleryImageVersionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a community gallery image version. @@ -45,6 +45,6 @@ export interface CommunityGalleryImageVersions { publicGalleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: CommunityGalleryImageVersionsGetOptionalParams + options?: CommunityGalleryImageVersionsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImages.ts b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImages.ts index 7d3f7811531e..ccfade2f5258 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImages.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImages.ts @@ -11,7 +11,7 @@ import { CommunityGalleryImage, CommunityGalleryImagesListOptionalParams, CommunityGalleryImagesGetOptionalParams, - CommunityGalleryImagesGetResponse + CommunityGalleryImagesGetResponse, } from "../models"; /// @@ -26,7 +26,7 @@ export interface CommunityGalleryImages { list( location: string, publicGalleryName: string, - options?: CommunityGalleryImagesListOptionalParams + options?: CommunityGalleryImagesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a community gallery image. @@ -39,6 +39,6 @@ export interface CommunityGalleryImages { location: string, publicGalleryName: string, galleryImageName: string, - options?: CommunityGalleryImagesGetOptionalParams + options?: CommunityGalleryImagesGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHostGroups.ts b/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHostGroups.ts index 8b50c847095a..d55fa7f4ab5b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHostGroups.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHostGroups.ts @@ -18,7 +18,7 @@ import { DedicatedHostGroupsUpdateResponse, DedicatedHostGroupsDeleteOptionalParams, DedicatedHostGroupsGetOptionalParams, - DedicatedHostGroupsGetResponse + DedicatedHostGroupsGetResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface DedicatedHostGroups { */ listByResourceGroup( resourceGroupName: string, - options?: DedicatedHostGroupsListByResourceGroupOptionalParams + options?: DedicatedHostGroupsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all of the dedicated host groups in the subscription. Use the nextLink property in the @@ -40,7 +40,7 @@ export interface DedicatedHostGroups { * @param options The options parameters. */ listBySubscription( - options?: DedicatedHostGroupsListBySubscriptionOptionalParams + options?: DedicatedHostGroupsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups @@ -54,7 +54,7 @@ export interface DedicatedHostGroups { resourceGroupName: string, hostGroupName: string, parameters: DedicatedHostGroup, - options?: DedicatedHostGroupsCreateOrUpdateOptionalParams + options?: DedicatedHostGroupsCreateOrUpdateOptionalParams, ): Promise; /** * Update an dedicated host group. @@ -67,7 +67,7 @@ export interface DedicatedHostGroups { resourceGroupName: string, hostGroupName: string, parameters: DedicatedHostGroupUpdate, - options?: DedicatedHostGroupsUpdateOptionalParams + options?: DedicatedHostGroupsUpdateOptionalParams, ): Promise; /** * Delete a dedicated host group. @@ -78,7 +78,7 @@ export interface DedicatedHostGroups { delete( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostGroupsDeleteOptionalParams + options?: DedicatedHostGroupsDeleteOptionalParams, ): Promise; /** * Retrieves information about a dedicated host group. @@ -89,6 +89,6 @@ export interface DedicatedHostGroups { get( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostGroupsGetOptionalParams + options?: DedicatedHostGroupsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts b/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts index 6f8b65adf57c..5d21aed8dcee 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"; /// @@ -36,7 +38,7 @@ export interface DedicatedHosts { listByHostGroup( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostsListByHostGroupOptionalParams + options?: DedicatedHostsListByHostGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: @@ -50,7 +52,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsListAvailableSizesOptionalParams + options?: DedicatedHostsListAvailableSizesOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a dedicated host . @@ -65,7 +67,7 @@ export interface DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHost, - options?: DedicatedHostsCreateOrUpdateOptionalParams + options?: DedicatedHostsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -85,7 +87,7 @@ export interface DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHost, - options?: DedicatedHostsCreateOrUpdateOptionalParams + options?: DedicatedHostsCreateOrUpdateOptionalParams, ): Promise; /** * Update a dedicated host . @@ -100,7 +102,7 @@ export interface DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHostUpdate, - options?: DedicatedHostsUpdateOptionalParams + options?: DedicatedHostsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -120,7 +122,7 @@ export interface DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHostUpdate, - options?: DedicatedHostsUpdateOptionalParams + options?: DedicatedHostsUpdateOptionalParams, ): Promise; /** * Delete a dedicated host. @@ -133,7 +135,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsDeleteOptionalParams + options?: DedicatedHostsDeleteOptionalParams, ): Promise, void>>; /** * Delete a dedicated host. @@ -146,7 +148,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsDeleteOptionalParams + options?: DedicatedHostsDeleteOptionalParams, ): Promise; /** * Retrieves information about a dedicated host. @@ -159,7 +161,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsGetOptionalParams + options?: DedicatedHostsGetOptionalParams, ): Promise; /** * Restart the dedicated host. The operation will complete successfully once the dedicated host has @@ -175,7 +177,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRestartOptionalParams + options?: DedicatedHostsRestartOptionalParams, ): Promise, void>>; /** * Restart the dedicated host. The operation will complete successfully once the dedicated host has @@ -191,6 +193,43 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRestartOptionalParams + 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/diskAccesses.ts b/sdk/compute/arm-compute/src/operationsInterfaces/diskAccesses.ts index b3f40067e821..2cc048115255 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/diskAccesses.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/diskAccesses.ts @@ -28,7 +28,7 @@ import { DiskAccessesUpdateAPrivateEndpointConnectionResponse, DiskAccessesGetAPrivateEndpointConnectionOptionalParams, DiskAccessesGetAPrivateEndpointConnectionResponse, - DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams + DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams, } from "../models"; /// @@ -41,14 +41,14 @@ export interface DiskAccesses { */ listByResourceGroup( resourceGroupName: string, - options?: DiskAccessesListByResourceGroupOptionalParams + options?: DiskAccessesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all the disk access resources under a subscription. * @param options The options parameters. */ list( - options?: DiskAccessesListOptionalParams + options?: DiskAccessesListOptionalParams, ): PagedAsyncIterableIterator; /** * List information about private endpoint connections under a disk access resource @@ -61,7 +61,7 @@ export interface DiskAccesses { listPrivateEndpointConnections( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams + options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a disk access resource @@ -76,7 +76,7 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccess, - options?: DiskAccessesCreateOrUpdateOptionalParams + options?: DiskAccessesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -96,7 +96,7 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccess, - options?: DiskAccessesCreateOrUpdateOptionalParams + options?: DiskAccessesCreateOrUpdateOptionalParams, ): Promise; /** * Updates (patches) a disk access resource. @@ -111,7 +111,7 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccessUpdate, - options?: DiskAccessesUpdateOptionalParams + options?: DiskAccessesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -131,7 +131,7 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccessUpdate, - options?: DiskAccessesUpdateOptionalParams + options?: DiskAccessesUpdateOptionalParams, ): Promise; /** * Gets information about a disk access resource. @@ -144,7 +144,7 @@ export interface DiskAccesses { get( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesGetOptionalParams + options?: DiskAccessesGetOptionalParams, ): Promise; /** * Deletes a disk access resource. @@ -157,7 +157,7 @@ export interface DiskAccesses { beginDelete( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesDeleteOptionalParams + options?: DiskAccessesDeleteOptionalParams, ): Promise, void>>; /** * Deletes a disk access resource. @@ -170,7 +170,7 @@ export interface DiskAccesses { beginDeleteAndWait( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesDeleteOptionalParams + options?: DiskAccessesDeleteOptionalParams, ): Promise; /** * Gets the private link resources possible under disk access resource @@ -183,7 +183,7 @@ export interface DiskAccesses { getPrivateLinkResources( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesGetPrivateLinkResourcesOptionalParams + options?: DiskAccessesGetPrivateLinkResourcesOptionalParams, ): Promise; /** * Approve or reject a private endpoint connection under disk access resource, this can't be used to @@ -202,7 +202,7 @@ export interface DiskAccesses { diskAccessName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, - options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -226,7 +226,7 @@ export interface DiskAccesses { diskAccessName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, - options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams, ): Promise; /** * Gets information about a private endpoint connection under a disk access resource. @@ -241,7 +241,7 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, - options?: DiskAccessesGetAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesGetAPrivateEndpointConnectionOptionalParams, ): Promise; /** * Deletes a private endpoint connection under a disk access resource. @@ -256,7 +256,7 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, - options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams, ): Promise, void>>; /** * Deletes a private endpoint connection under a disk access resource. @@ -271,6 +271,6 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, - options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/diskEncryptionSets.ts b/sdk/compute/arm-compute/src/operationsInterfaces/diskEncryptionSets.ts index 081a6b26d905..c5989a93d0a4 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/diskEncryptionSets.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/diskEncryptionSets.ts @@ -20,7 +20,7 @@ import { DiskEncryptionSetsUpdateResponse, DiskEncryptionSetsGetOptionalParams, DiskEncryptionSetsGetResponse, - DiskEncryptionSetsDeleteOptionalParams + DiskEncryptionSetsDeleteOptionalParams, } from "../models"; /// @@ -33,14 +33,14 @@ export interface DiskEncryptionSets { */ listByResourceGroup( resourceGroupName: string, - options?: DiskEncryptionSetsListByResourceGroupOptionalParams + options?: DiskEncryptionSetsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all the disk encryption sets under a subscription. * @param options The options parameters. */ list( - options?: DiskEncryptionSetsListOptionalParams + options?: DiskEncryptionSetsListOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all resources that are encrypted with this disk encryption set. @@ -53,7 +53,7 @@ export interface DiskEncryptionSets { listAssociatedResources( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams + options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a disk encryption set @@ -69,7 +69,7 @@ export interface DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSet, - options?: DiskEncryptionSetsCreateOrUpdateOptionalParams + options?: DiskEncryptionSetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -90,7 +90,7 @@ export interface DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSet, - options?: DiskEncryptionSetsCreateOrUpdateOptionalParams + options?: DiskEncryptionSetsCreateOrUpdateOptionalParams, ): Promise; /** * Updates (patches) a disk encryption set. @@ -106,7 +106,7 @@ export interface DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSetUpdate, - options?: DiskEncryptionSetsUpdateOptionalParams + options?: DiskEncryptionSetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -127,7 +127,7 @@ export interface DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSetUpdate, - options?: DiskEncryptionSetsUpdateOptionalParams + options?: DiskEncryptionSetsUpdateOptionalParams, ): Promise; /** * Gets information about a disk encryption set. @@ -140,7 +140,7 @@ export interface DiskEncryptionSets { get( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsGetOptionalParams + options?: DiskEncryptionSetsGetOptionalParams, ): Promise; /** * Deletes a disk encryption set. @@ -153,7 +153,7 @@ export interface DiskEncryptionSets { beginDelete( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsDeleteOptionalParams + options?: DiskEncryptionSetsDeleteOptionalParams, ): Promise, void>>; /** * Deletes a disk encryption set. @@ -166,6 +166,6 @@ export interface DiskEncryptionSets { beginDeleteAndWait( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsDeleteOptionalParams + options?: DiskEncryptionSetsDeleteOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/diskRestorePointOperations.ts b/sdk/compute/arm-compute/src/operationsInterfaces/diskRestorePointOperations.ts index 2701737e062b..b83fbfa25bf3 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/diskRestorePointOperations.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/diskRestorePointOperations.ts @@ -16,7 +16,7 @@ import { GrantAccessData, DiskRestorePointGrantAccessOptionalParams, DiskRestorePointGrantAccessResponse, - DiskRestorePointRevokeAccessOptionalParams + DiskRestorePointRevokeAccessOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface DiskRestorePointOperations { resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, - options?: DiskRestorePointListByRestorePointOptionalParams + options?: DiskRestorePointListByRestorePointOptionalParams, ): PagedAsyncIterableIterator; /** * Get disk restorePoint resource @@ -50,7 +50,7 @@ export interface DiskRestorePointOperations { restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, - options?: DiskRestorePointGetOptionalParams + options?: DiskRestorePointGetOptionalParams, ): Promise; /** * Grants access to a diskRestorePoint. @@ -68,7 +68,7 @@ export interface DiskRestorePointOperations { vmRestorePointName: string, diskRestorePointName: string, grantAccessData: GrantAccessData, - options?: DiskRestorePointGrantAccessOptionalParams + options?: DiskRestorePointGrantAccessOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -91,7 +91,7 @@ export interface DiskRestorePointOperations { vmRestorePointName: string, diskRestorePointName: string, grantAccessData: GrantAccessData, - options?: DiskRestorePointGrantAccessOptionalParams + options?: DiskRestorePointGrantAccessOptionalParams, ): Promise; /** * Revokes access to a diskRestorePoint. @@ -107,7 +107,7 @@ export interface DiskRestorePointOperations { restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, - options?: DiskRestorePointRevokeAccessOptionalParams + options?: DiskRestorePointRevokeAccessOptionalParams, ): Promise, void>>; /** * Revokes access to a diskRestorePoint. @@ -123,6 +123,6 @@ export interface DiskRestorePointOperations { restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, - options?: DiskRestorePointRevokeAccessOptionalParams + options?: DiskRestorePointRevokeAccessOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/disks.ts b/sdk/compute/arm-compute/src/operationsInterfaces/disks.ts index 0dc932c7eb90..1f3a7cede6cd 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/disks.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/disks.ts @@ -23,7 +23,7 @@ import { GrantAccessData, DisksGrantAccessOptionalParams, DisksGrantAccessResponse, - DisksRevokeAccessOptionalParams + DisksRevokeAccessOptionalParams, } from "../models"; /// @@ -36,7 +36,7 @@ export interface Disks { */ listByResourceGroup( resourceGroupName: string, - options?: DisksListByResourceGroupOptionalParams + options?: DisksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all the disks under a subscription. @@ -56,7 +56,7 @@ export interface Disks { resourceGroupName: string, diskName: string, disk: Disk, - options?: DisksCreateOrUpdateOptionalParams + options?: DisksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -76,7 +76,7 @@ export interface Disks { resourceGroupName: string, diskName: string, disk: Disk, - options?: DisksCreateOrUpdateOptionalParams + options?: DisksCreateOrUpdateOptionalParams, ): Promise; /** * Updates (patches) a disk. @@ -91,7 +91,7 @@ export interface Disks { resourceGroupName: string, diskName: string, disk: DiskUpdate, - options?: DisksUpdateOptionalParams + options?: DisksUpdateOptionalParams, ): Promise< SimplePollerLike, DisksUpdateResponse> >; @@ -108,7 +108,7 @@ export interface Disks { resourceGroupName: string, diskName: string, disk: DiskUpdate, - options?: DisksUpdateOptionalParams + options?: DisksUpdateOptionalParams, ): Promise; /** * Gets information about a disk. @@ -121,7 +121,7 @@ export interface Disks { get( resourceGroupName: string, diskName: string, - options?: DisksGetOptionalParams + options?: DisksGetOptionalParams, ): Promise; /** * Deletes a disk. @@ -134,7 +134,7 @@ export interface Disks { beginDelete( resourceGroupName: string, diskName: string, - options?: DisksDeleteOptionalParams + options?: DisksDeleteOptionalParams, ): Promise, void>>; /** * Deletes a disk. @@ -147,7 +147,7 @@ export interface Disks { beginDeleteAndWait( resourceGroupName: string, diskName: string, - options?: DisksDeleteOptionalParams + options?: DisksDeleteOptionalParams, ): Promise; /** * Grants access to a disk. @@ -162,7 +162,7 @@ export interface Disks { resourceGroupName: string, diskName: string, grantAccessData: GrantAccessData, - options?: DisksGrantAccessOptionalParams + options?: DisksGrantAccessOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -182,7 +182,7 @@ export interface Disks { resourceGroupName: string, diskName: string, grantAccessData: GrantAccessData, - options?: DisksGrantAccessOptionalParams + options?: DisksGrantAccessOptionalParams, ): Promise; /** * Revokes access to a disk. @@ -195,7 +195,7 @@ export interface Disks { beginRevokeAccess( resourceGroupName: string, diskName: string, - options?: DisksRevokeAccessOptionalParams + options?: DisksRevokeAccessOptionalParams, ): Promise, void>>; /** * Revokes access to a disk. @@ -208,6 +208,6 @@ export interface Disks { beginRevokeAccessAndWait( resourceGroupName: string, diskName: string, - options?: DisksRevokeAccessOptionalParams + options?: DisksRevokeAccessOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleries.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleries.ts index b650db80e3d4..79aaabfd818b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleries.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleries.ts @@ -19,7 +19,7 @@ import { GalleriesUpdateResponse, GalleriesGetOptionalParams, GalleriesGetResponse, - GalleriesDeleteOptionalParams + GalleriesDeleteOptionalParams, } from "../models"; /// @@ -32,14 +32,14 @@ export interface Galleries { */ listByResourceGroup( resourceGroupName: string, - options?: GalleriesListByResourceGroupOptionalParams + options?: GalleriesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * List galleries under a subscription. * @param options The options parameters. */ list( - options?: GalleriesListOptionalParams + options?: GalleriesListOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a Shared Image Gallery. @@ -53,7 +53,7 @@ export interface Galleries { resourceGroupName: string, galleryName: string, gallery: Gallery, - options?: GalleriesCreateOrUpdateOptionalParams + options?: GalleriesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -72,7 +72,7 @@ export interface Galleries { resourceGroupName: string, galleryName: string, gallery: Gallery, - options?: GalleriesCreateOrUpdateOptionalParams + options?: GalleriesCreateOrUpdateOptionalParams, ): Promise; /** * Update a Shared Image Gallery. @@ -86,7 +86,7 @@ export interface Galleries { resourceGroupName: string, galleryName: string, gallery: GalleryUpdate, - options?: GalleriesUpdateOptionalParams + options?: GalleriesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -105,7 +105,7 @@ export interface Galleries { resourceGroupName: string, galleryName: string, gallery: GalleryUpdate, - options?: GalleriesUpdateOptionalParams + options?: GalleriesUpdateOptionalParams, ): Promise; /** * Retrieves information about a Shared Image Gallery. @@ -116,7 +116,7 @@ export interface Galleries { get( resourceGroupName: string, galleryName: string, - options?: GalleriesGetOptionalParams + options?: GalleriesGetOptionalParams, ): Promise; /** * Delete a Shared Image Gallery. @@ -127,7 +127,7 @@ export interface Galleries { beginDelete( resourceGroupName: string, galleryName: string, - options?: GalleriesDeleteOptionalParams + options?: GalleriesDeleteOptionalParams, ): Promise, void>>; /** * Delete a Shared Image Gallery. @@ -138,6 +138,6 @@ export interface Galleries { beginDeleteAndWait( resourceGroupName: string, galleryName: string, - options?: GalleriesDeleteOptionalParams + options?: GalleriesDeleteOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplicationVersions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplicationVersions.ts index bf5b50c76d33..36bbca514f39 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplicationVersions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplicationVersions.ts @@ -18,7 +18,7 @@ import { GalleryApplicationVersionsUpdateResponse, GalleryApplicationVersionsGetOptionalParams, GalleryApplicationVersionsGetResponse, - GalleryApplicationVersionsDeleteOptionalParams + GalleryApplicationVersionsDeleteOptionalParams, } from "../models"; /// @@ -37,7 +37,7 @@ export interface GalleryApplicationVersions { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams + options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a gallery Application Version. @@ -59,7 +59,7 @@ export interface GalleryApplicationVersions { galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, - options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams + options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -86,7 +86,7 @@ export interface GalleryApplicationVersions { galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, - options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams + options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams, ): Promise; /** * Update a gallery Application Version. @@ -108,7 +108,7 @@ export interface GalleryApplicationVersions { galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, - options?: GalleryApplicationVersionsUpdateOptionalParams + options?: GalleryApplicationVersionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -135,7 +135,7 @@ export interface GalleryApplicationVersions { galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, - options?: GalleryApplicationVersionsUpdateOptionalParams + options?: GalleryApplicationVersionsUpdateOptionalParams, ): Promise; /** * Retrieves information about a gallery Application Version. @@ -152,7 +152,7 @@ export interface GalleryApplicationVersions { galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, - options?: GalleryApplicationVersionsGetOptionalParams + options?: GalleryApplicationVersionsGetOptionalParams, ): Promise; /** * Delete a gallery Application Version. @@ -169,7 +169,7 @@ export interface GalleryApplicationVersions { galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, - options?: GalleryApplicationVersionsDeleteOptionalParams + options?: GalleryApplicationVersionsDeleteOptionalParams, ): Promise, void>>; /** * Delete a gallery Application Version. @@ -186,6 +186,6 @@ export interface GalleryApplicationVersions { galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, - options?: GalleryApplicationVersionsDeleteOptionalParams + options?: GalleryApplicationVersionsDeleteOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplications.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplications.ts index 14c4d53d8e90..8b8194c091b5 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplications.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplications.ts @@ -18,7 +18,7 @@ import { GalleryApplicationsUpdateResponse, GalleryApplicationsGetOptionalParams, GalleryApplicationsGetResponse, - GalleryApplicationsDeleteOptionalParams + GalleryApplicationsDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface GalleryApplications { listByGallery( resourceGroupName: string, galleryName: string, - options?: GalleryApplicationsListByGalleryOptionalParams + options?: GalleryApplicationsListByGalleryOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a gallery Application Definition. @@ -52,7 +52,7 @@ export interface GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, - options?: GalleryApplicationsCreateOrUpdateOptionalParams + options?: GalleryApplicationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -75,7 +75,7 @@ export interface GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, - options?: GalleryApplicationsCreateOrUpdateOptionalParams + options?: GalleryApplicationsCreateOrUpdateOptionalParams, ): Promise; /** * Update a gallery Application Definition. @@ -93,7 +93,7 @@ export interface GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, - options?: GalleryApplicationsUpdateOptionalParams + options?: GalleryApplicationsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -116,7 +116,7 @@ export interface GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, - options?: GalleryApplicationsUpdateOptionalParams + options?: GalleryApplicationsUpdateOptionalParams, ): Promise; /** * Retrieves information about a gallery Application Definition. @@ -130,7 +130,7 @@ export interface GalleryApplications { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationsGetOptionalParams + options?: GalleryApplicationsGetOptionalParams, ): Promise; /** * Delete a gallery Application. @@ -144,7 +144,7 @@ export interface GalleryApplications { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationsDeleteOptionalParams + options?: GalleryApplicationsDeleteOptionalParams, ): Promise, void>>; /** * Delete a gallery Application. @@ -158,6 +158,6 @@ export interface GalleryApplications { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationsDeleteOptionalParams + options?: GalleryApplicationsDeleteOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryImageVersions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryImageVersions.ts index 4b0460bc2156..725506b7f428 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryImageVersions.ts @@ -18,7 +18,7 @@ import { GalleryImageVersionsUpdateResponse, GalleryImageVersionsGetOptionalParams, GalleryImageVersionsGetResponse, - GalleryImageVersionsDeleteOptionalParams + GalleryImageVersionsDeleteOptionalParams, } from "../models"; /// @@ -36,7 +36,7 @@ export interface GalleryImageVersions { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImageVersionsListByGalleryImageOptionalParams + options?: GalleryImageVersionsListByGalleryImageOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a gallery image version. @@ -57,7 +57,7 @@ export interface GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, - options?: GalleryImageVersionsCreateOrUpdateOptionalParams + options?: GalleryImageVersionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -83,7 +83,7 @@ export interface GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, - options?: GalleryImageVersionsCreateOrUpdateOptionalParams + options?: GalleryImageVersionsCreateOrUpdateOptionalParams, ): Promise; /** * Update a gallery image version. @@ -103,7 +103,7 @@ export interface GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, - options?: GalleryImageVersionsUpdateOptionalParams + options?: GalleryImageVersionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -128,7 +128,7 @@ export interface GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, - options?: GalleryImageVersionsUpdateOptionalParams + options?: GalleryImageVersionsUpdateOptionalParams, ): Promise; /** * Retrieves information about a gallery image version. @@ -143,7 +143,7 @@ export interface GalleryImageVersions { galleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: GalleryImageVersionsGetOptionalParams + options?: GalleryImageVersionsGetOptionalParams, ): Promise; /** * Delete a gallery image version. @@ -158,7 +158,7 @@ export interface GalleryImageVersions { galleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: GalleryImageVersionsDeleteOptionalParams + options?: GalleryImageVersionsDeleteOptionalParams, ): Promise, void>>; /** * Delete a gallery image version. @@ -173,6 +173,6 @@ export interface GalleryImageVersions { galleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: GalleryImageVersionsDeleteOptionalParams + options?: GalleryImageVersionsDeleteOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryImages.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryImages.ts index 1e602f987fee..17c5e4094458 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryImages.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryImages.ts @@ -18,7 +18,7 @@ import { GalleryImagesUpdateResponse, GalleryImagesGetOptionalParams, GalleryImagesGetResponse, - GalleryImagesDeleteOptionalParams + GalleryImagesDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface GalleryImages { listByGallery( resourceGroupName: string, galleryName: string, - options?: GalleryImagesListByGalleryOptionalParams + options?: GalleryImagesListByGalleryOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a gallery image definition. @@ -52,7 +52,7 @@ export interface GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImage, - options?: GalleryImagesCreateOrUpdateOptionalParams + options?: GalleryImagesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -75,7 +75,7 @@ export interface GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImage, - options?: GalleryImagesCreateOrUpdateOptionalParams + options?: GalleryImagesCreateOrUpdateOptionalParams, ): Promise; /** * Update a gallery image definition. @@ -93,7 +93,7 @@ export interface GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, - options?: GalleryImagesUpdateOptionalParams + options?: GalleryImagesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -116,7 +116,7 @@ export interface GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, - options?: GalleryImagesUpdateOptionalParams + options?: GalleryImagesUpdateOptionalParams, ): Promise; /** * Retrieves information about a gallery image definition. @@ -130,7 +130,7 @@ export interface GalleryImages { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImagesGetOptionalParams + options?: GalleryImagesGetOptionalParams, ): Promise; /** * Delete a gallery image. @@ -144,7 +144,7 @@ export interface GalleryImages { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImagesDeleteOptionalParams + options?: GalleryImagesDeleteOptionalParams, ): Promise, void>>; /** * Delete a gallery image. @@ -158,6 +158,6 @@ export interface GalleryImages { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImagesDeleteOptionalParams + options?: GalleryImagesDeleteOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/gallerySharingProfile.ts b/sdk/compute/arm-compute/src/operationsInterfaces/gallerySharingProfile.ts index d3de32b681fc..892c31fc918c 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/gallerySharingProfile.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/gallerySharingProfile.ts @@ -10,7 +10,7 @@ import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { SharingUpdate, GallerySharingProfileUpdateOptionalParams, - GallerySharingProfileUpdateResponse + GallerySharingProfileUpdateResponse, } from "../models"; /** Interface representing a GallerySharingProfile. */ @@ -26,7 +26,7 @@ export interface GallerySharingProfile { resourceGroupName: string, galleryName: string, sharingUpdate: SharingUpdate, - options?: GallerySharingProfileUpdateOptionalParams + options?: GallerySharingProfileUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -44,6 +44,6 @@ export interface GallerySharingProfile { resourceGroupName: string, galleryName: string, sharingUpdate: SharingUpdate, - options?: GallerySharingProfileUpdateOptionalParams + options?: GallerySharingProfileUpdateOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/images.ts b/sdk/compute/arm-compute/src/operationsInterfaces/images.ts index 97bb85acd4ee..31a3e84783db 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/images.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/images.ts @@ -19,7 +19,7 @@ import { ImagesUpdateResponse, ImagesDeleteOptionalParams, ImagesGetOptionalParams, - ImagesGetResponse + ImagesGetResponse, } from "../models"; /// @@ -33,7 +33,7 @@ export interface Images { */ listByResourceGroup( resourceGroupName: string, - options?: ImagesListByResourceGroupOptionalParams + options?: ImagesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the list of Images in the subscription. Use nextLink property in the response to get the next @@ -52,7 +52,7 @@ export interface Images { resourceGroupName: string, imageName: string, parameters: Image, - options?: ImagesCreateOrUpdateOptionalParams + options?: ImagesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -70,7 +70,7 @@ export interface Images { resourceGroupName: string, imageName: string, parameters: Image, - options?: ImagesCreateOrUpdateOptionalParams + options?: ImagesCreateOrUpdateOptionalParams, ): Promise; /** * Update an image. @@ -83,7 +83,7 @@ export interface Images { resourceGroupName: string, imageName: string, parameters: ImageUpdate, - options?: ImagesUpdateOptionalParams + options?: ImagesUpdateOptionalParams, ): Promise< SimplePollerLike, ImagesUpdateResponse> >; @@ -98,7 +98,7 @@ export interface Images { resourceGroupName: string, imageName: string, parameters: ImageUpdate, - options?: ImagesUpdateOptionalParams + options?: ImagesUpdateOptionalParams, ): Promise; /** * Deletes an Image. @@ -109,7 +109,7 @@ export interface Images { beginDelete( resourceGroupName: string, imageName: string, - options?: ImagesDeleteOptionalParams + options?: ImagesDeleteOptionalParams, ): Promise, void>>; /** * Deletes an Image. @@ -120,7 +120,7 @@ export interface Images { beginDeleteAndWait( resourceGroupName: string, imageName: string, - options?: ImagesDeleteOptionalParams + options?: ImagesDeleteOptionalParams, ): Promise; /** * Gets an image. @@ -131,6 +131,6 @@ export interface Images { get( resourceGroupName: string, imageName: string, - options?: ImagesGetOptionalParams + options?: ImagesGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/logAnalytics.ts b/sdk/compute/arm-compute/src/operationsInterfaces/logAnalytics.ts index d6ffc9ae5ba0..12cb2b27c95d 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/logAnalytics.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/logAnalytics.ts @@ -13,7 +13,7 @@ import { LogAnalyticsExportRequestRateByIntervalResponse, ThrottledRequestsInput, LogAnalyticsExportThrottledRequestsOptionalParams, - LogAnalyticsExportThrottledRequestsResponse + LogAnalyticsExportThrottledRequestsResponse, } from "../models"; /** Interface representing a LogAnalytics. */ @@ -28,7 +28,7 @@ export interface LogAnalytics { beginExportRequestRateByInterval( location: string, parameters: RequestRateByIntervalInput, - options?: LogAnalyticsExportRequestRateByIntervalOptionalParams + options?: LogAnalyticsExportRequestRateByIntervalOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -45,7 +45,7 @@ export interface LogAnalytics { beginExportRequestRateByIntervalAndWait( location: string, parameters: RequestRateByIntervalInput, - options?: LogAnalyticsExportRequestRateByIntervalOptionalParams + options?: LogAnalyticsExportRequestRateByIntervalOptionalParams, ): Promise; /** * Export logs that show total throttled Api requests for this subscription in the given time window. @@ -56,7 +56,7 @@ export interface LogAnalytics { beginExportThrottledRequests( location: string, parameters: ThrottledRequestsInput, - options?: LogAnalyticsExportThrottledRequestsOptionalParams + options?: LogAnalyticsExportThrottledRequestsOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -72,6 +72,6 @@ export interface LogAnalytics { beginExportThrottledRequestsAndWait( location: string, parameters: ThrottledRequestsInput, - options?: LogAnalyticsExportThrottledRequestsOptionalParams + options?: LogAnalyticsExportThrottledRequestsOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/operations.ts b/sdk/compute/arm-compute/src/operationsInterfaces/operations.ts index 5addfa05a750..37e75c5f9c39 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/operations.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/proximityPlacementGroups.ts b/sdk/compute/arm-compute/src/operationsInterfaces/proximityPlacementGroups.ts index dfdc7ed4bcda..1dde51a70235 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/proximityPlacementGroups.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/proximityPlacementGroups.ts @@ -18,7 +18,7 @@ import { ProximityPlacementGroupsUpdateResponse, ProximityPlacementGroupsDeleteOptionalParams, ProximityPlacementGroupsGetOptionalParams, - ProximityPlacementGroupsGetResponse + ProximityPlacementGroupsGetResponse, } from "../models"; /// @@ -29,7 +29,7 @@ export interface ProximityPlacementGroups { * @param options The options parameters. */ listBySubscription( - options?: ProximityPlacementGroupsListBySubscriptionOptionalParams + options?: ProximityPlacementGroupsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all proximity placement groups in a resource group. @@ -38,7 +38,7 @@ export interface ProximityPlacementGroups { */ listByResourceGroup( resourceGroupName: string, - options?: ProximityPlacementGroupsListByResourceGroupOptionalParams + options?: ProximityPlacementGroupsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a proximity placement group. @@ -51,7 +51,7 @@ export interface ProximityPlacementGroups { resourceGroupName: string, proximityPlacementGroupName: string, parameters: ProximityPlacementGroup, - options?: ProximityPlacementGroupsCreateOrUpdateOptionalParams + options?: ProximityPlacementGroupsCreateOrUpdateOptionalParams, ): Promise; /** * Update a proximity placement group. @@ -64,7 +64,7 @@ export interface ProximityPlacementGroups { resourceGroupName: string, proximityPlacementGroupName: string, parameters: ProximityPlacementGroupUpdate, - options?: ProximityPlacementGroupsUpdateOptionalParams + options?: ProximityPlacementGroupsUpdateOptionalParams, ): Promise; /** * Delete a proximity placement group. @@ -75,7 +75,7 @@ export interface ProximityPlacementGroups { delete( resourceGroupName: string, proximityPlacementGroupName: string, - options?: ProximityPlacementGroupsDeleteOptionalParams + options?: ProximityPlacementGroupsDeleteOptionalParams, ): Promise; /** * Retrieves information about a proximity placement group . @@ -86,6 +86,6 @@ export interface ProximityPlacementGroups { get( resourceGroupName: string, proximityPlacementGroupName: string, - options?: ProximityPlacementGroupsGetOptionalParams + options?: ProximityPlacementGroupsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/resourceSkus.ts b/sdk/compute/arm-compute/src/operationsInterfaces/resourceSkus.ts index 3fa959f26775..2dbeae45dede 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/resourceSkus.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/resourceSkus.ts @@ -17,6 +17,6 @@ export interface ResourceSkus { * @param options The options parameters. */ list( - options?: ResourceSkusListOptionalParams + options?: ResourceSkusListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/restorePointCollections.ts b/sdk/compute/arm-compute/src/operationsInterfaces/restorePointCollections.ts index 86bc3d4aa55a..d51d8e973300 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/restorePointCollections.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/restorePointCollections.ts @@ -19,7 +19,7 @@ import { RestorePointCollectionsUpdateResponse, RestorePointCollectionsDeleteOptionalParams, RestorePointCollectionsGetOptionalParams, - RestorePointCollectionsGetResponse + RestorePointCollectionsGetResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface RestorePointCollections { */ list( resourceGroupName: string, - options?: RestorePointCollectionsListOptionalParams + options?: RestorePointCollectionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the list of restore point collections in the subscription. Use nextLink property in the @@ -41,7 +41,7 @@ export interface RestorePointCollections { * @param options The options parameters. */ listAll( - options?: RestorePointCollectionsListAllOptionalParams + options?: RestorePointCollectionsListAllOptionalParams, ): PagedAsyncIterableIterator; /** * The operation to create or update the restore point collection. Please refer to @@ -56,7 +56,7 @@ export interface RestorePointCollections { resourceGroupName: string, restorePointCollectionName: string, parameters: RestorePointCollection, - options?: RestorePointCollectionsCreateOrUpdateOptionalParams + options?: RestorePointCollectionsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update the restore point collection. @@ -69,7 +69,7 @@ export interface RestorePointCollections { resourceGroupName: string, restorePointCollectionName: string, parameters: RestorePointCollectionUpdate, - options?: RestorePointCollectionsUpdateOptionalParams + options?: RestorePointCollectionsUpdateOptionalParams, ): Promise; /** * The operation to delete the restore point collection. This operation will also delete all the @@ -81,7 +81,7 @@ export interface RestorePointCollections { beginDelete( resourceGroupName: string, restorePointCollectionName: string, - options?: RestorePointCollectionsDeleteOptionalParams + options?: RestorePointCollectionsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete the restore point collection. This operation will also delete all the @@ -93,7 +93,7 @@ export interface RestorePointCollections { beginDeleteAndWait( resourceGroupName: string, restorePointCollectionName: string, - options?: RestorePointCollectionsDeleteOptionalParams + options?: RestorePointCollectionsDeleteOptionalParams, ): Promise; /** * The operation to get the restore point collection. @@ -104,6 +104,6 @@ export interface RestorePointCollections { get( resourceGroupName: string, restorePointCollectionName: string, - options?: RestorePointCollectionsGetOptionalParams + options?: RestorePointCollectionsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/restorePoints.ts b/sdk/compute/arm-compute/src/operationsInterfaces/restorePoints.ts index 4c46e1a8a161..dfe5a207b245 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/restorePoints.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/restorePoints.ts @@ -13,7 +13,7 @@ import { RestorePointsCreateResponse, RestorePointsDeleteOptionalParams, RestorePointsGetOptionalParams, - RestorePointsGetResponse + RestorePointsGetResponse, } from "../models"; /** Interface representing a RestorePoints. */ @@ -32,7 +32,7 @@ export interface RestorePoints { restorePointCollectionName: string, restorePointName: string, parameters: RestorePoint, - options?: RestorePointsCreateOptionalParams + options?: RestorePointsCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -53,7 +53,7 @@ export interface RestorePoints { restorePointCollectionName: string, restorePointName: string, parameters: RestorePoint, - options?: RestorePointsCreateOptionalParams + options?: RestorePointsCreateOptionalParams, ): Promise; /** * The operation to delete the restore point. @@ -66,7 +66,7 @@ export interface RestorePoints { resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, - options?: RestorePointsDeleteOptionalParams + options?: RestorePointsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete the restore point. @@ -79,7 +79,7 @@ export interface RestorePoints { resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, - options?: RestorePointsDeleteOptionalParams + options?: RestorePointsDeleteOptionalParams, ): Promise; /** * The operation to get the restore point. @@ -92,6 +92,6 @@ export interface RestorePoints { resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, - options?: RestorePointsGetOptionalParams + options?: RestorePointsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleries.ts b/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleries.ts index 1499cf9dab8b..f8030198e3bf 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleries.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleries.ts @@ -11,7 +11,7 @@ import { SharedGallery, SharedGalleriesListOptionalParams, SharedGalleriesGetOptionalParams, - SharedGalleriesGetResponse + SharedGalleriesGetResponse, } from "../models"; /// @@ -24,7 +24,7 @@ export interface SharedGalleries { */ list( location: string, - options?: SharedGalleriesListOptionalParams + options?: SharedGalleriesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a shared gallery by subscription id or tenant id. @@ -35,6 +35,6 @@ export interface SharedGalleries { get( location: string, galleryUniqueName: string, - options?: SharedGalleriesGetOptionalParams + options?: SharedGalleriesGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImageVersions.ts index 3b6cde331c6f..89b4730605ae 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImageVersions.ts @@ -11,7 +11,7 @@ import { SharedGalleryImageVersion, SharedGalleryImageVersionsListOptionalParams, SharedGalleryImageVersionsGetOptionalParams, - SharedGalleryImageVersionsGetResponse + SharedGalleryImageVersionsGetResponse, } from "../models"; /// @@ -29,7 +29,7 @@ export interface SharedGalleryImageVersions { location: string, galleryUniqueName: string, galleryImageName: string, - options?: SharedGalleryImageVersionsListOptionalParams + options?: SharedGalleryImageVersionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a shared gallery image version by subscription id or tenant id. @@ -47,6 +47,6 @@ export interface SharedGalleryImageVersions { galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, - options?: SharedGalleryImageVersionsGetOptionalParams + options?: SharedGalleryImageVersionsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImages.ts b/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImages.ts index db7ccb652d1b..6d9069498a71 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImages.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImages.ts @@ -11,7 +11,7 @@ import { SharedGalleryImage, SharedGalleryImagesListOptionalParams, SharedGalleryImagesGetOptionalParams, - SharedGalleryImagesGetResponse + SharedGalleryImagesGetResponse, } from "../models"; /// @@ -26,7 +26,7 @@ export interface SharedGalleryImages { list( location: string, galleryUniqueName: string, - options?: SharedGalleryImagesListOptionalParams + options?: SharedGalleryImagesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a shared gallery image by subscription id or tenant id. @@ -40,6 +40,6 @@ export interface SharedGalleryImages { location: string, galleryUniqueName: string, galleryImageName: string, - options?: SharedGalleryImagesGetOptionalParams + options?: SharedGalleryImagesGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/snapshots.ts b/sdk/compute/arm-compute/src/operationsInterfaces/snapshots.ts index bcc82b28779e..62dfae4221d3 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/snapshots.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/snapshots.ts @@ -23,7 +23,7 @@ import { GrantAccessData, SnapshotsGrantAccessOptionalParams, SnapshotsGrantAccessResponse, - SnapshotsRevokeAccessOptionalParams + SnapshotsRevokeAccessOptionalParams, } from "../models"; /// @@ -36,14 +36,14 @@ export interface Snapshots { */ listByResourceGroup( resourceGroupName: string, - options?: SnapshotsListByResourceGroupOptionalParams + options?: SnapshotsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists snapshots under a subscription. * @param options The options parameters. */ list( - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a snapshot. @@ -58,7 +58,7 @@ export interface Snapshots { resourceGroupName: string, snapshotName: string, snapshot: Snapshot, - options?: SnapshotsCreateOrUpdateOptionalParams + options?: SnapshotsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -78,7 +78,7 @@ export interface Snapshots { resourceGroupName: string, snapshotName: string, snapshot: Snapshot, - options?: SnapshotsCreateOrUpdateOptionalParams + options?: SnapshotsCreateOrUpdateOptionalParams, ): Promise; /** * Updates (patches) a snapshot. @@ -93,7 +93,7 @@ export interface Snapshots { resourceGroupName: string, snapshotName: string, snapshot: SnapshotUpdate, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -113,7 +113,7 @@ export interface Snapshots { resourceGroupName: string, snapshotName: string, snapshot: SnapshotUpdate, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise; /** * Gets information about a snapshot. @@ -126,7 +126,7 @@ export interface Snapshots { get( resourceGroupName: string, snapshotName: string, - options?: SnapshotsGetOptionalParams + options?: SnapshotsGetOptionalParams, ): Promise; /** * Deletes a snapshot. @@ -139,7 +139,7 @@ export interface Snapshots { beginDelete( resourceGroupName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise, void>>; /** * Deletes a snapshot. @@ -152,7 +152,7 @@ export interface Snapshots { beginDeleteAndWait( resourceGroupName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise; /** * Grants access to a snapshot. @@ -167,7 +167,7 @@ export interface Snapshots { resourceGroupName: string, snapshotName: string, grantAccessData: GrantAccessData, - options?: SnapshotsGrantAccessOptionalParams + options?: SnapshotsGrantAccessOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -187,7 +187,7 @@ export interface Snapshots { resourceGroupName: string, snapshotName: string, grantAccessData: GrantAccessData, - options?: SnapshotsGrantAccessOptionalParams + options?: SnapshotsGrantAccessOptionalParams, ): Promise; /** * Revokes access to a snapshot. @@ -200,7 +200,7 @@ export interface Snapshots { beginRevokeAccess( resourceGroupName: string, snapshotName: string, - options?: SnapshotsRevokeAccessOptionalParams + options?: SnapshotsRevokeAccessOptionalParams, ): Promise, void>>; /** * Revokes access to a snapshot. @@ -213,6 +213,6 @@ export interface Snapshots { beginRevokeAccessAndWait( resourceGroupName: string, snapshotName: string, - options?: SnapshotsRevokeAccessOptionalParams + options?: SnapshotsRevokeAccessOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/sshPublicKeys.ts b/sdk/compute/arm-compute/src/operationsInterfaces/sshPublicKeys.ts index 323d9b4277f2..f874a4c95435 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/sshPublicKeys.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/sshPublicKeys.ts @@ -20,7 +20,7 @@ import { SshPublicKeysGetOptionalParams, SshPublicKeysGetResponse, SshPublicKeysGenerateKeyPairOptionalParams, - SshPublicKeysGenerateKeyPairResponse + SshPublicKeysGenerateKeyPairResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface SshPublicKeys { * @param options The options parameters. */ listBySubscription( - options?: SshPublicKeysListBySubscriptionOptionalParams + options?: SshPublicKeysListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the @@ -42,7 +42,7 @@ export interface SshPublicKeys { */ listByResourceGroup( resourceGroupName: string, - options?: SshPublicKeysListByResourceGroupOptionalParams + options?: SshPublicKeysListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Creates a new SSH public key resource. @@ -55,7 +55,7 @@ export interface SshPublicKeys { resourceGroupName: string, sshPublicKeyName: string, parameters: SshPublicKeyResource, - options?: SshPublicKeysCreateOptionalParams + options?: SshPublicKeysCreateOptionalParams, ): Promise; /** * Updates a new SSH public key resource. @@ -68,7 +68,7 @@ export interface SshPublicKeys { resourceGroupName: string, sshPublicKeyName: string, parameters: SshPublicKeyUpdateResource, - options?: SshPublicKeysUpdateOptionalParams + options?: SshPublicKeysUpdateOptionalParams, ): Promise; /** * Delete an SSH public key. @@ -79,7 +79,7 @@ export interface SshPublicKeys { delete( resourceGroupName: string, sshPublicKeyName: string, - options?: SshPublicKeysDeleteOptionalParams + options?: SshPublicKeysDeleteOptionalParams, ): Promise; /** * Retrieves information about an SSH public key. @@ -90,7 +90,7 @@ export interface SshPublicKeys { get( resourceGroupName: string, sshPublicKeyName: string, - options?: SshPublicKeysGetOptionalParams + options?: SshPublicKeysGetOptionalParams, ): Promise; /** * Generates and returns a public/private key pair and populates the SSH public key resource with the @@ -103,6 +103,6 @@ export interface SshPublicKeys { generateKeyPair( resourceGroupName: string, sshPublicKeyName: string, - options?: SshPublicKeysGenerateKeyPairOptionalParams + options?: SshPublicKeysGenerateKeyPairOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/usageOperations.ts b/sdk/compute/arm-compute/src/operationsInterfaces/usageOperations.ts index f6a753fdfba7..67a176bfae37 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/usageOperations.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/usageOperations.ts @@ -20,6 +20,6 @@ export interface UsageOperations { */ list( location: string, - options?: UsageListOptionalParams + options?: UsageListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensionImages.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensionImages.ts index 34eeb14c3eeb..2e293a3bf08f 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensionImages.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensionImages.ts @@ -12,7 +12,7 @@ import { VirtualMachineExtensionImagesListTypesOptionalParams, VirtualMachineExtensionImagesListTypesResponse, VirtualMachineExtensionImagesListVersionsOptionalParams, - VirtualMachineExtensionImagesListVersionsResponse + VirtualMachineExtensionImagesListVersionsResponse, } from "../models"; /** Interface representing a VirtualMachineExtensionImages. */ @@ -30,7 +30,7 @@ export interface VirtualMachineExtensionImages { publisherName: string, typeParam: string, version: string, - options?: VirtualMachineExtensionImagesGetOptionalParams + options?: VirtualMachineExtensionImagesGetOptionalParams, ): Promise; /** * Gets a list of virtual machine extension image types. @@ -41,7 +41,7 @@ export interface VirtualMachineExtensionImages { listTypes( location: string, publisherName: string, - options?: VirtualMachineExtensionImagesListTypesOptionalParams + options?: VirtualMachineExtensionImagesListTypesOptionalParams, ): Promise; /** * Gets a list of virtual machine extension image versions. @@ -54,6 +54,6 @@ export interface VirtualMachineExtensionImages { location: string, publisherName: string, typeParam: string, - options?: VirtualMachineExtensionImagesListVersionsOptionalParams + options?: VirtualMachineExtensionImagesListVersionsOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensions.ts index 95731c5b27da..f646e6f09861 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensions.ts @@ -18,7 +18,7 @@ import { VirtualMachineExtensionsGetOptionalParams, VirtualMachineExtensionsGetResponse, VirtualMachineExtensionsListOptionalParams, - VirtualMachineExtensionsListResponse + VirtualMachineExtensionsListResponse, } from "../models"; /** Interface representing a VirtualMachineExtensions. */ @@ -36,7 +36,7 @@ export interface VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtension, - options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -56,7 +56,7 @@ export interface VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtension, - options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update the extension. @@ -71,7 +71,7 @@ export interface VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtensionUpdate, - options?: VirtualMachineExtensionsUpdateOptionalParams + options?: VirtualMachineExtensionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -91,7 +91,7 @@ export interface VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtensionUpdate, - options?: VirtualMachineExtensionsUpdateOptionalParams + options?: VirtualMachineExtensionsUpdateOptionalParams, ): Promise; /** * The operation to delete the extension. @@ -104,7 +104,7 @@ export interface VirtualMachineExtensions { resourceGroupName: string, vmName: string, vmExtensionName: string, - options?: VirtualMachineExtensionsDeleteOptionalParams + options?: VirtualMachineExtensionsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete the extension. @@ -117,7 +117,7 @@ export interface VirtualMachineExtensions { resourceGroupName: string, vmName: string, vmExtensionName: string, - options?: VirtualMachineExtensionsDeleteOptionalParams + options?: VirtualMachineExtensionsDeleteOptionalParams, ): Promise; /** * The operation to get the extension. @@ -130,7 +130,7 @@ export interface VirtualMachineExtensions { resourceGroupName: string, vmName: string, vmExtensionName: string, - options?: VirtualMachineExtensionsGetOptionalParams + options?: VirtualMachineExtensionsGetOptionalParams, ): Promise; /** * The operation to get all extensions of a Virtual Machine. @@ -141,6 +141,6 @@ export interface VirtualMachineExtensions { list( resourceGroupName: string, vmName: string, - options?: VirtualMachineExtensionsListOptionalParams + options?: VirtualMachineExtensionsListOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImages.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImages.ts index 698ca4c0b9a5..7a2de728e770 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImages.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImages.ts @@ -18,7 +18,7 @@ import { VirtualMachineImagesListSkusOptionalParams, VirtualMachineImagesListSkusResponse, VirtualMachineImagesListByEdgeZoneOptionalParams, - VirtualMachineImagesListByEdgeZoneResponse + VirtualMachineImagesListByEdgeZoneResponse, } from "../models"; /** Interface representing a VirtualMachineImages. */ @@ -38,7 +38,7 @@ export interface VirtualMachineImages { offer: string, skus: string, version: string, - options?: VirtualMachineImagesGetOptionalParams + options?: VirtualMachineImagesGetOptionalParams, ): Promise; /** * Gets a list of all virtual machine image versions for the specified location, publisher, offer, and @@ -54,7 +54,7 @@ export interface VirtualMachineImages { publisherName: string, offer: string, skus: string, - options?: VirtualMachineImagesListOptionalParams + options?: VirtualMachineImagesListOptionalParams, ): Promise; /** * Gets a list of virtual machine image offers for the specified location and publisher. @@ -65,7 +65,7 @@ export interface VirtualMachineImages { listOffers( location: string, publisherName: string, - options?: VirtualMachineImagesListOffersOptionalParams + options?: VirtualMachineImagesListOffersOptionalParams, ): Promise; /** * Gets a list of virtual machine image publishers for the specified Azure location. @@ -74,7 +74,7 @@ export interface VirtualMachineImages { */ listPublishers( location: string, - options?: VirtualMachineImagesListPublishersOptionalParams + options?: VirtualMachineImagesListPublishersOptionalParams, ): Promise; /** * Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. @@ -87,7 +87,7 @@ export interface VirtualMachineImages { location: string, publisherName: string, offer: string, - options?: VirtualMachineImagesListSkusOptionalParams + options?: VirtualMachineImagesListSkusOptionalParams, ): Promise; /** * Gets a list of all virtual machine image versions for the specified edge zone @@ -98,6 +98,6 @@ export interface VirtualMachineImages { listByEdgeZone( location: string, edgeZone: string, - options?: VirtualMachineImagesListByEdgeZoneOptionalParams + options?: VirtualMachineImagesListByEdgeZoneOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImagesEdgeZone.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImagesEdgeZone.ts index a2b851308443..0c0e5cf1d20c 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImagesEdgeZone.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImagesEdgeZone.ts @@ -16,7 +16,7 @@ import { VirtualMachineImagesEdgeZoneListPublishersOptionalParams, VirtualMachineImagesEdgeZoneListPublishersResponse, VirtualMachineImagesEdgeZoneListSkusOptionalParams, - VirtualMachineImagesEdgeZoneListSkusResponse + VirtualMachineImagesEdgeZoneListSkusResponse, } from "../models"; /** Interface representing a VirtualMachineImagesEdgeZone. */ @@ -38,7 +38,7 @@ export interface VirtualMachineImagesEdgeZone { offer: string, skus: string, version: string, - options?: VirtualMachineImagesEdgeZoneGetOptionalParams + options?: VirtualMachineImagesEdgeZoneGetOptionalParams, ): Promise; /** * Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, @@ -56,7 +56,7 @@ export interface VirtualMachineImagesEdgeZone { publisherName: string, offer: string, skus: string, - options?: VirtualMachineImagesEdgeZoneListOptionalParams + options?: VirtualMachineImagesEdgeZoneListOptionalParams, ): Promise; /** * Gets a list of virtual machine image offers for the specified location, edge zone and publisher. @@ -69,7 +69,7 @@ export interface VirtualMachineImagesEdgeZone { location: string, edgeZone: string, publisherName: string, - options?: VirtualMachineImagesEdgeZoneListOffersOptionalParams + options?: VirtualMachineImagesEdgeZoneListOffersOptionalParams, ): Promise; /** * Gets a list of virtual machine image publishers for the specified Azure location and edge zone. @@ -80,7 +80,7 @@ export interface VirtualMachineImagesEdgeZone { listPublishers( location: string, edgeZone: string, - options?: VirtualMachineImagesEdgeZoneListPublishersOptionalParams + options?: VirtualMachineImagesEdgeZoneListPublishersOptionalParams, ): Promise; /** * Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and @@ -96,6 +96,6 @@ export interface VirtualMachineImagesEdgeZone { edgeZone: string, publisherName: string, offer: string, - options?: VirtualMachineImagesEdgeZoneListSkusOptionalParams + options?: VirtualMachineImagesEdgeZoneListSkusOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineRunCommands.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineRunCommands.ts index 8a16255431b6..7805fd6e588e 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineRunCommands.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineRunCommands.ts @@ -22,7 +22,7 @@ import { VirtualMachineRunCommandsUpdateResponse, VirtualMachineRunCommandsDeleteOptionalParams, VirtualMachineRunCommandsGetByVirtualMachineOptionalParams, - VirtualMachineRunCommandsGetByVirtualMachineResponse + VirtualMachineRunCommandsGetByVirtualMachineResponse, } from "../models"; /// @@ -35,7 +35,7 @@ export interface VirtualMachineRunCommands { */ list( location: string, - options?: VirtualMachineRunCommandsListOptionalParams + options?: VirtualMachineRunCommandsListOptionalParams, ): PagedAsyncIterableIterator; /** * The operation to get all run commands of a Virtual Machine. @@ -46,7 +46,7 @@ export interface VirtualMachineRunCommands { listByVirtualMachine( resourceGroupName: string, vmName: string, - options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams + options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams, ): PagedAsyncIterableIterator; /** * Gets specific run command for a subscription in a location. @@ -57,7 +57,7 @@ export interface VirtualMachineRunCommands { get( location: string, commandId: string, - options?: VirtualMachineRunCommandsGetOptionalParams + options?: VirtualMachineRunCommandsGetOptionalParams, ): Promise; /** * The operation to create or update the run command. @@ -72,7 +72,7 @@ export interface VirtualMachineRunCommands { vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -92,7 +92,7 @@ export interface VirtualMachineRunCommands { vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update the run command. @@ -107,7 +107,7 @@ export interface VirtualMachineRunCommands { vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineRunCommandsUpdateOptionalParams + options?: VirtualMachineRunCommandsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -127,7 +127,7 @@ export interface VirtualMachineRunCommands { vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineRunCommandsUpdateOptionalParams + options?: VirtualMachineRunCommandsUpdateOptionalParams, ): Promise; /** * The operation to delete the run command. @@ -140,7 +140,7 @@ export interface VirtualMachineRunCommands { resourceGroupName: string, vmName: string, runCommandName: string, - options?: VirtualMachineRunCommandsDeleteOptionalParams + options?: VirtualMachineRunCommandsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete the run command. @@ -153,7 +153,7 @@ export interface VirtualMachineRunCommands { resourceGroupName: string, vmName: string, runCommandName: string, - options?: VirtualMachineRunCommandsDeleteOptionalParams + options?: VirtualMachineRunCommandsDeleteOptionalParams, ): Promise; /** * The operation to get the run command. @@ -166,6 +166,6 @@ export interface VirtualMachineRunCommands { resourceGroupName: string, vmName: string, runCommandName: string, - options?: VirtualMachineRunCommandsGetByVirtualMachineOptionalParams + options?: VirtualMachineRunCommandsGetByVirtualMachineOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetExtensions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetExtensions.ts index d286677fa2eb..9a923fb4bd41 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetExtensions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetExtensions.ts @@ -18,7 +18,7 @@ import { VirtualMachineScaleSetExtensionsUpdateResponse, VirtualMachineScaleSetExtensionsDeleteOptionalParams, VirtualMachineScaleSetExtensionsGetOptionalParams, - VirtualMachineScaleSetExtensionsGetResponse + VirtualMachineScaleSetExtensionsGetResponse, } from "../models"; /// @@ -33,7 +33,7 @@ export interface VirtualMachineScaleSetExtensions { list( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetExtensionsListOptionalParams + options?: VirtualMachineScaleSetExtensionsListOptionalParams, ): PagedAsyncIterableIterator; /** * The operation to create or update an extension. @@ -48,7 +48,7 @@ export interface VirtualMachineScaleSetExtensions { vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtension, - options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -68,7 +68,7 @@ export interface VirtualMachineScaleSetExtensions { vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtension, - options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update an extension. @@ -83,7 +83,7 @@ export interface VirtualMachineScaleSetExtensions { vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtensionUpdate, - options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -103,7 +103,7 @@ export interface VirtualMachineScaleSetExtensions { vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtensionUpdate, - options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams, ): Promise; /** * The operation to delete the extension. @@ -116,7 +116,7 @@ export interface VirtualMachineScaleSetExtensions { resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, - options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete the extension. @@ -129,7 +129,7 @@ export interface VirtualMachineScaleSetExtensions { resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, - options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams, ): Promise; /** * The operation to get the extension. @@ -142,6 +142,6 @@ export interface VirtualMachineScaleSetExtensions { resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, - options?: VirtualMachineScaleSetExtensionsGetOptionalParams + options?: VirtualMachineScaleSetExtensionsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetRollingUpgrades.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetRollingUpgrades.ts index a1326e13e258..07c809171637 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetRollingUpgrades.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetRollingUpgrades.ts @@ -12,7 +12,7 @@ import { VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams, VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams, VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams, - VirtualMachineScaleSetRollingUpgradesGetLatestResponse + VirtualMachineScaleSetRollingUpgradesGetLatestResponse, } from "../models"; /** Interface representing a VirtualMachineScaleSetRollingUpgrades. */ @@ -26,7 +26,7 @@ export interface VirtualMachineScaleSetRollingUpgrades { beginCancel( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams, ): Promise, void>>; /** * Cancels the current virtual machine scale set rolling upgrade. @@ -37,7 +37,7 @@ export interface VirtualMachineScaleSetRollingUpgrades { beginCancelAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams, ): Promise; /** * Starts a rolling upgrade to move all virtual machine scale set instances to the latest available @@ -50,7 +50,7 @@ export interface VirtualMachineScaleSetRollingUpgrades { beginStartOSUpgrade( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams, ): Promise, void>>; /** * Starts a rolling upgrade to move all virtual machine scale set instances to the latest available @@ -63,7 +63,7 @@ export interface VirtualMachineScaleSetRollingUpgrades { beginStartOSUpgradeAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams, ): Promise; /** * Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the @@ -76,7 +76,7 @@ export interface VirtualMachineScaleSetRollingUpgrades { beginStartExtensionUpgrade( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams, ): Promise, void>>; /** * Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the @@ -89,7 +89,7 @@ export interface VirtualMachineScaleSetRollingUpgrades { beginStartExtensionUpgradeAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams, ): Promise; /** * Gets the status of the latest virtual machine scale set rolling upgrade. @@ -100,6 +100,6 @@ export interface VirtualMachineScaleSetRollingUpgrades { getLatest( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMExtensions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMExtensions.ts index ecd3190015b1..c76f6232239d 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMExtensions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMExtensions.ts @@ -18,7 +18,7 @@ import { VirtualMachineScaleSetVMExtensionsGetOptionalParams, VirtualMachineScaleSetVMExtensionsGetResponse, VirtualMachineScaleSetVMExtensionsListOptionalParams, - VirtualMachineScaleSetVMExtensionsListResponse + VirtualMachineScaleSetVMExtensionsListResponse, } from "../models"; /** Interface representing a VirtualMachineScaleSetVMExtensions. */ @@ -38,7 +38,7 @@ export interface VirtualMachineScaleSetVMExtensions { instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtension, - options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -60,7 +60,7 @@ export interface VirtualMachineScaleSetVMExtensions { instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtension, - options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update the VMSS VM extension. @@ -77,7 +77,7 @@ export interface VirtualMachineScaleSetVMExtensions { instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtensionUpdate, - options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -99,7 +99,7 @@ export interface VirtualMachineScaleSetVMExtensions { instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtensionUpdate, - options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams, ): Promise; /** * The operation to delete the VMSS VM extension. @@ -114,7 +114,7 @@ export interface VirtualMachineScaleSetVMExtensions { vmScaleSetName: string, instanceId: string, vmExtensionName: string, - options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete the VMSS VM extension. @@ -129,7 +129,7 @@ export interface VirtualMachineScaleSetVMExtensions { vmScaleSetName: string, instanceId: string, vmExtensionName: string, - options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams, ): Promise; /** * The operation to get the VMSS VM extension. @@ -144,7 +144,7 @@ export interface VirtualMachineScaleSetVMExtensions { vmScaleSetName: string, instanceId: string, vmExtensionName: string, - options?: VirtualMachineScaleSetVMExtensionsGetOptionalParams + options?: VirtualMachineScaleSetVMExtensionsGetOptionalParams, ): Promise; /** * The operation to get all extensions of an instance in Virtual Machine Scaleset. @@ -157,6 +157,6 @@ export interface VirtualMachineScaleSetVMExtensions { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMExtensionsListOptionalParams + options?: VirtualMachineScaleSetVMExtensionsListOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMRunCommands.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMRunCommands.ts index 12f69421b9ce..044b950fa7e1 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMRunCommands.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMRunCommands.ts @@ -18,7 +18,7 @@ import { VirtualMachineScaleSetVMRunCommandsUpdateResponse, VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams, VirtualMachineScaleSetVMRunCommandsGetOptionalParams, - VirtualMachineScaleSetVMRunCommandsGetResponse + VirtualMachineScaleSetVMRunCommandsGetResponse, } from "../models"; /// @@ -35,7 +35,7 @@ export interface VirtualMachineScaleSetVMRunCommands { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams, ): PagedAsyncIterableIterator; /** * The operation to create or update the VMSS VM run command. @@ -52,7 +52,7 @@ export interface VirtualMachineScaleSetVMRunCommands { instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -74,7 +74,7 @@ export interface VirtualMachineScaleSetVMRunCommands { instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update the VMSS VM run command. @@ -91,7 +91,7 @@ export interface VirtualMachineScaleSetVMRunCommands { instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -113,7 +113,7 @@ export interface VirtualMachineScaleSetVMRunCommands { instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams, ): Promise; /** * The operation to delete the VMSS VM run command. @@ -128,7 +128,7 @@ export interface VirtualMachineScaleSetVMRunCommands { vmScaleSetName: string, instanceId: string, runCommandName: string, - options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete the VMSS VM run command. @@ -143,7 +143,7 @@ export interface VirtualMachineScaleSetVMRunCommands { vmScaleSetName: string, instanceId: string, runCommandName: string, - options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams, ): Promise; /** * The operation to get the VMSS VM run command. @@ -158,6 +158,6 @@ export interface VirtualMachineScaleSetVMRunCommands { vmScaleSetName: string, instanceId: string, runCommandName: string, - options?: VirtualMachineScaleSetVMRunCommandsGetOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts index 5ddf9379316b..faba210cac60 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,9 +31,12 @@ import { VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResponse, VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams, VirtualMachineScaleSetVMsSimulateEvictionOptionalParams, + AttachDetachDataDisksRequest, + VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams, + VirtualMachineScaleSetVMsAttachDetachDataDisksResponse, RunCommandInput, VirtualMachineScaleSetVMsRunCommandOptionalParams, - VirtualMachineScaleSetVMsRunCommandResponse + VirtualMachineScaleSetVMsRunCommandResponse, } from "../models"; /// @@ -46,7 +51,7 @@ export interface VirtualMachineScaleSetVMs { list( resourceGroupName: string, virtualMachineScaleSetName: string, - options?: VirtualMachineScaleSetVMsListOptionalParams + options?: VirtualMachineScaleSetVMsListOptionalParams, ): PagedAsyncIterableIterator; /** * Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. @@ -59,7 +64,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageOptionalParams + options?: VirtualMachineScaleSetVMsReimageOptionalParams, ): Promise, void>>; /** * Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. @@ -72,7 +77,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageOptionalParams + options?: VirtualMachineScaleSetVMsReimageOptionalParams, ): Promise; /** * Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This @@ -86,7 +91,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageAllOptionalParams + options?: VirtualMachineScaleSetVMsReimageAllOptionalParams, ): Promise, void>>; /** * Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This @@ -100,8 +105,39 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageAllOptionalParams + 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 @@ -115,7 +151,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeallocateOptionalParams + options?: VirtualMachineScaleSetVMsDeallocateOptionalParams, ): Promise, void>>; /** * Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and @@ -130,7 +166,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeallocateOptionalParams + options?: VirtualMachineScaleSetVMsDeallocateOptionalParams, ): Promise; /** * Updates a virtual machine of a VM scale set. @@ -145,7 +181,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, parameters: VirtualMachineScaleSetVM, - options?: VirtualMachineScaleSetVMsUpdateOptionalParams + options?: VirtualMachineScaleSetVMsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -165,7 +201,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, parameters: VirtualMachineScaleSetVM, - options?: VirtualMachineScaleSetVMsUpdateOptionalParams + options?: VirtualMachineScaleSetVMsUpdateOptionalParams, ): Promise; /** * Deletes a virtual machine from a VM scale set. @@ -178,7 +214,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeleteOptionalParams + options?: VirtualMachineScaleSetVMsDeleteOptionalParams, ): Promise, void>>; /** * Deletes a virtual machine from a VM scale set. @@ -191,7 +227,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeleteOptionalParams + options?: VirtualMachineScaleSetVMsDeleteOptionalParams, ): Promise; /** * Gets a virtual machine from a VM scale set. @@ -204,7 +240,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsGetOptionalParams + options?: VirtualMachineScaleSetVMsGetOptionalParams, ): Promise; /** * Gets the status of a virtual machine from a VM scale set. @@ -217,7 +253,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsGetInstanceViewOptionalParams + options?: VirtualMachineScaleSetVMsGetInstanceViewOptionalParams, ): Promise; /** * Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you @@ -232,7 +268,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPowerOffOptionalParams + options?: VirtualMachineScaleSetVMsPowerOffOptionalParams, ): Promise, void>>; /** * Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you @@ -247,7 +283,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPowerOffOptionalParams + options?: VirtualMachineScaleSetVMsPowerOffOptionalParams, ): Promise; /** * Restarts a virtual machine in a VM scale set. @@ -260,7 +296,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRestartOptionalParams + options?: VirtualMachineScaleSetVMsRestartOptionalParams, ): Promise, void>>; /** * Restarts a virtual machine in a VM scale set. @@ -273,7 +309,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRestartOptionalParams + options?: VirtualMachineScaleSetVMsRestartOptionalParams, ): Promise; /** * Starts a virtual machine in a VM scale set. @@ -286,7 +322,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsStartOptionalParams + options?: VirtualMachineScaleSetVMsStartOptionalParams, ): Promise, void>>; /** * Starts a virtual machine in a VM scale set. @@ -299,7 +335,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsStartOptionalParams + options?: VirtualMachineScaleSetVMsStartOptionalParams, ): Promise; /** * Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers @@ -313,7 +349,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRedeployOptionalParams + options?: VirtualMachineScaleSetVMsRedeployOptionalParams, ): Promise, void>>; /** * Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers @@ -327,7 +363,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRedeployOptionalParams + options?: VirtualMachineScaleSetVMsRedeployOptionalParams, ): Promise; /** * The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set. @@ -340,7 +376,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams + options?: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams, ): Promise; /** * Performs maintenance on a virtual machine in a VM scale set. @@ -353,7 +389,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams, ): Promise, void>>; /** * Performs maintenance on a virtual machine in a VM scale set. @@ -366,7 +402,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams, ): Promise; /** * The operation to simulate the eviction of spot virtual machine in a VM scale set. @@ -379,8 +415,45 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsSimulateEvictionOptionalParams + 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. @@ -394,7 +467,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, parameters: RunCommandInput, - options?: VirtualMachineScaleSetVMsRunCommandOptionalParams + options?: VirtualMachineScaleSetVMsRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -414,6 +487,6 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, parameters: RunCommandInput, - options?: VirtualMachineScaleSetVMsRunCommandOptionalParams + options?: VirtualMachineScaleSetVMsRunCommandOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts index 7fd91293bcbb..719d183aa34b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts @@ -39,12 +39,14 @@ import { VirtualMachineScaleSetsUpdateInstancesOptionalParams, VirtualMachineScaleSetsReimageOptionalParams, VirtualMachineScaleSetsReimageAllOptionalParams, + VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, + VirtualMachineScaleSetsApproveRollingUpgradeResponse, VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams, VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse, VMScaleSetConvertToSinglePlacementGroupInput, VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams, OrchestrationServiceStateInput, - VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams + VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams, } from "../models"; /// @@ -57,7 +59,7 @@ export interface VirtualMachineScaleSets { */ listByLocation( location: string, - options?: VirtualMachineScaleSetsListByLocationOptionalParams + options?: VirtualMachineScaleSetsListByLocationOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of all VM scale sets under a resource group. @@ -66,7 +68,7 @@ export interface VirtualMachineScaleSets { */ list( resourceGroupName: string, - options?: VirtualMachineScaleSetsListOptionalParams + options?: VirtualMachineScaleSetsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. @@ -75,7 +77,7 @@ export interface VirtualMachineScaleSets { * @param options The options parameters. */ listAll( - options?: VirtualMachineScaleSetsListAllOptionalParams + options?: VirtualMachineScaleSetsListAllOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances @@ -87,7 +89,7 @@ export interface VirtualMachineScaleSets { listSkus( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsListSkusOptionalParams + options?: VirtualMachineScaleSetsListSkusOptionalParams, ): PagedAsyncIterableIterator; /** * Gets list of OS upgrades on a VM scale set instance. @@ -98,7 +100,7 @@ export interface VirtualMachineScaleSets { listOSUpgradeHistory( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams + options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a VM scale set. @@ -111,7 +113,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, - options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -129,7 +131,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, - options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams, ): Promise; /** * Update a VM scale set. @@ -142,7 +144,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSetUpdate, - options?: VirtualMachineScaleSetsUpdateOptionalParams + options?: VirtualMachineScaleSetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -160,7 +162,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSetUpdate, - options?: VirtualMachineScaleSetsUpdateOptionalParams + options?: VirtualMachineScaleSetsUpdateOptionalParams, ): Promise; /** * Deletes a VM scale set. @@ -171,7 +173,7 @@ export interface VirtualMachineScaleSets { beginDelete( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeleteOptionalParams + options?: VirtualMachineScaleSetsDeleteOptionalParams, ): Promise, void>>; /** * Deletes a VM scale set. @@ -182,7 +184,7 @@ export interface VirtualMachineScaleSets { beginDeleteAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeleteOptionalParams + options?: VirtualMachineScaleSetsDeleteOptionalParams, ): Promise; /** * Display information about a virtual machine scale set. @@ -193,7 +195,7 @@ export interface VirtualMachineScaleSets { get( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetOptionalParams + options?: VirtualMachineScaleSetsGetOptionalParams, ): Promise; /** * Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and @@ -206,7 +208,7 @@ export interface VirtualMachineScaleSets { beginDeallocate( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeallocateOptionalParams + options?: VirtualMachineScaleSetsDeallocateOptionalParams, ): Promise, void>>; /** * Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and @@ -219,7 +221,7 @@ export interface VirtualMachineScaleSets { beginDeallocateAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeallocateOptionalParams + options?: VirtualMachineScaleSetsDeallocateOptionalParams, ): Promise; /** * Deletes virtual machines in a VM scale set. @@ -232,7 +234,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams + options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams, ): Promise, void>>; /** * Deletes virtual machines in a VM scale set. @@ -245,7 +247,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams + options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams, ): Promise; /** * Gets the status of a VM scale set instance. @@ -256,7 +258,7 @@ export interface VirtualMachineScaleSets { getInstanceView( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetInstanceViewOptionalParams + options?: VirtualMachineScaleSetsGetInstanceViewOptionalParams, ): Promise; /** * Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still @@ -269,7 +271,7 @@ export interface VirtualMachineScaleSets { beginPowerOff( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPowerOffOptionalParams + options?: VirtualMachineScaleSetsPowerOffOptionalParams, ): Promise, void>>; /** * Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still @@ -282,7 +284,7 @@ export interface VirtualMachineScaleSets { beginPowerOffAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPowerOffOptionalParams + options?: VirtualMachineScaleSetsPowerOffOptionalParams, ): Promise; /** * Restarts one or more virtual machines in a VM scale set. @@ -293,7 +295,7 @@ export interface VirtualMachineScaleSets { beginRestart( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRestartOptionalParams + options?: VirtualMachineScaleSetsRestartOptionalParams, ): Promise, void>>; /** * Restarts one or more virtual machines in a VM scale set. @@ -304,7 +306,7 @@ export interface VirtualMachineScaleSets { beginRestartAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRestartOptionalParams + options?: VirtualMachineScaleSetsRestartOptionalParams, ): Promise; /** * Starts one or more virtual machines in a VM scale set. @@ -315,7 +317,7 @@ export interface VirtualMachineScaleSets { beginStart( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsStartOptionalParams + options?: VirtualMachineScaleSetsStartOptionalParams, ): Promise, void>>; /** * Starts one or more virtual machines in a VM scale set. @@ -326,7 +328,7 @@ export interface VirtualMachineScaleSets { beginStartAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsStartOptionalParams + options?: VirtualMachineScaleSetsStartOptionalParams, ): Promise; /** * Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances @@ -337,7 +339,7 @@ export interface VirtualMachineScaleSets { beginReapply( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReapplyOptionalParams + options?: VirtualMachineScaleSetsReapplyOptionalParams, ): Promise, void>>; /** * Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances @@ -348,7 +350,7 @@ export interface VirtualMachineScaleSets { beginReapplyAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReapplyOptionalParams + options?: VirtualMachineScaleSetsReapplyOptionalParams, ): Promise; /** * Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and @@ -360,7 +362,7 @@ export interface VirtualMachineScaleSets { beginRedeploy( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRedeployOptionalParams + options?: VirtualMachineScaleSetsRedeployOptionalParams, ): Promise, void>>; /** * Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and @@ -372,7 +374,7 @@ export interface VirtualMachineScaleSets { beginRedeployAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRedeployOptionalParams + options?: VirtualMachineScaleSetsRedeployOptionalParams, ): Promise; /** * Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which @@ -386,7 +388,7 @@ export interface VirtualMachineScaleSets { beginPerformMaintenance( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams, ): Promise, void>>; /** * Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which @@ -400,7 +402,7 @@ export interface VirtualMachineScaleSets { beginPerformMaintenanceAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams, ): Promise; /** * Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. @@ -413,7 +415,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams + options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams, ): Promise, void>>; /** * Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. @@ -426,7 +428,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams + options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams, ): Promise; /** * Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't @@ -439,7 +441,7 @@ export interface VirtualMachineScaleSets { beginReimage( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageOptionalParams + options?: VirtualMachineScaleSetsReimageOptionalParams, ): Promise, void>>; /** * Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't @@ -452,7 +454,7 @@ export interface VirtualMachineScaleSets { beginReimageAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageOptionalParams + options?: VirtualMachineScaleSetsReimageOptionalParams, ): Promise; /** * Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This @@ -464,7 +466,7 @@ export interface VirtualMachineScaleSets { beginReimageAll( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageAllOptionalParams + options?: VirtualMachineScaleSetsReimageAllOptionalParams, ): Promise, void>>; /** * Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This @@ -476,8 +478,35 @@ export interface VirtualMachineScaleSets { beginReimageAllAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageAllOptionalParams + 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. @@ -490,10 +519,8 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, platformUpdateDomain: number, - options?: VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams - ): Promise< - VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse - >; + options?: VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams, + ): Promise; /** * Converts SinglePlacementGroup property to false for a existing virtual machine scale set. * @param resourceGroupName The name of the resource group. @@ -505,7 +532,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VMScaleSetConvertToSinglePlacementGroupInput, - options?: VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams + options?: VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams, ): Promise; /** * Changes ServiceState property for a given service @@ -518,7 +545,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: OrchestrationServiceStateInput, - options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams + options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams, ): Promise, void>>; /** * Changes ServiceState property for a given service @@ -531,6 +558,6 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: OrchestrationServiceStateInput, - options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams + options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineSizes.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineSizes.ts index ef1e113bee1b..9672fb9b903c 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineSizes.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineSizes.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VirtualMachineSize, - VirtualMachineSizesListOptionalParams + VirtualMachineSizesListOptionalParams, } from "../models"; /// @@ -23,6 +23,6 @@ export interface VirtualMachineSizes { */ list( location: string, - options?: VirtualMachineSizesListOptionalParams + options?: VirtualMachineSizesListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts index e38c7c25ba0f..8d62cf5b7cee 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts @@ -46,9 +46,12 @@ import { VirtualMachineInstallPatchesParameters, VirtualMachinesInstallPatchesOptionalParams, VirtualMachinesInstallPatchesResponse, + AttachDetachDataDisksRequest, + VirtualMachinesAttachDetachDataDisksOptionalParams, + VirtualMachinesAttachDetachDataDisksResponse, RunCommandInput, VirtualMachinesRunCommandOptionalParams, - VirtualMachinesRunCommandResponse + VirtualMachinesRunCommandResponse, } from "../models"; /// @@ -61,7 +64,7 @@ export interface VirtualMachines { */ listByLocation( location: string, - options?: VirtualMachinesListByLocationOptionalParams + options?: VirtualMachinesListByLocationOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all of the virtual machines in the specified resource group. Use the nextLink property in the @@ -71,7 +74,7 @@ export interface VirtualMachines { */ list( resourceGroupName: string, - options?: VirtualMachinesListOptionalParams + options?: VirtualMachinesListOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all of the virtual machines in the specified subscription. Use the nextLink property in the @@ -79,7 +82,7 @@ export interface VirtualMachines { * @param options The options parameters. */ listAll( - options?: VirtualMachinesListAllOptionalParams + options?: VirtualMachinesListAllOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all available virtual machine sizes to which the specified virtual machine can be resized. @@ -90,7 +93,7 @@ export interface VirtualMachines { listAvailableSizes( resourceGroupName: string, vmName: string, - options?: VirtualMachinesListAvailableSizesOptionalParams + options?: VirtualMachinesListAvailableSizesOptionalParams, ): PagedAsyncIterableIterator; /** * Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to @@ -104,7 +107,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineCaptureParameters, - options?: VirtualMachinesCaptureOptionalParams + options?: VirtualMachinesCaptureOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -123,7 +126,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineCaptureParameters, - options?: VirtualMachinesCaptureOptionalParams + options?: VirtualMachinesCaptureOptionalParams, ): Promise; /** * The operation to create or update a virtual machine. Please note some properties can be set only @@ -137,7 +140,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -156,7 +159,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update a virtual machine. @@ -169,7 +172,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineUpdate, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -187,7 +190,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineUpdate, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise; /** * The operation to delete a virtual machine. @@ -198,7 +201,7 @@ export interface VirtualMachines { beginDelete( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeleteOptionalParams + options?: VirtualMachinesDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete a virtual machine. @@ -209,7 +212,7 @@ export interface VirtualMachines { beginDeleteAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeleteOptionalParams + options?: VirtualMachinesDeleteOptionalParams, ): Promise; /** * Retrieves information about the model view or the instance view of a virtual machine. @@ -220,7 +223,7 @@ export interface VirtualMachines { get( resourceGroupName: string, vmName: string, - options?: VirtualMachinesGetOptionalParams + options?: VirtualMachinesGetOptionalParams, ): Promise; /** * Retrieves information about the run-time state of a virtual machine. @@ -231,7 +234,7 @@ export interface VirtualMachines { instanceView( resourceGroupName: string, vmName: string, - options?: VirtualMachinesInstanceViewOptionalParams + options?: VirtualMachinesInstanceViewOptionalParams, ): Promise; /** * Converts virtual machine disks from blob-based to managed disks. Virtual machine must be @@ -243,7 +246,7 @@ export interface VirtualMachines { beginConvertToManagedDisks( resourceGroupName: string, vmName: string, - options?: VirtualMachinesConvertToManagedDisksOptionalParams + options?: VirtualMachinesConvertToManagedDisksOptionalParams, ): Promise, void>>; /** * Converts virtual machine disks from blob-based to managed disks. Virtual machine must be @@ -255,7 +258,7 @@ export interface VirtualMachines { beginConvertToManagedDisksAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesConvertToManagedDisksOptionalParams + options?: VirtualMachinesConvertToManagedDisksOptionalParams, ): Promise; /** * Shuts down the virtual machine and releases the compute resources. You are not billed for the @@ -267,7 +270,7 @@ export interface VirtualMachines { beginDeallocate( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeallocateOptionalParams + options?: VirtualMachinesDeallocateOptionalParams, ): Promise, void>>; /** * Shuts down the virtual machine and releases the compute resources. You are not billed for the @@ -279,7 +282,7 @@ export interface VirtualMachines { beginDeallocateAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeallocateOptionalParams + options?: VirtualMachinesDeallocateOptionalParams, ): Promise; /** * Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual @@ -295,7 +298,7 @@ export interface VirtualMachines { generalize( resourceGroupName: string, vmName: string, - options?: VirtualMachinesGeneralizeOptionalParams + options?: VirtualMachinesGeneralizeOptionalParams, ): Promise; /** * The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the @@ -307,7 +310,7 @@ export interface VirtualMachines { beginPowerOff( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPowerOffOptionalParams + options?: VirtualMachinesPowerOffOptionalParams, ): Promise, void>>; /** * The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the @@ -319,7 +322,7 @@ export interface VirtualMachines { beginPowerOffAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPowerOffOptionalParams + options?: VirtualMachinesPowerOffOptionalParams, ): Promise; /** * The operation to reapply a virtual machine's state. @@ -330,7 +333,7 @@ export interface VirtualMachines { beginReapply( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReapplyOptionalParams + options?: VirtualMachinesReapplyOptionalParams, ): Promise, void>>; /** * The operation to reapply a virtual machine's state. @@ -341,7 +344,7 @@ export interface VirtualMachines { beginReapplyAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReapplyOptionalParams + options?: VirtualMachinesReapplyOptionalParams, ): Promise; /** * The operation to restart a virtual machine. @@ -352,7 +355,7 @@ export interface VirtualMachines { beginRestart( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise, void>>; /** * The operation to restart a virtual machine. @@ -363,7 +366,7 @@ export interface VirtualMachines { beginRestartAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise; /** * The operation to start a virtual machine. @@ -374,7 +377,7 @@ export interface VirtualMachines { beginStart( resourceGroupName: string, vmName: string, - options?: VirtualMachinesStartOptionalParams + options?: VirtualMachinesStartOptionalParams, ): Promise, void>>; /** * The operation to start a virtual machine. @@ -385,7 +388,7 @@ export interface VirtualMachines { beginStartAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesStartOptionalParams + options?: VirtualMachinesStartOptionalParams, ): Promise; /** * Shuts down the virtual machine, moves it to a new node, and powers it back on. @@ -396,7 +399,7 @@ export interface VirtualMachines { beginRedeploy( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRedeployOptionalParams + options?: VirtualMachinesRedeployOptionalParams, ): Promise, void>>; /** * Shuts down the virtual machine, moves it to a new node, and powers it back on. @@ -407,7 +410,7 @@ export interface VirtualMachines { beginRedeployAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRedeployOptionalParams + options?: VirtualMachinesRedeployOptionalParams, ): Promise; /** * Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for @@ -423,7 +426,7 @@ export interface VirtualMachines { beginReimage( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReimageOptionalParams + options?: VirtualMachinesReimageOptionalParams, ): Promise, void>>; /** * Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for @@ -439,7 +442,7 @@ export interface VirtualMachines { beginReimageAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReimageOptionalParams + options?: VirtualMachinesReimageOptionalParams, ): Promise; /** * The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs. @@ -450,7 +453,7 @@ export interface VirtualMachines { retrieveBootDiagnosticsData( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams + options?: VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams, ): Promise; /** * The operation to perform maintenance on a virtual machine. @@ -461,7 +464,7 @@ export interface VirtualMachines { beginPerformMaintenance( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPerformMaintenanceOptionalParams + options?: VirtualMachinesPerformMaintenanceOptionalParams, ): Promise, void>>; /** * The operation to perform maintenance on a virtual machine. @@ -472,7 +475,7 @@ export interface VirtualMachines { beginPerformMaintenanceAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPerformMaintenanceOptionalParams + options?: VirtualMachinesPerformMaintenanceOptionalParams, ): Promise; /** * The operation to simulate the eviction of spot virtual machine. @@ -483,7 +486,7 @@ export interface VirtualMachines { simulateEviction( resourceGroupName: string, vmName: string, - options?: VirtualMachinesSimulateEvictionOptionalParams + options?: VirtualMachinesSimulateEvictionOptionalParams, ): Promise; /** * Assess patches on the VM. @@ -494,7 +497,7 @@ export interface VirtualMachines { beginAssessPatches( resourceGroupName: string, vmName: string, - options?: VirtualMachinesAssessPatchesOptionalParams + options?: VirtualMachinesAssessPatchesOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -510,7 +513,7 @@ export interface VirtualMachines { beginAssessPatchesAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesAssessPatchesOptionalParams + options?: VirtualMachinesAssessPatchesOptionalParams, ): Promise; /** * Installs patches on the VM. @@ -523,7 +526,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, installPatchesInput: VirtualMachineInstallPatchesParameters, - options?: VirtualMachinesInstallPatchesOptionalParams + options?: VirtualMachinesInstallPatchesOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -541,8 +544,41 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, installPatchesInput: VirtualMachineInstallPatchesParameters, - options?: VirtualMachinesInstallPatchesOptionalParams + 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. @@ -554,7 +590,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: RunCommandInput, - options?: VirtualMachinesRunCommandOptionalParams + options?: VirtualMachinesRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -572,6 +608,6 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: RunCommandInput, - options?: VirtualMachinesRunCommandOptionalParams + options?: VirtualMachinesRunCommandOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/pagingHelper.ts b/sdk/compute/arm-compute/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/compute/arm-compute/src/pagingHelper.ts +++ b/sdk/compute/arm-compute/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/compute/arm-compute/test/sampleTest.ts b/sdk/compute/arm-compute/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /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"