From 5213e5023741182c092ab3788cb0038169ef9f89 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 24 Jan 2024 19:41:22 +0000 Subject: [PATCH] CodeGen from PR 27518 in Azure/azure-rest-api-specs Merge 74df0425758d87de13105fd0e69616ea21ec6df2 into c75671ae0a5d82d7d96fda75150478e8581408d8 --- common/config/rush/pnpm-lock.yaml | 24 +- sdk/compute/arm-compute/CHANGELOG.md | 20 +- sdk/compute/arm-compute/LICENSE | 2 +- sdk/compute/arm-compute/_meta.json | 6 +- sdk/compute/arm-compute/package.json | 16 +- .../arm-compute/review/arm-compute.api.md | 11 + .../src/computeManagementClient.ts | 55 +- sdk/compute/arm-compute/src/lroImpl.ts | 6 +- sdk/compute/arm-compute/src/models/index.ts | 585 +- sdk/compute/arm-compute/src/models/mappers.ts | 14824 ++++++++-------- .../arm-compute/src/models/parameters.ts | 702 +- .../src/operations/availabilitySets.ts | 179 +- .../operations/capacityReservationGroups.ts | 155 +- .../src/operations/capacityReservations.ts | 245 +- .../cloudServiceOperatingSystems.ts | 121 +- .../operations/cloudServiceRoleInstances.ts | 266 +- .../src/operations/cloudServiceRoles.ts | 66 +- .../src/operations/cloudServices.ts | 490 +- .../operations/cloudServicesUpdateDomain.ts | 113 +- .../src/operations/communityGalleries.ts | 19 +- .../communityGalleryImageVersions.ts | 73 +- .../src/operations/communityGalleryImages.ts | 64 +- .../src/operations/dedicatedHostGroups.ts | 152 +- .../src/operations/dedicatedHosts.ts | 327 +- .../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 | 234 +- .../src/operations/logAnalytics.ts | 100 +- .../arm-compute/src/operations/operations.ts | 20 +- .../operations/proximityPlacementGroups.ts | 152 +- .../src/operations/resourceSkus.ts | 32 +- .../src/operations/restorePointCollections.ts | 173 +- .../src/operations/restorePoints.ts | 115 +- .../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 | 169 +- .../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 | 684 +- .../src/operations/virtualMachineScaleSets.ts | 998 +- .../src/operations/virtualMachineSizes.ts | 27 +- .../src/operations/virtualMachines.ts | 963 +- .../operationsInterfaces/availabilitySets.ts | 16 +- .../capacityReservationGroups.ts | 14 +- .../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 | 28 +- .../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 | 64 +- .../virtualMachineScaleSets.ts | 88 +- .../virtualMachineSizes.ts | 4 +- .../operationsInterfaces/virtualMachines.ts | 88 +- sdk/compute/arm-compute/src/pagingHelper.ts | 2 +- sdk/compute/arm-compute/test/sampleTest.ts | 43 + sdk/compute/arm-compute/tsconfig.json | 10 +- 112 files changed, 13768 insertions(+), 13882 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 bef5b594d788..0012587fc1d3 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1169,6 +1169,21 @@ packages: - supports-color dev: false + /@azure/arm-compute@21.3.0: + resolution: {integrity: sha512-WbGMsAeqDb1eTDkGfUqKPjgfT5LqDRKi3PYyW32BxBQxPv5MwzvAX42Q9MB4oNBskTRHTRr4W/DMWaTCfPTL1A==} + engines: {node: '>=18.0.0'} + dependencies: + '@azure/abort-controller': 1.1.0 + '@azure/core-auth': 1.5.0 + '@azure/core-client': 1.7.3 + '@azure/core-lro': 2.5.4 + '@azure/core-paging': 1.5.0 + '@azure/core-rest-pipeline': 1.13.0 + tslib: 2.6.2 + transitivePeerDependencies: + - supports-color + dev: false + /@azure/arm-cosmosdb@16.0.0-beta.6: resolution: {integrity: sha512-Ue4ocP8qCsFDeBZ/MjMNyVt4e9QhU3UgrRfZSw6kWiMzdrCgDePnZvjzZs9PQpjAsXbHGd9HlEIXg9Dl6Y/uww==} engines: {node: '>=14.0.0'} @@ -12174,7 +12189,7 @@ packages: dev: false file:projects/arm-compute-1.tgz: - resolution: {integrity: sha512-j1XLP5MJLnHOi7fAMTC+Zg9uv0ufUVHZtOY5wkeGjk4CP8aX3v/GNO80H323K65X/95UX+z3KU7cN7aVfjFOKQ==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-p0cOotv4CVgLRaKAudJK4qHx2ZQMp9gLbVJ2rUlvouJmBHVRwD4aEQ4RZUj8TPfK9QJq9AusL2Jg5YrbPNb/6Q==, tarball: file:projects/arm-compute-1.tgz} name: '@rush-temp/arm-compute-1' version: 0.0.0 dependencies: @@ -13886,11 +13901,12 @@ packages: dev: false file:projects/arm-imagebuilder.tgz: - resolution: {integrity: sha512-jy4nsfvNSrj5Sm0Pm/CS0HOMBxxdTCbxFBbjcXKbi1E0UnhrvwrJEgvS0XeGh8oSIhV/A8yNYClO4Vc9dJA8Mg==, tarball: file:projects/arm-imagebuilder.tgz} + resolution: {integrity: sha512-r1X+tp1HiZafuh1vvXEhrOroFTNrre0gwsi53pl5NQZ4pNV3CNG+xP3g7nrhKWja8WRSUDJ8//5hV9IcumCTLg==, tarball: file:projects/arm-imagebuilder.tgz} name: '@rush-temp/arm-imagebuilder' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 + '@azure/arm-compute': 21.3.0 '@azure/identity': 3.4.1 '@microsoft/api-extractor': 7.39.1(@types/node@18.19.8) '@types/chai': 4.3.11 @@ -19906,7 +19922,7 @@ packages: dev: false file:projects/monitor-opentelemetry.tgz: - resolution: {integrity: sha512-lo4oozQNttRnokWFrCbY3GohMibQ/CfSMj7WphFham4Amqe+4h45EjAqI1JyM1msx/RxUvhToAGBSGhzer1Rcw==, tarball: file:projects/monitor-opentelemetry.tgz} + resolution: {integrity: sha512-Xf0NjVPAmeEoG0JyhuOmfqK4XSDmyiN0msQL/FRF7Fei5VMv/ll8lpAAA6nXNGFsyHWec560+FC4ltY4+kPxMg==, tarball: file:projects/monitor-opentelemetry.tgz} name: '@rush-temp/monitor-opentelemetry' version: 0.0.0 dependencies: @@ -19954,7 +19970,7 @@ packages: dev: false file:projects/monitor-query.tgz: - resolution: {integrity: sha512-9hmYHmHPuVKee47ZJqtIQIK5Y5FabtUxkMISw7Cm0KW2hJKBVZbwPOOWc6BhysqXg1Eli8zOVCfBj13Bq5Mdxg==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-cjN6ndl4z8E640TVIBFVlpQrMq2bfxispNBr8Apa7PF9+x1ZYPRGjtesqR3pbuo+DxJRZfeSHFBfVgqP9CTegQ==, tarball: file:projects/monitor-query.tgz} name: '@rush-temp/monitor-query' version: 0.0.0 dependencies: diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index 43e29c17d769..25a4bffc0a47 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -1,15 +1,15 @@ # Release History + +## 21.4.0 (2024-01-24) + +**Features** -## 21.3.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added Type Alias ProvisionedBandwidthCopyOption + - Interface CreationData has a new optional parameter provisionedBandwidthCopySpeed + - Added Enum KnownProvisionedBandwidthCopyOption + - Enum KnownDiskSecurityTypes has a new value ConfidentialVMNonPersistedTPM + + ## 21.3.0 (2023-12-08) **Features** diff --git a/sdk/compute/arm-compute/LICENSE b/sdk/compute/arm-compute/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/compute/arm-compute/LICENSE +++ b/sdk/compute/arm-compute/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/compute/arm-compute/_meta.json b/sdk/compute/arm-compute/_meta.json index 9cce53a6cfa3..d16b7b2526fc 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,8 +1,8 @@ { - "commit": "0373f0edc4414fd402603fac51d0df93f1f70507", + "commit": "d2f37c336eb7dd6bc3f8e66251a0444f5c6a3721", "readme": "specification/compute/resource-manager/readme.md", - "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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\compute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.13 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/compute/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", - "use": "@autorest/typescript@6.0.13" + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json index 726ca72616b5..bed00c915cfc 100644 --- a/sdk/compute/arm-compute/package.json +++ b/sdk/compute/arm-compute/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ComputeManagementClient.", - "version": "21.3.1", + "version": "21.4.0", "engines": { "node": ">=18.0.0" }, @@ -45,7 +45,6 @@ "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/arm-network": "^32.2.0", "ts-node": "^10.0.0" }, "repository": { @@ -79,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -108,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 e336a2c0c7e1..509ce0009873 100644 --- a/sdk/compute/arm-compute/review/arm-compute.api.md +++ b/sdk/compute/arm-compute/review/arm-compute.api.md @@ -1223,6 +1223,7 @@ export interface CreationData { imageReference?: ImageDiskReference; logicalSectorSize?: number; performancePlus?: boolean; + provisionedBandwidthCopySpeed?: ProvisionedBandwidthCopyOption; securityDataUri?: string; sourceResourceId?: string; readonly sourceUniqueId?: string; @@ -3282,6 +3283,7 @@ export enum KnownDiskEncryptionSetType { export enum KnownDiskSecurityTypes { ConfidentialVMDiskEncryptedWithCustomerKey = "ConfidentialVM_DiskEncryptedWithCustomerKey", ConfidentialVMDiskEncryptedWithPlatformKey = "ConfidentialVM_DiskEncryptedWithPlatformKey", + ConfidentialVMNonPersistedTPM = "ConfidentialVM_NonPersistedTPM", ConfidentialVMVmguestStateOnlyEncryptedWithPlatformKey = "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey", TrustedLaunch = "TrustedLaunch" } @@ -3578,6 +3580,12 @@ export enum KnownPrivateEndpointServiceConnectionStatus { Rejected = "Rejected" } +// @public +export enum KnownProvisionedBandwidthCopyOption { + Enhanced = "Enhanced", + None = "None" +} + // @public export enum KnownProximityPlacementGroupType { Standard = "Standard", @@ -4485,6 +4493,9 @@ export interface PropertyUpdatesInProgress { // @public export type ProtocolTypes = "Http" | "Https"; +// @public +export type ProvisionedBandwidthCopyOption = string; + // @public export interface ProximityPlacementGroup extends Resource { readonly availabilitySets?: SubResourceWithColocationStatus[]; diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index 254bf964d8f7..3a453a9f768e 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.3.1`; + const packageDetails = `azsdk-js-arm-compute/21.4.0`; 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 4648426d7f26..5c69937bde7f 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -2975,6 +2975,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. */ @@ -6895,7 +6897,7 @@ export enum KnownRepairAction { /** Restart */ Restart = "Restart", /** Reimage */ - Reimage = "Reimage" + Reimage = "Reimage", } /** @@ -6916,7 +6918,7 @@ export enum KnownWindowsVMGuestPatchMode { /** AutomaticByOS */ AutomaticByOS = "AutomaticByOS", /** AutomaticByPlatform */ - AutomaticByPlatform = "AutomaticByPlatform" + AutomaticByPlatform = "AutomaticByPlatform", } /** @@ -6935,7 +6937,7 @@ export enum KnownWindowsPatchAssessmentMode { /** ImageDefault */ ImageDefault = "ImageDefault", /** AutomaticByPlatform */ - AutomaticByPlatform = "AutomaticByPlatform" + AutomaticByPlatform = "AutomaticByPlatform", } /** @@ -6957,7 +6959,7 @@ export enum KnownWindowsVMGuestPatchAutomaticByPlatformRebootSetting { /** Never */ Never = "Never", /** Always */ - Always = "Always" + Always = "Always", } /** @@ -6977,7 +6979,7 @@ export enum KnownLinuxVMGuestPatchMode { /** ImageDefault */ ImageDefault = "ImageDefault", /** AutomaticByPlatform */ - AutomaticByPlatform = "AutomaticByPlatform" + AutomaticByPlatform = "AutomaticByPlatform", } /** @@ -6995,7 +6997,7 @@ export enum KnownLinuxPatchAssessmentMode { /** ImageDefault */ ImageDefault = "ImageDefault", /** AutomaticByPlatform */ - AutomaticByPlatform = "AutomaticByPlatform" + AutomaticByPlatform = "AutomaticByPlatform", } /** @@ -7017,7 +7019,7 @@ export enum KnownLinuxVMGuestPatchAutomaticByPlatformRebootSetting { /** Never */ Never = "Never", /** Always */ - Always = "Always" + Always = "Always", } /** @@ -7039,7 +7041,7 @@ export enum KnownDiskCreateOptionTypes { /** Empty */ Empty = "Empty", /** Attach */ - Attach = "Attach" + Attach = "Attach", } /** @@ -7056,7 +7058,7 @@ export type DiskCreateOptionTypes = string; /** Known values of {@link DiffDiskOptions} that the service accepts. */ export enum KnownDiffDiskOptions { /** Local */ - Local = "Local" + Local = "Local", } /** @@ -7073,7 +7075,7 @@ export enum KnownDiffDiskPlacement { /** CacheDisk */ CacheDisk = "CacheDisk", /** ResourceDisk */ - ResourceDisk = "ResourceDisk" + ResourceDisk = "ResourceDisk", } /** @@ -7101,7 +7103,7 @@ export enum KnownStorageAccountTypes { /** StandardSSDZRS */ StandardSSDZRS = "StandardSSD_ZRS", /** PremiumV2LRS */ - PremiumV2LRS = "PremiumV2_LRS" + PremiumV2LRS = "PremiumV2_LRS", } /** @@ -7126,7 +7128,7 @@ export enum KnownSecurityEncryptionTypes { /** DiskWithVMGuestState */ DiskWithVMGuestState = "DiskWithVMGuestState", /** NonPersistedTPM */ - NonPersistedTPM = "NonPersistedTPM" + NonPersistedTPM = "NonPersistedTPM", } /** @@ -7145,7 +7147,7 @@ export enum KnownDiskDeleteOptionTypes { /** Delete */ Delete = "Delete", /** Detach */ - Detach = "Detach" + Detach = "Detach", } /** @@ -7167,7 +7169,7 @@ export enum KnownDomainNameLabelScopeTypes { /** ResourceGroupReuse */ ResourceGroupReuse = "ResourceGroupReuse", /** NoReuse */ - NoReuse = "NoReuse" + NoReuse = "NoReuse", } /** @@ -7187,7 +7189,7 @@ export enum KnownIPVersion { /** IPv4 */ IPv4 = "IPv4", /** IPv6 */ - IPv6 = "IPv6" + IPv6 = "IPv6", } /** @@ -7205,7 +7207,7 @@ export enum KnownDeleteOptions { /** Delete */ Delete = "Delete", /** Detach */ - Detach = "Detach" + Detach = "Detach", } /** @@ -7223,7 +7225,7 @@ export enum KnownPublicIPAddressSkuName { /** Basic */ Basic = "Basic", /** Standard */ - Standard = "Standard" + Standard = "Standard", } /** @@ -7241,7 +7243,7 @@ export enum KnownPublicIPAddressSkuTier { /** Regional */ Regional = "Regional", /** Global */ - Global = "Global" + Global = "Global", } /** @@ -7261,7 +7263,7 @@ export enum KnownNetworkInterfaceAuxiliaryMode { /** AcceleratedConnections */ AcceleratedConnections = "AcceleratedConnections", /** Floating */ - Floating = "Floating" + Floating = "Floating", } /** @@ -7286,7 +7288,7 @@ export enum KnownNetworkInterfaceAuxiliarySku { /** A4 */ A4 = "A4", /** A8 */ - A8 = "A8" + A8 = "A8", } /** @@ -7305,7 +7307,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", } /** @@ -7322,7 +7324,7 @@ export enum KnownSecurityTypes { /** TrustedLaunch */ TrustedLaunch = "TrustedLaunch", /** ConfidentialVM */ - ConfidentialVM = "ConfidentialVM" + ConfidentialVM = "ConfidentialVM", } /** @@ -7340,7 +7342,7 @@ export enum KnownMode { /** Audit */ Audit = "Audit", /** Enforce */ - Enforce = "Enforce" + Enforce = "Enforce", } /** @@ -7360,7 +7362,7 @@ export enum KnownVirtualMachinePriorityTypes { /** Low */ Low = "Low", /** Spot */ - Spot = "Spot" + Spot = "Spot", } /** @@ -7379,7 +7381,7 @@ export enum KnownVirtualMachineEvictionPolicyTypes { /** Deallocate */ Deallocate = "Deallocate", /** Delete */ - Delete = "Delete" + Delete = "Delete", } /** @@ -7399,7 +7401,7 @@ export enum KnownVirtualMachineScaleSetScaleInRules { /** OldestVM */ OldestVM = "OldestVM", /** NewestVM */ - NewestVM = "NewestVM" + NewestVM = "NewestVM", } /** @@ -7418,7 +7420,7 @@ export enum KnownOrchestrationMode { /** Uniform */ Uniform = "Uniform", /** Flexible */ - Flexible = "Flexible" + Flexible = "Flexible", } /** @@ -7434,7 +7436,7 @@ export type OrchestrationMode = string; /** Known values of {@link ExtendedLocationTypes} that the service accepts. */ export enum KnownExtendedLocationTypes { /** EdgeZone */ - EdgeZone = "EdgeZone" + EdgeZone = "EdgeZone", } /** @@ -7449,7 +7451,7 @@ export type ExtendedLocationTypes = string; /** Known values of {@link ExpandTypesForGetVMScaleSets} that the service accepts. */ export enum KnownExpandTypesForGetVMScaleSets { /** UserData */ - UserData = "userData" + UserData = "userData", } /** @@ -7466,7 +7468,7 @@ export enum KnownOrchestrationServiceNames { /** AutomaticRepairs */ AutomaticRepairs = "AutomaticRepairs", /** DummyOrchestrationServiceName */ - DummyOrchestrationServiceName = "DummyOrchestrationServiceName" + DummyOrchestrationServiceName = "DummyOrchestrationServiceName", } /** @@ -7486,7 +7488,7 @@ export enum KnownOrchestrationServiceState { /** Running */ Running = "Running", /** Suspended */ - Suspended = "Suspended" + Suspended = "Suspended", } /** @@ -7505,7 +7507,7 @@ export enum KnownOrchestrationServiceStateAction { /** Resume */ Resume = "Resume", /** Suspend */ - Suspend = "Suspend" + Suspend = "Suspend", } /** @@ -7523,7 +7525,7 @@ export enum KnownHyperVGeneration { /** V1 */ V1 = "V1", /** V2 */ - V2 = "V2" + V2 = "V2", } /** @@ -7869,7 +7871,7 @@ export enum KnownVirtualMachineSizeTypes { /** StandardNV12 */ StandardNV12 = "Standard_NV12", /** StandardNV24 */ - StandardNV24 = "Standard_NV24" + StandardNV24 = "Standard_NV24", } /** @@ -8049,7 +8051,7 @@ export type VirtualMachineSizeTypes = string; /** Known values of {@link DiskDetachOptionTypes} that the service accepts. */ export enum KnownDiskDetachOptionTypes { /** ForceDetach */ - ForceDetach = "ForceDetach" + ForceDetach = "ForceDetach", } /** @@ -8066,7 +8068,7 @@ export enum KnownDiskControllerTypes { /** Scsi */ Scsi = "SCSI", /** NVMe */ - NVMe = "NVMe" + NVMe = "NVMe", } /** @@ -8084,7 +8086,7 @@ export enum KnownIPVersions { /** IPv4 */ IPv4 = "IPv4", /** IPv6 */ - IPv6 = "IPv6" + IPv6 = "IPv6", } /** @@ -8102,7 +8104,7 @@ export enum KnownPublicIPAllocationMethod { /** Dynamic */ Dynamic = "Dynamic", /** Static */ - Static = "Static" + Static = "Static", } /** @@ -8120,7 +8122,7 @@ export enum KnownHyperVGenerationType { /** V1 */ V1 = "V1", /** V2 */ - V2 = "V2" + V2 = "V2", } /** @@ -8144,7 +8146,7 @@ export enum KnownPatchOperationStatus { /** Succeeded */ Succeeded = "Succeeded", /** CompletedWithWarnings */ - CompletedWithWarnings = "CompletedWithWarnings" + CompletedWithWarnings = "CompletedWithWarnings", } /** @@ -8163,7 +8165,7 @@ export type PatchOperationStatus = string; /** Known values of {@link ExpandTypeForListVMs} that the service accepts. */ export enum KnownExpandTypeForListVMs { /** InstanceView */ - InstanceView = "instanceView" + InstanceView = "instanceView", } /** @@ -8178,7 +8180,7 @@ export type ExpandTypeForListVMs = string; /** Known values of {@link ExpandTypesForListVMs} that the service accepts. */ export enum KnownExpandTypesForListVMs { /** InstanceView */ - InstanceView = "instanceView" + InstanceView = "instanceView", } /** @@ -8199,7 +8201,7 @@ export enum KnownVMGuestPatchRebootBehavior { /** AlwaysRequiresReboot */ AlwaysRequiresReboot = "AlwaysRequiresReboot", /** CanRequestReboot */ - CanRequestReboot = "CanRequestReboot" + CanRequestReboot = "CanRequestReboot", } /** @@ -8219,7 +8221,7 @@ export enum KnownPatchAssessmentState { /** Unknown */ Unknown = "Unknown", /** Available */ - Available = "Available" + Available = "Available", } /** @@ -8239,7 +8241,7 @@ export enum KnownVMGuestPatchRebootSetting { /** Never */ Never = "Never", /** Always */ - Always = "Always" + Always = "Always", } /** @@ -8270,7 +8272,7 @@ export enum KnownVMGuestPatchClassificationWindows { /** Tools */ Tools = "Tools", /** Updates */ - Updates = "Updates" + Updates = "Updates", } /** @@ -8296,7 +8298,7 @@ export enum KnownVMGuestPatchClassificationLinux { /** Security */ Security = "Security", /** Other */ - Other = "Other" + Other = "Other", } /** @@ -8323,7 +8325,7 @@ export enum KnownVMGuestPatchRebootStatus { /** Failed */ Failed = "Failed", /** Completed */ - Completed = "Completed" + Completed = "Completed", } /** @@ -8353,7 +8355,7 @@ export enum KnownPatchInstallationState { /** NotSelected */ NotSelected = "NotSelected", /** Pending */ - Pending = "Pending" + Pending = "Pending", } /** @@ -8375,7 +8377,7 @@ export enum KnownHyperVGenerationTypes { /** V1 */ V1 = "V1", /** V2 */ - V2 = "V2" + V2 = "V2", } /** @@ -8393,7 +8395,7 @@ export enum KnownVmDiskTypes { /** None */ None = "None", /** Unmanaged */ - Unmanaged = "Unmanaged" + Unmanaged = "Unmanaged", } /** @@ -8411,7 +8413,7 @@ export enum KnownArchitectureTypes { /** X64 */ X64 = "x64", /** Arm64 */ - Arm64 = "Arm64" + Arm64 = "Arm64", } /** @@ -8431,7 +8433,7 @@ export enum KnownImageState { /** ScheduledForDeprecation */ ScheduledForDeprecation = "ScheduledForDeprecation", /** Deprecated */ - Deprecated = "Deprecated" + Deprecated = "Deprecated", } /** @@ -8452,7 +8454,7 @@ export enum KnownAlternativeType { /** Offer */ Offer = "Offer", /** Plan */ - Plan = "Plan" + Plan = "Plan", } /** @@ -8471,7 +8473,7 @@ export enum KnownProximityPlacementGroupType { /** Standard */ Standard = "Standard", /** Ultra */ - Ultra = "Ultra" + Ultra = "Ultra", } /** @@ -8489,7 +8491,7 @@ export enum KnownSshEncryptionTypes { /** RSA */ RSA = "RSA", /** Ed25519 */ - Ed25519 = "Ed25519" + Ed25519 = "Ed25519", } /** @@ -8507,7 +8509,7 @@ export enum KnownOperatingSystemType { /** Windows */ Windows = "Windows", /** Linux */ - Linux = "Linux" + Linux = "Linux", } /** @@ -8527,7 +8529,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", } /** @@ -8548,7 +8550,7 @@ export enum KnownConsistencyModeTypes { /** FileSystemConsistent */ FileSystemConsistent = "FileSystemConsistent", /** ApplicationConsistent */ - ApplicationConsistent = "ApplicationConsistent" + ApplicationConsistent = "ApplicationConsistent", } /** @@ -8565,7 +8567,7 @@ export type ConsistencyModeTypes = string; /** Known values of {@link RestorePointCollectionExpandOptions} that the service accepts. */ export enum KnownRestorePointCollectionExpandOptions { /** RestorePoints */ - RestorePoints = "restorePoints" + RestorePoints = "restorePoints", } /** @@ -8580,7 +8582,7 @@ export type RestorePointCollectionExpandOptions = string; /** Known values of {@link RestorePointExpandOptions} that the service accepts. */ export enum KnownRestorePointExpandOptions { /** InstanceView */ - InstanceView = "instanceView" + InstanceView = "instanceView", } /** @@ -8595,7 +8597,7 @@ export type RestorePointExpandOptions = string; /** Known values of {@link CapacityReservationGroupInstanceViewTypes} that the service accepts. */ export enum KnownCapacityReservationGroupInstanceViewTypes { /** InstanceView */ - InstanceView = "instanceView" + InstanceView = "instanceView", } /** @@ -8612,7 +8614,7 @@ export enum KnownExpandTypesForGetCapacityReservationGroups { /** VirtualMachineScaleSetVMsRef */ VirtualMachineScaleSetVMsRef = "virtualMachineScaleSetVMs/$ref", /** VirtualMachinesRef */ - VirtualMachinesRef = "virtualMachines/$ref" + VirtualMachinesRef = "virtualMachines/$ref", } /** @@ -8628,7 +8630,7 @@ export type ExpandTypesForGetCapacityReservationGroups = string; /** Known values of {@link CapacityReservationInstanceViewTypes} that the service accepts. */ export enum KnownCapacityReservationInstanceViewTypes { /** InstanceView */ - InstanceView = "instanceView" + InstanceView = "instanceView", } /** @@ -8655,7 +8657,7 @@ export enum KnownExecutionState { /** TimedOut */ TimedOut = "TimedOut", /** Canceled */ - Canceled = "Canceled" + Canceled = "Canceled", } /** @@ -8688,7 +8690,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", } /** @@ -8711,7 +8713,7 @@ export enum KnownArchitecture { /** X64 */ X64 = "x64", /** Arm64 */ - Arm64 = "Arm64" + Arm64 = "Arm64", } /** @@ -8747,7 +8749,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", } /** @@ -8769,6 +8771,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. */ @@ -8786,7 +8806,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", } /** @@ -8812,7 +8832,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", } /** @@ -8833,7 +8853,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", } /** @@ -8856,7 +8876,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", } /** @@ -8867,7 +8889,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; @@ -8876,7 +8899,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", } /** @@ -8894,7 +8917,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", } /** @@ -8914,7 +8937,7 @@ export enum KnownAccessLevel { /** Read */ Read = "Read", /** Write */ - Write = "Write" + Write = "Write", } /** @@ -8933,7 +8956,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", } /** @@ -8953,7 +8976,7 @@ export enum KnownPrivateEndpointServiceConnectionStatus { /** Approved */ Approved = "Approved", /** Rejected */ - Rejected = "Rejected" + Rejected = "Rejected", } /** @@ -8976,7 +8999,7 @@ export enum KnownPrivateEndpointConnectionProvisioningState { /** Deleting */ Deleting = "Deleting", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -9000,7 +9023,7 @@ export enum KnownDiskEncryptionSetIdentityType { /** SystemAssignedUserAssigned */ SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", /** None */ - None = "None" + None = "None", } /** @@ -9022,7 +9045,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", } /** @@ -9043,7 +9066,7 @@ export enum KnownSnapshotStorageAccountTypes { /** Premium SSD locally redundant storage */ PremiumLRS = "Premium_LRS", /** Standard zone redundant storage */ - StandardZRS = "Standard_ZRS" + StandardZRS = "Standard_ZRS", } /** @@ -9060,7 +9083,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", } /** @@ -9075,7 +9098,7 @@ export type CopyCompletionErrorReason = string; /** Known values of {@link ExtendedLocationType} that the service accepts. */ export enum KnownExtendedLocationType { /** EdgeZone */ - EdgeZone = "EdgeZone" + EdgeZone = "EdgeZone", } /** @@ -9100,7 +9123,7 @@ export enum KnownGalleryProvisioningState { /** Deleting */ Deleting = "Deleting", /** Migrating */ - Migrating = "Migrating" + Migrating = "Migrating", } /** @@ -9124,7 +9147,7 @@ export enum KnownGallerySharingPermissionTypes { /** Groups */ Groups = "Groups", /** Community */ - Community = "Community" + Community = "Community", } /** @@ -9143,7 +9166,7 @@ export enum KnownSharingProfileGroupTypes { /** Subscriptions */ Subscriptions = "Subscriptions", /** AADTenants */ - AADTenants = "AADTenants" + AADTenants = "AADTenants", } /** @@ -9165,7 +9188,7 @@ export enum KnownSharingState { /** Failed */ Failed = "Failed", /** Unknown */ - Unknown = "Unknown" + Unknown = "Unknown", } /** @@ -9183,7 +9206,7 @@ export type SharingState = string; /** Known values of {@link SelectPermissions} that the service accepts. */ export enum KnownSelectPermissions { /** Permissions */ - Permissions = "Permissions" + Permissions = "Permissions", } /** @@ -9198,7 +9221,7 @@ export type SelectPermissions = string; /** Known values of {@link GalleryExpandParams} that the service accepts. */ export enum KnownGalleryExpandParams { /** SharingProfileGroups */ - SharingProfileGroups = "SharingProfile/Groups" + SharingProfileGroups = "SharingProfile/Groups", } /** @@ -9217,7 +9240,7 @@ export enum KnownStorageAccountType { /** StandardZRS */ StandardZRS = "Standard_ZRS", /** PremiumLRS */ - PremiumLRS = "Premium_LRS" + PremiumLRS = "Premium_LRS", } /** @@ -9240,7 +9263,7 @@ export enum KnownConfidentialVMEncryptionType { /** EncryptedWithCmk */ EncryptedWithCmk = "EncryptedWithCmk", /** NonPersistedTPM */ - NonPersistedTPM = "NonPersistedTPM" + NonPersistedTPM = "NonPersistedTPM", } /** @@ -9260,7 +9283,7 @@ export enum KnownReplicationMode { /** Full */ Full = "Full", /** Shallow */ - Shallow = "Shallow" + Shallow = "Shallow", } /** @@ -9278,7 +9301,7 @@ export enum KnownGalleryExtendedLocationType { /** EdgeZone */ EdgeZone = "EdgeZone", /** Unknown */ - Unknown = "Unknown" + Unknown = "Unknown", } /** @@ -9300,7 +9323,7 @@ export enum KnownEdgeZoneStorageAccountType { /** StandardSSDLRS */ StandardSSDLRS = "StandardSSD_LRS", /** PremiumLRS */ - PremiumLRS = "Premium_LRS" + PremiumLRS = "Premium_LRS", } /** @@ -9324,7 +9347,7 @@ export enum KnownPolicyViolationCategory { /** CopyrightValidation */ CopyrightValidation = "CopyrightValidation", /** IpTheft */ - IpTheft = "IpTheft" + IpTheft = "IpTheft", } /** @@ -9348,7 +9371,7 @@ export enum KnownAggregatedReplicationState { /** Completed */ Completed = "Completed", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -9372,7 +9395,7 @@ export enum KnownReplicationState { /** Completed */ Completed = "Completed", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -9394,7 +9417,7 @@ export enum KnownUefiSignatureTemplateName { /** MicrosoftUefiCertificateAuthorityTemplate */ MicrosoftUefiCertificateAuthorityTemplate = "MicrosoftUefiCertificateAuthorityTemplate", /** MicrosoftWindowsTemplate */ - MicrosoftWindowsTemplate = "MicrosoftWindowsTemplate" + MicrosoftWindowsTemplate = "MicrosoftWindowsTemplate", } /** @@ -9413,7 +9436,7 @@ export enum KnownUefiKeyType { /** Sha256 */ Sha256 = "sha256", /** X509 */ - X509 = "x509" + X509 = "x509", } /** @@ -9431,7 +9454,7 @@ export enum KnownReplicationStatusTypes { /** ReplicationStatus */ ReplicationStatus = "ReplicationStatus", /** UefiSettings */ - UefiSettings = "UefiSettings" + UefiSettings = "UefiSettings", } /** @@ -9453,7 +9476,7 @@ export enum KnownSharingUpdateOperationTypes { /** Reset */ Reset = "Reset", /** EnableCommunity */ - EnableCommunity = "EnableCommunity" + EnableCommunity = "EnableCommunity", } /** @@ -9471,7 +9494,7 @@ export type SharingUpdateOperationTypes = string; /** Known values of {@link SharedToValues} that the service accepts. */ export enum KnownSharedToValues { /** Tenant */ - Tenant = "tenant" + Tenant = "tenant", } /** @@ -9490,7 +9513,7 @@ export enum KnownSharedGalleryHostCaching { /** ReadOnly */ ReadOnly = "ReadOnly", /** ReadWrite */ - ReadWrite = "ReadWrite" + ReadWrite = "ReadWrite", } /** @@ -9511,7 +9534,7 @@ export enum KnownCloudServiceUpgradeMode { /** Manual */ Manual = "Manual", /** Simultaneous */ - Simultaneous = "Simultaneous" + Simultaneous = "Simultaneous", } /** @@ -9530,7 +9553,7 @@ export enum KnownCloudServiceSlotType { /** Production */ Production = "Production", /** Staging */ - Staging = "Staging" + Staging = "Staging", } /** @@ -9548,7 +9571,7 @@ export enum KnownAvailabilitySetSkuTypes { /** Classic */ Classic = "Classic", /** Aligned */ - Aligned = "Aligned" + Aligned = "Aligned", } /** @@ -9665,7 +9688,8 @@ export interface VirtualMachineScaleSetsListByLocationOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByLocation operation. */ -export type VirtualMachineScaleSetsListByLocationResponse = VirtualMachineScaleSetListResult; +export type VirtualMachineScaleSetsListByLocationResponse = + VirtualMachineScaleSetListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsCreateOrUpdateOptionalParams @@ -9681,7 +9705,8 @@ export interface VirtualMachineScaleSetsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetsCreateOrUpdateResponse = VirtualMachineScaleSet; +export type VirtualMachineScaleSetsCreateOrUpdateResponse = + VirtualMachineScaleSet; /** Optional parameters. */ export interface VirtualMachineScaleSetsUpdateOptionalParams @@ -9749,35 +9774,40 @@ export interface VirtualMachineScaleSetsGetInstanceViewOptionalParams 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 {} /** Contains response data for the list operation. */ -export type VirtualMachineScaleSetsListResponse = VirtualMachineScaleSetListResult; +export type VirtualMachineScaleSetsListResponse = + VirtualMachineScaleSetListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListAllOptionalParams 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 {} /** Contains response data for the listSkus operation. */ -export type VirtualMachineScaleSetsListSkusResponse = VirtualMachineScaleSetListSkusResult; +export type VirtualMachineScaleSetsListSkusResponse = + VirtualMachineScaleSetListSkusResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getOSUpgradeHistory operation. */ -export type VirtualMachineScaleSetsGetOSUpgradeHistoryResponse = VirtualMachineScaleSetListOSUpgradeHistory; +export type VirtualMachineScaleSetsGetOSUpgradeHistoryResponse = + VirtualMachineScaleSetListOSUpgradeHistory; /** Optional parameters. */ export interface VirtualMachineScaleSetsPowerOffOptionalParams @@ -9888,7 +9918,8 @@ export interface VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams } /** Contains response data for the approveRollingUpgrade operation. */ -export type VirtualMachineScaleSetsApproveRollingUpgradeResponse = VirtualMachineScaleSetsApproveRollingUpgradeHeaders; +export type VirtualMachineScaleSetsApproveRollingUpgradeResponse = + VirtualMachineScaleSetsApproveRollingUpgradeHeaders; /** Optional parameters. */ export interface VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams @@ -9900,7 +9931,8 @@ export interface VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdate } /** Contains response data for the forceRecoveryServiceFabricPlatformUpdateDomainWalk operation. */ -export type VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse = RecoveryWalkResponse; +export type VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse = + RecoveryWalkResponse; /** Optional parameters. */ export interface VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams @@ -9920,35 +9952,40 @@ export interface VirtualMachineScaleSetsListByLocationNextOptionalParams 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 {} /** Contains response data for the listNext operation. */ -export type VirtualMachineScaleSetsListNextResponse = VirtualMachineScaleSetListResult; +export type VirtualMachineScaleSetsListNextResponse = + VirtualMachineScaleSetListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListAllNextOptionalParams 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 {} /** Contains response data for the listSkusNext operation. */ -export type VirtualMachineScaleSetsListSkusNextResponse = VirtualMachineScaleSetListSkusResult; +export type VirtualMachineScaleSetsListSkusNextResponse = + VirtualMachineScaleSetListSkusResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsGetOSUpgradeHistoryNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getOSUpgradeHistoryNext operation. */ -export type VirtualMachineScaleSetsGetOSUpgradeHistoryNextResponse = VirtualMachineScaleSetListOSUpgradeHistory; +export type VirtualMachineScaleSetsGetOSUpgradeHistoryNextResponse = + VirtualMachineScaleSetListOSUpgradeHistory; /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams @@ -9960,7 +9997,8 @@ export interface VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetExtensionsCreateOrUpdateResponse = VirtualMachineScaleSetExtension; +export type VirtualMachineScaleSetExtensionsCreateOrUpdateResponse = + VirtualMachineScaleSetExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsUpdateOptionalParams @@ -9972,7 +10010,8 @@ export interface VirtualMachineScaleSetExtensionsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type VirtualMachineScaleSetExtensionsUpdateResponse = VirtualMachineScaleSetExtension; +export type VirtualMachineScaleSetExtensionsUpdateResponse = + VirtualMachineScaleSetExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsDeleteOptionalParams @@ -9991,21 +10030,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 {} /** Contains response data for the list operation. */ -export type VirtualMachineScaleSetExtensionsListResponse = VirtualMachineScaleSetExtensionListResult; +export type VirtualMachineScaleSetExtensionsListResponse = + VirtualMachineScaleSetExtensionListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type VirtualMachineScaleSetExtensionsListNextResponse = VirtualMachineScaleSetExtensionListResult; +export type VirtualMachineScaleSetExtensionsListNextResponse = + VirtualMachineScaleSetExtensionListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetRollingUpgradesCancelOptionalParams @@ -10039,7 +10081,8 @@ export interface VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getLatest operation. */ -export type VirtualMachineScaleSetRollingUpgradesGetLatestResponse = RollingUpgradeStatusInfo; +export type VirtualMachineScaleSetRollingUpgradesGetLatestResponse = + RollingUpgradeStatusInfo; /** Optional parameters. */ export interface VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams @@ -10051,7 +10094,8 @@ export interface VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse = VirtualMachineScaleSetVMExtension; +export type VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse = + VirtualMachineScaleSetVMExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetVMExtensionsUpdateOptionalParams @@ -10063,7 +10107,8 @@ export interface VirtualMachineScaleSetVMExtensionsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type VirtualMachineScaleSetVMExtensionsUpdateResponse = VirtualMachineScaleSetVMExtension; +export type VirtualMachineScaleSetVMExtensionsUpdateResponse = + VirtualMachineScaleSetVMExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetVMExtensionsDeleteOptionalParams @@ -10082,7 +10127,8 @@ export interface VirtualMachineScaleSetVMExtensionsGetOptionalParams } /** Contains response data for the get operation. */ -export type VirtualMachineScaleSetVMExtensionsGetResponse = VirtualMachineScaleSetVMExtension; +export type VirtualMachineScaleSetVMExtensionsGetResponse = + VirtualMachineScaleSetVMExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetVMExtensionsListOptionalParams @@ -10092,7 +10138,8 @@ export interface VirtualMachineScaleSetVMExtensionsListOptionalParams } /** Contains response data for the list operation. */ -export type VirtualMachineScaleSetVMExtensionsListResponse = VirtualMachineScaleSetVMExtensionsListResult; +export type VirtualMachineScaleSetVMExtensionsListResponse = + VirtualMachineScaleSetVMExtensionsListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsReimageOptionalParams @@ -10124,7 +10171,8 @@ export interface VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams } /** Contains response data for the approveRollingUpgrade operation. */ -export type VirtualMachineScaleSetVMsApproveRollingUpgradeResponse = VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders; +export type VirtualMachineScaleSetVMsApproveRollingUpgradeResponse = + VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsDeallocateOptionalParams @@ -10177,7 +10225,8 @@ export interface VirtualMachineScaleSetVMsGetInstanceViewOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getInstanceView operation. */ -export type VirtualMachineScaleSetVMsGetInstanceViewResponse = VirtualMachineScaleSetVMInstanceView; +export type VirtualMachineScaleSetVMsGetInstanceViewResponse = + VirtualMachineScaleSetVMInstanceView; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsListOptionalParams @@ -10191,7 +10240,8 @@ export interface VirtualMachineScaleSetVMsListOptionalParams } /** Contains response data for the list operation. */ -export type VirtualMachineScaleSetVMsListResponse = VirtualMachineScaleSetVMListResult; +export type VirtualMachineScaleSetVMsListResponse = + VirtualMachineScaleSetVMListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsPowerOffOptionalParams @@ -10239,7 +10289,8 @@ export interface VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalPar } /** Contains response data for the retrieveBootDiagnosticsData operation. */ -export type VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResponse = RetrieveBootDiagnosticsDataResult; +export type VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResponse = + RetrieveBootDiagnosticsDataResult; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams @@ -10264,7 +10315,8 @@ export interface VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams } /** Contains response data for the attachDetachDataDisks operation. */ -export type VirtualMachineScaleSetVMsAttachDetachDataDisksResponse = StorageProfile; +export type VirtualMachineScaleSetVMsAttachDetachDataDisksResponse = + StorageProfile; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsRunCommandOptionalParams @@ -10283,7 +10335,8 @@ export interface VirtualMachineScaleSetVMsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type VirtualMachineScaleSetVMsListNextResponse = VirtualMachineScaleSetVMListResult; +export type VirtualMachineScaleSetVMsListNextResponse = + VirtualMachineScaleSetVMListResult; /** Optional parameters. */ export interface VirtualMachineExtensionsCreateOrUpdateOptionalParams @@ -10295,7 +10348,8 @@ export interface VirtualMachineExtensionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineExtensionsCreateOrUpdateResponse = VirtualMachineExtension; +export type VirtualMachineExtensionsCreateOrUpdateResponse = + VirtualMachineExtension; /** Optional parameters. */ export interface VirtualMachineExtensionsUpdateOptionalParams @@ -10336,7 +10390,8 @@ export interface VirtualMachineExtensionsListOptionalParams } /** Contains response data for the list operation. */ -export type VirtualMachineExtensionsListResponse = VirtualMachineExtensionsListResult; +export type VirtualMachineExtensionsListResponse = + VirtualMachineExtensionsListResult; /** Optional parameters. */ export interface VirtualMachinesListByLocationOptionalParams @@ -10472,7 +10527,8 @@ export interface VirtualMachinesListAvailableSizesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAvailableSizes operation. */ -export type VirtualMachinesListAvailableSizesResponse = VirtualMachineSizeListResult; +export type VirtualMachinesListAvailableSizesResponse = + VirtualMachineSizeListResult; /** Optional parameters. */ export interface VirtualMachinesPowerOffOptionalParams @@ -10540,7 +10596,8 @@ export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams } /** Contains response data for the retrieveBootDiagnosticsData operation. */ -export type VirtualMachinesRetrieveBootDiagnosticsDataResponse = RetrieveBootDiagnosticsDataResult; +export type VirtualMachinesRetrieveBootDiagnosticsDataResponse = + RetrieveBootDiagnosticsDataResult; /** Optional parameters. */ export interface VirtualMachinesPerformMaintenanceOptionalParams @@ -10565,7 +10622,8 @@ export interface VirtualMachinesAssessPatchesOptionalParams } /** Contains response data for the assessPatches operation. */ -export type VirtualMachinesAssessPatchesResponse = VirtualMachineAssessPatchesResult; +export type VirtualMachinesAssessPatchesResponse = + VirtualMachineAssessPatchesResult; /** Optional parameters. */ export interface VirtualMachinesInstallPatchesOptionalParams @@ -10577,7 +10635,8 @@ export interface VirtualMachinesInstallPatchesOptionalParams } /** Contains response data for the installPatches operation. */ -export type VirtualMachinesInstallPatchesResponse = VirtualMachineInstallPatchesResult; +export type VirtualMachinesInstallPatchesResponse = + VirtualMachineInstallPatchesResult; /** Optional parameters. */ export interface VirtualMachinesAttachDetachDataDisksOptionalParams @@ -10608,7 +10667,8 @@ export interface VirtualMachinesListByLocationNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByLocationNext operation. */ -export type VirtualMachinesListByLocationNextResponse = VirtualMachineListResult; +export type VirtualMachinesListByLocationNextResponse = + VirtualMachineListResult; /** Optional parameters. */ export interface VirtualMachinesListNextOptionalParams @@ -10648,28 +10708,32 @@ export interface VirtualMachineImagesListOffersOptionalParams 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 {} /** Contains response data for the listPublishers operation. */ -export type VirtualMachineImagesListPublishersResponse = VirtualMachineImageResource[]; +export type VirtualMachineImagesListPublishersResponse = + VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesListSkusOptionalParams 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 {} /** Contains response data for the listByEdgeZone operation. */ -export type VirtualMachineImagesListByEdgeZoneResponse = VmImagesInEdgeZoneListResult; +export type VirtualMachineImagesListByEdgeZoneResponse = + VmImagesInEdgeZoneListResult; /** Optional parameters. */ export interface VirtualMachineImagesEdgeZoneGetOptionalParams @@ -10690,42 +10754,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 {} /** Contains response data for the listOffers operation. */ -export type VirtualMachineImagesEdgeZoneListOffersResponse = VirtualMachineImageResource[]; +export type VirtualMachineImagesEdgeZoneListOffersResponse = + VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesEdgeZoneListPublishersOptionalParams 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 {} /** Contains response data for the listSkus operation. */ -export type VirtualMachineImagesEdgeZoneListSkusResponse = VirtualMachineImageResource[]; +export type VirtualMachineImagesEdgeZoneListSkusResponse = + VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineExtensionImagesGetOptionalParams 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 {} /** Contains response data for the listTypes operation. */ -export type VirtualMachineExtensionImagesListTypesResponse = VirtualMachineExtensionImage[]; +export type VirtualMachineExtensionImagesListTypesResponse = + VirtualMachineExtensionImage[]; /** Optional parameters. */ export interface VirtualMachineExtensionImagesListVersionsOptionalParams @@ -10737,7 +10807,8 @@ export interface VirtualMachineExtensionImagesListVersionsOptionalParams } /** Contains response data for the listVersions operation. */ -export type VirtualMachineExtensionImagesListVersionsResponse = VirtualMachineExtensionImage[]; +export type VirtualMachineExtensionImagesListVersionsResponse = + VirtualMachineExtensionImage[]; /** Optional parameters. */ export interface AvailabilitySetsCreateOrUpdateOptionalParams @@ -10772,7 +10843,8 @@ export interface AvailabilitySetsListBySubscriptionOptionalParams } /** Contains response data for the listBySubscription operation. */ -export type AvailabilitySetsListBySubscriptionResponse = AvailabilitySetListResult; +export type AvailabilitySetsListBySubscriptionResponse = + AvailabilitySetListResult; /** Optional parameters. */ export interface AvailabilitySetsListOptionalParams @@ -10786,14 +10858,16 @@ export interface AvailabilitySetsListAvailableSizesOptionalParams 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 {} /** Contains response data for the listBySubscriptionNext operation. */ -export type AvailabilitySetsListBySubscriptionNextResponse = AvailabilitySetListResult; +export type AvailabilitySetsListBySubscriptionNextResponse = + AvailabilitySetListResult; /** Optional parameters. */ export interface AvailabilitySetsListNextOptionalParams @@ -10807,7 +10881,8 @@ export interface ProximityPlacementGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ProximityPlacementGroupsCreateOrUpdateResponse = ProximityPlacementGroup; +export type ProximityPlacementGroupsCreateOrUpdateResponse = + ProximityPlacementGroup; /** Optional parameters. */ export interface ProximityPlacementGroupsUpdateOptionalParams @@ -10835,28 +10910,32 @@ export interface ProximityPlacementGroupsListBySubscriptionOptionalParams 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 {} /** Contains response data for the listByResourceGroup operation. */ -export type ProximityPlacementGroupsListByResourceGroupResponse = ProximityPlacementGroupListResult; +export type ProximityPlacementGroupsListByResourceGroupResponse = + ProximityPlacementGroupListResult; /** Optional parameters. */ export interface ProximityPlacementGroupsListBySubscriptionNextOptionalParams 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 {} /** Contains response data for the listByResourceGroupNext operation. */ -export type ProximityPlacementGroupsListByResourceGroupNextResponse = ProximityPlacementGroupListResult; +export type ProximityPlacementGroupsListByResourceGroupNextResponse = + ProximityPlacementGroupListResult; /** Optional parameters. */ export interface DedicatedHostGroupsCreateOrUpdateOptionalParams @@ -10891,28 +10970,32 @@ export interface DedicatedHostGroupsListByResourceGroupOptionalParams 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 {} /** Contains response data for the listBySubscription operation. */ -export type DedicatedHostGroupsListBySubscriptionResponse = DedicatedHostGroupListResult; +export type DedicatedHostGroupsListBySubscriptionResponse = + DedicatedHostGroupListResult; /** Optional parameters. */ export interface DedicatedHostGroupsListByResourceGroupNextOptionalParams 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 {} /** Contains response data for the listBySubscriptionNext operation. */ -export type DedicatedHostGroupsListBySubscriptionNextResponse = DedicatedHostGroupListResult; +export type DedicatedHostGroupsListBySubscriptionNextResponse = + DedicatedHostGroupListResult; /** Optional parameters. */ export interface DedicatedHostsCreateOrUpdateOptionalParams @@ -10990,7 +11073,8 @@ export interface DedicatedHostsListAvailableSizesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAvailableSizes operation. */ -export type DedicatedHostsListAvailableSizesResponse = DedicatedHostSizeListResult; +export type DedicatedHostsListAvailableSizesResponse = + DedicatedHostSizeListResult; /** Optional parameters. */ export interface DedicatedHostsListByHostGroupNextOptionalParams @@ -11004,14 +11088,16 @@ export interface SshPublicKeysListBySubscriptionOptionalParams 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 {} /** Contains response data for the listByResourceGroup operation. */ -export type SshPublicKeysListByResourceGroupResponse = SshPublicKeysGroupListResult; +export type SshPublicKeysListByResourceGroupResponse = + SshPublicKeysGroupListResult; /** Optional parameters. */ export interface SshPublicKeysCreateOptionalParams @@ -11046,21 +11132,24 @@ export interface SshPublicKeysGenerateKeyPairOptionalParams } /** Contains response data for the generateKeyPair operation. */ -export type SshPublicKeysGenerateKeyPairResponse = SshPublicKeyGenerateKeyPairResult; +export type SshPublicKeysGenerateKeyPairResponse = + SshPublicKeyGenerateKeyPairResult; /** Optional parameters. */ export interface SshPublicKeysListBySubscriptionNextOptionalParams 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 {} /** Contains response data for the listByResourceGroupNext operation. */ -export type SshPublicKeysListByResourceGroupNextResponse = SshPublicKeysGroupListResult; +export type SshPublicKeysListByResourceGroupNextResponse = + SshPublicKeysGroupListResult; /** Optional parameters. */ export interface ImagesCreateOrUpdateOptionalParams @@ -11136,7 +11225,8 @@ export interface RestorePointCollectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type RestorePointCollectionsCreateOrUpdateResponse = RestorePointCollection; +export type RestorePointCollectionsCreateOrUpdateResponse = + RestorePointCollection; /** Optional parameters. */ export interface RestorePointCollectionsUpdateOptionalParams @@ -11169,28 +11259,32 @@ export interface RestorePointCollectionsListOptionalParams 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 {} /** Contains response data for the listAll operation. */ -export type RestorePointCollectionsListAllResponse = RestorePointCollectionListResult; +export type RestorePointCollectionsListAllResponse = + RestorePointCollectionListResult; /** Optional parameters. */ export interface RestorePointCollectionsListNextOptionalParams 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 {} /** Contains response data for the listAllNext operation. */ -export type RestorePointCollectionsListAllNextResponse = RestorePointCollectionListResult; +export type RestorePointCollectionsListAllNextResponse = + RestorePointCollectionListResult; /** Optional parameters. */ export interface RestorePointsCreateOptionalParams @@ -11228,7 +11322,8 @@ export interface CapacityReservationGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type CapacityReservationGroupsCreateOrUpdateResponse = CapacityReservationGroup; +export type CapacityReservationGroupsCreateOrUpdateResponse = + CapacityReservationGroup; /** Optional parameters. */ export interface CapacityReservationGroupsUpdateOptionalParams @@ -11259,7 +11354,8 @@ export interface CapacityReservationGroupsListByResourceGroupOptionalParams } /** Contains response data for the listByResourceGroup operation. */ -export type CapacityReservationGroupsListByResourceGroupResponse = CapacityReservationGroupListResult; +export type CapacityReservationGroupsListByResourceGroupResponse = + CapacityReservationGroupListResult; /** Optional parameters. */ export interface CapacityReservationGroupsListBySubscriptionOptionalParams @@ -11269,21 +11365,24 @@ export interface CapacityReservationGroupsListBySubscriptionOptionalParams } /** Contains response data for the listBySubscription operation. */ -export type CapacityReservationGroupsListBySubscriptionResponse = CapacityReservationGroupListResult; +export type CapacityReservationGroupsListBySubscriptionResponse = + CapacityReservationGroupListResult; /** Optional parameters. */ export interface CapacityReservationGroupsListByResourceGroupNextOptionalParams 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 {} /** Contains response data for the listBySubscriptionNext operation. */ -export type CapacityReservationGroupsListBySubscriptionNextResponse = CapacityReservationGroupListResult; +export type CapacityReservationGroupsListBySubscriptionNextResponse = + CapacityReservationGroupListResult; /** Optional parameters. */ export interface CapacityReservationsCreateOrUpdateOptionalParams @@ -11333,14 +11432,16 @@ export interface CapacityReservationsListByCapacityReservationGroupOptionalParam 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 {} /** Contains response data for the listByCapacityReservationGroupNext operation. */ -export type CapacityReservationsListByCapacityReservationGroupNextResponse = CapacityReservationListResult; +export type CapacityReservationsListByCapacityReservationGroupNextResponse = + CapacityReservationListResult; /** Optional parameters. */ export interface LogAnalyticsExportRequestRateByIntervalOptionalParams @@ -11352,7 +11453,8 @@ export interface LogAnalyticsExportRequestRateByIntervalOptionalParams } /** Contains response data for the exportRequestRateByInterval operation. */ -export type LogAnalyticsExportRequestRateByIntervalResponse = LogAnalyticsOperationResult; +export type LogAnalyticsExportRequestRateByIntervalResponse = + LogAnalyticsOperationResult; /** Optional parameters. */ export interface LogAnalyticsExportThrottledRequestsOptionalParams @@ -11364,7 +11466,8 @@ export interface LogAnalyticsExportThrottledRequestsOptionalParams } /** Contains response data for the exportThrottledRequests operation. */ -export type LogAnalyticsExportThrottledRequestsResponse = LogAnalyticsOperationResult; +export type LogAnalyticsExportThrottledRequestsResponse = + LogAnalyticsOperationResult; /** Optional parameters. */ export interface VirtualMachineRunCommandsListOptionalParams @@ -11390,7 +11493,8 @@ export interface VirtualMachineRunCommandsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineRunCommandsCreateOrUpdateResponse = VirtualMachineRunCommand; +export type VirtualMachineRunCommandsCreateOrUpdateResponse = + VirtualMachineRunCommand; /** Optional parameters. */ export interface VirtualMachineRunCommandsUpdateOptionalParams @@ -11421,7 +11525,8 @@ export interface VirtualMachineRunCommandsGetByVirtualMachineOptionalParams } /** Contains response data for the getByVirtualMachine operation. */ -export type VirtualMachineRunCommandsGetByVirtualMachineResponse = VirtualMachineRunCommand; +export type VirtualMachineRunCommandsGetByVirtualMachineResponse = + VirtualMachineRunCommand; /** Optional parameters. */ export interface VirtualMachineRunCommandsListByVirtualMachineOptionalParams @@ -11431,7 +11536,8 @@ export interface VirtualMachineRunCommandsListByVirtualMachineOptionalParams } /** Contains response data for the listByVirtualMachine operation. */ -export type VirtualMachineRunCommandsListByVirtualMachineResponse = VirtualMachineRunCommandsListResult; +export type VirtualMachineRunCommandsListByVirtualMachineResponse = + VirtualMachineRunCommandsListResult; /** Optional parameters. */ export interface VirtualMachineRunCommandsListNextOptionalParams @@ -11445,7 +11551,8 @@ export interface VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByVirtualMachineNext operation. */ -export type VirtualMachineRunCommandsListByVirtualMachineNextResponse = VirtualMachineRunCommandsListResult; +export type VirtualMachineRunCommandsListByVirtualMachineNextResponse = + VirtualMachineRunCommandsListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams @@ -11457,7 +11564,8 @@ export interface VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse = VirtualMachineRunCommand; +export type VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse = + VirtualMachineRunCommand; /** Optional parameters. */ export interface VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams @@ -11469,7 +11577,8 @@ export interface VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type VirtualMachineScaleSetVMRunCommandsUpdateResponse = VirtualMachineRunCommand; +export type VirtualMachineScaleSetVMRunCommandsUpdateResponse = + VirtualMachineRunCommand; /** Optional parameters. */ export interface VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams @@ -11488,7 +11597,8 @@ export interface VirtualMachineScaleSetVMRunCommandsGetOptionalParams } /** Contains response data for the get operation. */ -export type VirtualMachineScaleSetVMRunCommandsGetResponse = VirtualMachineRunCommand; +export type VirtualMachineScaleSetVMRunCommandsGetResponse = + VirtualMachineRunCommand; /** Optional parameters. */ export interface VirtualMachineScaleSetVMRunCommandsListOptionalParams @@ -11498,14 +11608,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 {} /** Contains response data for the listNext operation. */ -export type VirtualMachineScaleSetVMRunCommandsListNextResponse = VirtualMachineRunCommandsListResult; +export type VirtualMachineScaleSetVMRunCommandsListNextResponse = + VirtualMachineRunCommandsListResult; /** Optional parameters. */ export interface DisksCreateOrUpdateOptionalParams @@ -11651,7 +11763,8 @@ export interface DiskAccessesGetPrivateLinkResourcesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getPrivateLinkResources operation. */ -export type DiskAccessesGetPrivateLinkResourcesResponse = PrivateLinkResourceListResult; +export type DiskAccessesGetPrivateLinkResourcesResponse = + PrivateLinkResourceListResult; /** Optional parameters. */ export interface DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams @@ -11663,14 +11776,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 {} /** Contains response data for the getAPrivateEndpointConnection operation. */ -export type DiskAccessesGetAPrivateEndpointConnectionResponse = PrivateEndpointConnection; +export type DiskAccessesGetAPrivateEndpointConnectionResponse = + PrivateEndpointConnection; /** Optional parameters. */ export interface DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams @@ -11686,7 +11801,8 @@ export interface DiskAccessesListPrivateEndpointConnectionsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listPrivateEndpointConnections operation. */ -export type DiskAccessesListPrivateEndpointConnectionsResponse = PrivateEndpointConnectionListResult; +export type DiskAccessesListPrivateEndpointConnectionsResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface DiskAccessesListByResourceGroupNextOptionalParams @@ -11707,7 +11823,8 @@ export interface DiskAccessesListPrivateEndpointConnectionsNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listPrivateEndpointConnectionsNext operation. */ -export type DiskAccessesListPrivateEndpointConnectionsNextResponse = PrivateEndpointConnectionListResult; +export type DiskAccessesListPrivateEndpointConnectionsNextResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface DiskEncryptionSetsCreateOrUpdateOptionalParams @@ -11754,7 +11871,8 @@ export interface DiskEncryptionSetsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type DiskEncryptionSetsListByResourceGroupResponse = DiskEncryptionSetList; +export type DiskEncryptionSetsListByResourceGroupResponse = + DiskEncryptionSetList; /** Optional parameters. */ export interface DiskEncryptionSetsListOptionalParams @@ -11775,7 +11893,8 @@ export interface DiskEncryptionSetsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type DiskEncryptionSetsListByResourceGroupNextResponse = DiskEncryptionSetList; +export type DiskEncryptionSetsListByResourceGroupNextResponse = + DiskEncryptionSetList; /** Optional parameters. */ export interface DiskEncryptionSetsListNextOptionalParams @@ -11789,7 +11908,8 @@ export interface DiskEncryptionSetsListAssociatedResourcesNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAssociatedResourcesNext operation. */ -export type DiskEncryptionSetsListAssociatedResourcesNextResponse = ResourceUriList; +export type DiskEncryptionSetsListAssociatedResourcesNextResponse = + ResourceUriList; /** Optional parameters. */ export interface DiskRestorePointGetOptionalParams @@ -11831,7 +11951,8 @@ export interface DiskRestorePointListByRestorePointNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByRestorePointNext operation. */ -export type DiskRestorePointListByRestorePointNextResponse = DiskRestorePointList; +export type DiskRestorePointListByRestorePointNextResponse = + DiskRestorePointList; /** Optional parameters. */ export interface SnapshotsCreateOrUpdateOptionalParams @@ -12116,14 +12237,16 @@ export interface GalleryImageVersionsListByGalleryImageOptionalParams 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 {} /** Contains response data for the listByGalleryImageNext operation. */ -export type GalleryImageVersionsListByGalleryImageNextResponse = GalleryImageVersionList; +export type GalleryImageVersionsListByGalleryImageNextResponse = + GalleryImageVersionList; /** Optional parameters. */ export interface GalleryApplicationsCreateOrUpdateOptionalParams @@ -12177,7 +12300,8 @@ export interface GalleryApplicationsListByGalleryNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryNext operation. */ -export type GalleryApplicationsListByGalleryNextResponse = GalleryApplicationList; +export type GalleryApplicationsListByGalleryNextResponse = + GalleryApplicationList; /** Optional parameters. */ export interface GalleryApplicationVersionsCreateOrUpdateOptionalParams @@ -12189,7 +12313,8 @@ export interface GalleryApplicationVersionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type GalleryApplicationVersionsCreateOrUpdateResponse = GalleryApplicationVersion; +export type GalleryApplicationVersionsCreateOrUpdateResponse = + GalleryApplicationVersion; /** Optional parameters. */ export interface GalleryApplicationVersionsUpdateOptionalParams @@ -12201,7 +12326,8 @@ export interface GalleryApplicationVersionsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type GalleryApplicationVersionsUpdateResponse = GalleryApplicationVersion; +export type GalleryApplicationVersionsUpdateResponse = + GalleryApplicationVersion; /** Optional parameters. */ export interface GalleryApplicationVersionsGetOptionalParams @@ -12227,14 +12353,16 @@ export interface GalleryApplicationVersionsListByGalleryApplicationOptionalParam 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 {} /** Contains response data for the listByGalleryApplicationNext operation. */ -export type GalleryApplicationVersionsListByGalleryApplicationNextResponse = GalleryApplicationVersionList; +export type GalleryApplicationVersionsListByGalleryApplicationNextResponse = + GalleryApplicationVersionList; /** Optional parameters. */ export interface GallerySharingProfileUpdateOptionalParams @@ -12304,7 +12432,8 @@ export interface SharedGalleryImageVersionsListOptionalParams } /** Contains response data for the list operation. */ -export type SharedGalleryImageVersionsListResponse = SharedGalleryImageVersionList; +export type SharedGalleryImageVersionsListResponse = + SharedGalleryImageVersionList; /** Optional parameters. */ export interface SharedGalleryImageVersionsGetOptionalParams @@ -12318,7 +12447,8 @@ export interface SharedGalleryImageVersionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SharedGalleryImageVersionsListNextResponse = SharedGalleryImageVersionList; +export type SharedGalleryImageVersionsListNextResponse = + SharedGalleryImageVersionList; /** Optional parameters. */ export interface CommunityGalleriesGetOptionalParams @@ -12353,21 +12483,24 @@ export interface CommunityGalleryImageVersionsGetOptionalParams 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 {} /** Contains response data for the list operation. */ -export type CommunityGalleryImageVersionsListResponse = CommunityGalleryImageVersionList; +export type CommunityGalleryImageVersionsListResponse = + CommunityGalleryImageVersionList; /** Optional parameters. */ export interface CommunityGalleryImageVersionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type CommunityGalleryImageVersionsListNextResponse = CommunityGalleryImageVersionList; +export type CommunityGalleryImageVersionsListNextResponse = + CommunityGalleryImageVersionList; /** Optional parameters. */ export interface CloudServiceRoleInstancesDeleteOptionalParams @@ -12646,14 +12779,16 @@ export interface CloudServicesUpdateDomainListUpdateDomainsOptionalParams 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 {} /** Contains response data for the listUpdateDomainsNext operation. */ -export type CloudServicesUpdateDomainListUpdateDomainsNextResponse = UpdateDomainListResult; +export type CloudServicesUpdateDomainListUpdateDomainsNextResponse = + UpdateDomainListResult; /** Optional parameters. */ export interface CloudServiceOperatingSystemsGetOSVersionOptionalParams @@ -12667,7 +12802,8 @@ export interface CloudServiceOperatingSystemsListOSVersionsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listOSVersions operation. */ -export type CloudServiceOperatingSystemsListOSVersionsResponse = OSVersionListResult; +export type CloudServiceOperatingSystemsListOSVersionsResponse = + OSVersionListResult; /** Optional parameters. */ export interface CloudServiceOperatingSystemsGetOSFamilyOptionalParams @@ -12681,21 +12817,24 @@ export interface CloudServiceOperatingSystemsListOSFamiliesOptionalParams 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 {} /** Contains response data for the listOSVersionsNext operation. */ -export type CloudServiceOperatingSystemsListOSVersionsNextResponse = OSVersionListResult; +export type CloudServiceOperatingSystemsListOSVersionsNextResponse = + OSVersionListResult; /** Optional parameters. */ export interface CloudServiceOperatingSystemsListOSFamiliesNextOptionalParams 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 6e44ec8a9453..ad8d12f7556f 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,29 +539,29 @@ 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" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const AutomaticRepairsPolicy: coreClient.CompositeMapper = { @@ -572,23 +572,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 = { @@ -600,126 +600,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" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const VirtualMachineScaleSetOSProfile: coreClient.CompositeMapper = { @@ -730,40 +730,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", @@ -772,25 +772,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 = { @@ -801,20 +801,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", @@ -823,33 +823,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 = { @@ -862,32 +862,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 = { @@ -898,52 +898,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: { @@ -957,13 +958,13 @@ export const WinRMConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "WinRMListener" - } - } - } - } - } - } + className: "WinRMListener", + }, + }, + }, + }, + }, + }, }; export const WinRMListener: coreClient.CompositeMapper = { @@ -975,17 +976,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 = { @@ -996,37 +997,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 = { @@ -1041,13 +1042,13 @@ export const SshConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SshPublicKey" - } - } - } - } - } - } + className: "SshPublicKey", + }, + }, + }, + }, + }, + }, }; export const SshPublicKey: coreClient.CompositeMapper = { @@ -1058,17 +1059,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 = { @@ -1079,46 +1080,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: { @@ -1129,8 +1131,8 @@ export const VaultSecretGroup: coreClient.CompositeMapper = { serializedName: "sourceVault", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, vaultCertificates: { serializedName: "vaultCertificates", @@ -1139,13 +1141,13 @@ export const VaultSecretGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VaultCertificate" - } - } - } - } - } - } + className: "VaultCertificate", + }, + }, + }, + }, + }, + }, }; export const SubResource: coreClient.CompositeMapper = { @@ -1156,11 +1158,11 @@ export const SubResource: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VaultCertificate: coreClient.CompositeMapper = { @@ -1171,59 +1173,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: { @@ -1233,55 +1236,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", @@ -1289,26 +1292,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 = { @@ -1319,17 +1322,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 = { @@ -1340,41 +1343,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: { @@ -1384,18 +1388,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 = { @@ -1406,104 +1410,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" - } - }, - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfiguration" - } - } - } - }, - networkApiVersion: { - serializedName: "networkApiVersion", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +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", + }, + }, + }, + }, + }; export const ApiEntityReference: coreClient.CompositeMapper = { type: { @@ -1513,302 +1518,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: { @@ -1818,17 +1829,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 = { @@ -1839,17 +1850,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 = { @@ -1861,37 +1872,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" - } + className: "EncryptionIdentity", + }, }, proxyAgentSettings: { serializedName: "proxyAgentSettings", type: { name: "Composite", - className: "ProxyAgentSettings" - } - } - } - } + className: "ProxyAgentSettings", + }, + }, + }, + }, }; export const UefiSettings: coreClient.CompositeMapper = { @@ -1902,17 +1913,17 @@ export const UefiSettings: coreClient.CompositeMapper = { secureBootEnabled: { serializedName: "secureBootEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, vTpmEnabled: { serializedName: "vTpmEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const EncryptionIdentity: coreClient.CompositeMapper = { @@ -1923,11 +1934,11 @@ export const EncryptionIdentity: coreClient.CompositeMapper = { userAssignedIdentityResourceId: { serializedName: "userAssignedIdentityResourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProxyAgentSettings: coreClient.CompositeMapper = { @@ -1938,23 +1949,23 @@ export const ProxyAgentSettings: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, mode: { serializedName: "mode", type: { - name: "String" - } + name: "String", + }, }, keyIncarnationId: { serializedName: "keyIncarnationId", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const DiagnosticsProfile: coreClient.CompositeMapper = { @@ -1966,11 +1977,11 @@ export const DiagnosticsProfile: coreClient.CompositeMapper = { serializedName: "bootDiagnostics", type: { name: "Composite", - className: "BootDiagnostics" - } - } - } - } + className: "BootDiagnostics", + }, + }, + }, + }, }; export const BootDiagnostics: coreClient.CompositeMapper = { @@ -1981,45 +1992,46 @@ export const BootDiagnostics: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + 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" - } - } - } + name: "String", + }, }, - extensionsTimeBudget: { - serializedName: "extensionsTimeBudget", - 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: { @@ -2030,18 +2042,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 = { @@ -2053,11 +2065,11 @@ export const SubResourceReadOnly: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BillingProfile: coreClient.CompositeMapper = { @@ -2068,11 +2080,11 @@ export const BillingProfile: coreClient.CompositeMapper = { maxPrice: { serializedName: "maxPrice", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ScheduledEventsProfile: coreClient.CompositeMapper = { @@ -2084,18 +2096,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 = { @@ -2106,17 +2118,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 = { @@ -2127,17 +2139,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 = { @@ -2149,11 +2161,11 @@ export const CapacityReservationProfile: coreClient.CompositeMapper = { serializedName: "capacityReservationGroup", type: { name: "Composite", - className: "SubResource" - } - } - } - } + className: "SubResource", + }, + }, + }, + }, }; export const ApplicationProfile: coreClient.CompositeMapper = { @@ -2168,13 +2180,13 @@ export const ApplicationProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VMGalleryApplication" - } - } - } - } - } - } + className: "VMGalleryApplication", + }, + }, + }, + }, + }, + }, }; export const VMGalleryApplication: coreClient.CompositeMapper = { @@ -2185,59 +2197,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: { @@ -2247,17 +2260,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 = { @@ -2268,11 +2281,11 @@ export const ServiceArtifactReference: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SecurityPostureReference: coreClient.CompositeMapper = { @@ -2283,8 +2296,8 @@ export const SecurityPostureReference: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, excludeExtensions: { serializedName: "excludeExtensions", @@ -2293,13 +2306,13 @@ export const SecurityPostureReference: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtension" - } - } - } - } - } - } + className: "VirtualMachineExtension", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { @@ -2310,20 +2323,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", @@ -2332,10 +2345,10 @@ export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } + className: "InstanceViewStatus", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -2344,13 +2357,13 @@ export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const InstanceViewStatus: coreClient.CompositeMapper = { @@ -2361,36 +2374,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 = { @@ -2401,39 +2414,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 = { @@ -2444,17 +2457,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 = { @@ -2468,19 +2481,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 = { @@ -2491,17 +2504,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 = { @@ -2511,25 +2524,25 @@ 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 = { @@ -2541,18 +2554,18 @@ export const ResiliencyPolicy: coreClient.CompositeMapper = { serializedName: "resilientVMCreationPolicy", type: { name: "Composite", - className: "ResilientVMCreationPolicy" - } + className: "ResilientVMCreationPolicy", + }, }, resilientVMDeletionPolicy: { serializedName: "resilientVMDeletionPolicy", type: { name: "Composite", - className: "ResilientVMDeletionPolicy" - } - } - } - } + className: "ResilientVMDeletionPolicy", + }, + }, + }, + }, }; export const ResilientVMCreationPolicy: coreClient.CompositeMapper = { @@ -2563,11 +2576,11 @@ export const ResilientVMCreationPolicy: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ResilientVMDeletionPolicy: coreClient.CompositeMapper = { @@ -2578,11 +2591,11 @@ export const ResilientVMDeletionPolicy: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { @@ -2594,15 +2607,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", @@ -2612,9 +2625,9 @@ export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", - "None" - ] - } + "None", + ], + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", @@ -2623,13 +2636,13 @@ export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { value: { type: { name: "Composite", - className: "UserAssignedIdentitiesValue" - } - } - } - } - } - } + className: "UserAssignedIdentitiesValue", + }, + }, + }, + }, + }, + }, }; export const UserAssignedIdentitiesValue: coreClient.CompositeMapper = { @@ -2641,18 +2654,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 = { @@ -2663,17 +2676,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 = { @@ -2685,206 +2698,209 @@ 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" } } - } - } - } - } -}; - -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" - } + value: { type: { name: "String" } }, + }, }, - 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" - } + }, + }, +}; + +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", + }, + }, }, - osDisk: { - serializedName: "osDisk", - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateOSDisk" - } + }, + }; + +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", + }, + }, + }, + }, }, - dataDisks: { - serializedName: "dataDisks", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetDataDisk" - } - } - } + }, + }; + +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", + }, + }, }, - diskControllerType: { - serializedName: "diskControllerType", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const VirtualMachineScaleSetUpdateOSDisk: coreClient.CompositeMapper = { type: { @@ -2895,27 +2911,27 @@ export const VirtualMachineScaleSetUpdateOSDisk: coreClient.CompositeMapper = { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, diskSizeGB: { serializedName: "diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, image: { serializedName: "image", type: { name: "Composite", - className: "VirtualHardDisk" - } + className: "VirtualHardDisk", + }, }, vhdContainers: { serializedName: "vhdContainers", @@ -2923,296 +2939,301 @@ export const VirtualMachineScaleSetUpdateOSDisk: 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 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", + }, + }, + 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", + }, + }, + }, + }, + }; -export const VirtualMachineScaleSetUpdateNetworkProfile: coreClient.CompositeMapper = { +export const UpdateResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkProfile", + className: "UpdateResource", modelProperties: { - healthProbe: { - serializedName: "healthProbe", - type: { - name: "Composite", - className: "ApiEntityReference" - } - }, - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkConfiguration" - } - } - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - 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" - } - }, - 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" - } - } - } - } -}; - -export const UpdateResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpdateResource", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + }, + }, }; export const VirtualMachineScaleSetVMInstanceIDs: coreClient.CompositeMapper = { @@ -3226,35 +3247,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: { @@ -3265,8 +3287,8 @@ export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { serializedName: "virtualMachine", type: { name: "Composite", - className: "VirtualMachineScaleSetInstanceViewStatusesSummary" - } + className: "VirtualMachineScaleSetInstanceViewStatusesSummary", + }, }, extensions: { serializedName: "extensions", @@ -3276,10 +3298,10 @@ export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineScaleSetVMExtensionsSummary" - } - } - } + className: "VirtualMachineScaleSetVMExtensionsSummary", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -3288,10 +3310,10 @@ export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } + className: "InstanceViewStatus", + }, + }, + }, }, orchestrationServices: { serializedName: "orchestrationServices", @@ -3301,36 +3323,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: { @@ -3341,48 +3364,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: { @@ -3393,103 +3417,106 @@ 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: { @@ -3500,25 +3527,25 @@ export const VirtualMachineScaleSetSku: coreClient.CompositeMapper = { serializedName: "resourceType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, capacity: { serializedName: "capacity", type: { name: "Composite", - className: "VirtualMachineScaleSetSkuCapacity" - } - } - } - } + className: "VirtualMachineScaleSetSkuCapacity", + }, + }, + }, + }, }; export const VirtualMachineScaleSetSkuCapacity: coreClient.CompositeMapper = { @@ -3530,144 +3557,147 @@ export const VirtualMachineScaleSetSkuCapacity: coreClient.CompositeMapper = { serializedName: "minimum", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, maximum: { serializedName: "maximum", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, defaultCapacity: { serializedName: "defaultCapacity", readOnly: true, type: { - name: "Number" - } + 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", - type: { - name: "Composite", - className: "UpgradeOperationHistoricalStatusInfoProperties" - } - }, - type: { - 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" - } + allowedValues: ["Automatic", "None"], + }, }, - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ApiError" - } + }, + }, +}; + +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", + }, + }, }, - startedBy: { - serializedName: "startedBy", - readOnly: true, + }, + }; + +export const UpgradeOperationHistoricalStatusInfo: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "UpgradeOperationHistoricalStatusInfo", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "UpgradeOperationHistoricalStatusInfoProperties", + }, + }, type: { - name: "Enum", - allowedValues: ["Unknown", "User", "Platform"] - } + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String", + }, + }, }, - targetImageReference: { - serializedName: "targetImageReference", - type: { - name: "Composite", - className: "ImageReference" - } + }, + }; + +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", + }, + }, }, - rollbackInfo: { - serializedName: "rollbackInfo", - type: { - name: "Composite", - className: "RollbackStatusInfo" - } - } - } - } -}; + }, + }; export const UpgradeOperationHistoryStatus: coreClient.CompositeMapper = { type: { @@ -3679,25 +3709,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 = { @@ -3709,32 +3744,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 = { @@ -3746,25 +3781,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 = { @@ -3775,24 +3810,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 = { @@ -3803,17 +3838,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 = { @@ -3826,33 +3861,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 = { @@ -3864,34 +3904,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: { @@ -3902,168 +3943,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: { @@ -4073,8 +4116,8 @@ export const VirtualMachineAgentInstanceView: coreClient.CompositeMapper = { vmAgentVersion: { serializedName: "vmAgentVersion", type: { - name: "String" - } + name: "String", + }, }, extensionHandlers: { serializedName: "extensionHandlers", @@ -4083,10 +4126,10 @@ export const VirtualMachineAgentInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtensionHandlerInstanceView" - } - } - } + className: "VirtualMachineExtensionHandlerInstanceView", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -4095,42 +4138,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", - type: { - name: "String" - } - }, - typeHandlerVersion: { - serializedName: "typeHandlerVersion", +export const VirtualMachineExtensionHandlerInstanceView: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineExtensionHandlerInstanceView", + modelProperties: { 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: { @@ -4140,32 +4184,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", @@ -4175,18 +4219,18 @@ export const MaintenanceRedeployStatus: coreClient.CompositeMapper = { "None", "RetryLater", "MaintenanceAborted", - "MaintenanceCompleted" - ] - } + "MaintenanceCompleted", + ], + }, }, lastOperationMessage: { serializedName: "lastOperationMessage", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskInstanceView: coreClient.CompositeMapper = { @@ -4197,8 +4241,8 @@ export const DiskInstanceView: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, encryptionSettings: { serializedName: "encryptionSettings", @@ -4207,10 +4251,10 @@ export const DiskInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskEncryptionSettings" - } - } - } + className: "DiskEncryptionSettings", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -4219,13 +4263,13 @@ export const DiskInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const DiskEncryptionSettings: coreClient.CompositeMapper = { @@ -4237,24 +4281,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 = { @@ -4266,18 +4310,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 = { @@ -4289,11 +4333,11 @@ export const VirtualMachineHealthStatus: coreClient.CompositeMapper = { serializedName: "status", type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, }; export const BootDiagnosticsInstanceView: coreClient.CompositeMapper = { @@ -4305,25 +4349,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 = { @@ -4334,18 +4378,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 = { @@ -4357,15 +4401,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", @@ -4374,19 +4418,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 = { @@ -4398,84 +4442,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 = { @@ -4487,96 +4531,96 @@ 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", + }, }, 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 = { @@ -4587,424 +4631,92 @@ export const OSProfile: coreClient.CompositeMapper = { computerName: { serializedName: "computerName", type: { - name: "String" - } + name: "String", + }, }, adminUsername: { serializedName: "adminUsername", type: { - name: "String" - } - }, - adminPassword: { - serializedName: "adminPassword", - type: { - name: "String" - } - }, - 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" - } - } - } - }, - allowExtensionOperations: { - serializedName: "allowExtensionOperations", - type: { - name: "Boolean" - } - }, - requireGuestProvisionSignal: { - serializedName: "requireGuestProvisionSignal", - type: { - name: "Boolean" - } - } - } - } -}; - -export const NetworkProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkProfile", - modelProperties: { - networkInterfaces: { - serializedName: "networkInterfaces", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkInterfaceReference" - } - } - } - }, - networkApiVersion: { - serializedName: "networkApiVersion", - type: { - name: "String" - } - }, - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", - type: { - name: "Sequence", - 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", + name: "String", + }, + }, + adminPassword: { + serializedName: "adminPassword", type: { - name: "Composite", - className: "PublicIPAddressSku" - } + name: "String", + }, }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", + customData: { + serializedName: "customData", type: { - name: "Number" - } + name: "String", + }, }, - deleteOption: { - serializedName: "properties.deleteOption", + windowsConfiguration: { + serializedName: "windowsConfiguration", type: { - name: "String" - } + name: "Composite", + className: "WindowsConfiguration", + }, }, - dnsSettings: { - serializedName: "properties.dnsSettings", + linuxConfiguration: { + serializedName: "linuxConfiguration", type: { name: "Composite", - className: "VirtualMachinePublicIPAddressDnsSettingsConfiguration" - } + className: "LinuxConfiguration", + }, }, - ipTags: { - serializedName: "properties.ipTags", + secrets: { + serializedName: "secrets", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineIpTag" - } - } - } + className: "VaultSecretGroup", + }, + }, + }, }, - publicIPPrefix: { - serializedName: "properties.publicIPPrefix", + allowExtensionOperations: { + serializedName: "allowExtensionOperations", type: { - name: "Composite", - className: "SubResource" - } + name: "Boolean", + }, }, - publicIPAddressVersion: { - serializedName: "properties.publicIPAddressVersion", + requireGuestProvisionSignal: { + serializedName: "requireGuestProvisionSignal", type: { - name: "String" - } + name: "Boolean", + }, }, - publicIPAllocationMethod: { - serializedName: "properties.publicIPAllocationMethod", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const VirtualMachinePublicIPAddressDnsSettingsConfiguration: coreClient.CompositeMapper = { +export const NetworkProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachinePublicIPAddressDnsSettingsConfiguration", + className: "NetworkProfile", modelProperties: { - domainNameLabel: { - serializedName: "domainNameLabel", - required: true, + networkInterfaces: { + serializedName: "networkInterfaces", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterfaceReference", + }, + }, + }, }, - domainNameLabelScope: { - serializedName: "domainNameLabelScope", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineIpTag: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineIpTag", - modelProperties: { - ipTagType: { - serializedName: "ipTagType", + networkApiVersion: { + serializedName: "networkApiVersion", 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: { @@ -5012,35 +4724,374 @@ export const VirtualMachineScaleSetVMNetworkProfileConfiguration: coreClient.Com element: { type: { name: "Composite", - className: "VirtualMachineScaleSetNetworkConfiguration" - } - } - } - } - } - } -}; + 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", + }, + }, + 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", + }, + }, + }, + }, + }; + +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", + }, + }, + }, + }, + }; -export const VirtualMachineScaleSetVMProtectionPolicy: coreClient.CompositeMapper = { +export const VirtualMachineIpTag: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetVMProtectionPolicy", + className: "VirtualMachineIpTag", modelProperties: { - protectFromScaleIn: { - serializedName: "protectFromScaleIn", + ipTagType: { + serializedName: "ipTagType", type: { - name: "Boolean" - } + name: "String", + }, }, - protectFromScaleSetActions: { - serializedName: "protectFromScaleSetActions", + tag: { + serializedName: "tag", type: { - name: "Boolean" - } - } - } - } -}; + 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", + }, + }, + protectFromScaleSetActions: { + serializedName: "protectFromScaleSetActions", + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const VirtualMachineIdentity: coreClient.CompositeMapper = { type: { @@ -5051,15 +5102,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", @@ -5069,9 +5120,9 @@ export const VirtualMachineIdentity: coreClient.CompositeMapper = { "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", - "None" - ] - } + "None", + ], + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", @@ -5080,13 +5131,13 @@ export const VirtualMachineIdentity: coreClient.CompositeMapper = { value: { type: { name: "Composite", - className: "UserAssignedIdentitiesValue" - } - } - } - } - } - } + className: "UserAssignedIdentitiesValue", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineScaleSetVMListResult: coreClient.CompositeMapper = { @@ -5102,19 +5153,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 = { @@ -5126,18 +5177,18 @@ 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 = { @@ -5147,7 +5198,7 @@ export const AttachDetachDataDisksRequest: coreClient.CompositeMapper = { modelProperties: { dataDisksToAttach: { constraints: { - MinItems: 1 + MinItems: 1, }, serializedName: "dataDisksToAttach", type: { @@ -5155,14 +5206,14 @@ export const AttachDetachDataDisksRequest: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataDisksToAttach" - } - } - } + className: "DataDisksToAttach", + }, + }, + }, }, dataDisksToDetach: { constraints: { - MinItems: 1 + MinItems: 1, }, serializedName: "dataDisksToDetach", type: { @@ -5170,13 +5221,13 @@ export const AttachDetachDataDisksRequest: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataDisksToDetach" - } - } - } - } - } - } + className: "DataDisksToDetach", + }, + }, + }, + }, + }, + }, }; export const DataDisksToAttach: coreClient.CompositeMapper = { @@ -5188,17 +5239,17 @@ export const DataDisksToAttach: coreClient.CompositeMapper = { serializedName: "diskId", required: true, type: { - name: "String" - } + name: "String", + }, }, lun: { serializedName: "lun", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const DataDisksToDetach: coreClient.CompositeMapper = { @@ -5210,17 +5261,17 @@ export const DataDisksToDetach: coreClient.CompositeMapper = { serializedName: "diskId", required: true, type: { - name: "String" - } + name: "String", + }, }, detachOption: { serializedName: "detachOption", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineExtensionsListResult: coreClient.CompositeMapper = { @@ -5235,13 +5286,13 @@ export const VirtualMachineExtensionsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtension" - } - } - } - } - } - } + className: "VirtualMachineExtension", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineListResult: coreClient.CompositeMapper = { @@ -5257,19 +5308,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 = { @@ -5280,58 +5331,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", @@ -5340,10 +5391,10 @@ export const VirtualMachineInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskInstanceView" - } - } - } + className: "DiskInstanceView", + }, + }, + }, }, extensions: { serializedName: "extensions", @@ -5352,31 +5403,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", @@ -5385,27 +5436,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" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const VirtualMachinePatchStatus: coreClient.CompositeMapper = { @@ -5417,15 +5468,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", @@ -5435,13 +5486,13 @@ export const VirtualMachinePatchStatus: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const AvailablePatchSummary: coreClient.CompositeMapper = { @@ -5453,60 +5504,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 = { @@ -5518,81 +5569,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 = { @@ -5604,217 +5655,219 @@ 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" - } - } - } - } -}; - -export const VirtualMachineAssessPatchesResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineAssessPatchesResult", - modelProperties: { - status: { - serializedName: "status", - readOnly: true, - type: { - name: "String" - } - }, - assessmentActivityId: { - serializedName: "assessmentActivityId", - readOnly: true, - type: { - name: "String" - } - }, - rebootPending: { - serializedName: "rebootPending", - readOnly: true, - type: { - name: "Boolean" - } - }, - criticalAndSecurityPatchCount: { - serializedName: "criticalAndSecurityPatchCount", - readOnly: true, - type: { - name: "Number" - } - }, - otherPatchCount: { - serializedName: "otherPatchCount", - readOnly: true, - type: { - name: "Number" - } - }, - startDateTime: { - serializedName: "startDateTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - availablePatches: { - serializedName: "availablePatches", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - 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, + required: true, type: { - name: "String" - } + name: "Boolean", + }, }, - kbId: { - serializedName: "kbId", + }, + }, +}; + +export const VirtualMachineAssessPatchesResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineAssessPatchesResult", + modelProperties: { + status: { + serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - classifications: { - serializedName: "classifications", + assessmentActivityId: { + serializedName: "assessmentActivityId", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - rebootBehavior: { - serializedName: "rebootBehavior", + rebootPending: { + serializedName: "rebootPending", readOnly: true, type: { - name: "String" - } + name: "Boolean", + }, }, - activityId: { - serializedName: "activityId", + criticalAndSecurityPatchCount: { + serializedName: "criticalAndSecurityPatchCount", readOnly: true, type: { - name: "String" - } + name: "Number", + }, }, - publishedDate: { - serializedName: "publishedDate", + otherPatchCount: { + serializedName: "otherPatchCount", readOnly: true, type: { - name: "DateTime" - } + name: "Number", + }, }, - lastModifiedDateTime: { - serializedName: "lastModifiedDateTime", + startDateTime: { + serializedName: "startDateTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, - assessmentState: { - serializedName: "assessmentState", + availablePatches: { + serializedName: "availablePatches", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -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" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineSoftwarePatchProperties", + }, + }, + }, }, - windowsParameters: { - serializedName: "windowsParameters", + error: { + serializedName: "error", type: { name: "Composite", - className: "WindowsParameters" - } + className: "ApiError", + }, }, - linuxParameters: { - serializedName: "linuxParameters", - type: { - name: "Composite", - className: "LinuxParameters" - } - } - } - } -}; + }, + }, +}; + +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", + }, + }, + rebootSetting: { + serializedName: "rebootSetting", + required: true, + type: { + name: "String", + }, + }, + windowsParameters: { + serializedName: "windowsParameters", + type: { + name: "Composite", + className: "WindowsParameters", + }, + }, + linuxParameters: { + serializedName: "linuxParameters", + type: { + name: "Composite", + className: "LinuxParameters", + }, + }, + }, + }, + }; export const WindowsParameters: coreClient.CompositeMapper = { type: { @@ -5827,10 +5880,10 @@ export const WindowsParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, kbNumbersToInclude: { serializedName: "kbNumbersToInclude", @@ -5838,10 +5891,10 @@ export const WindowsParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, kbNumbersToExclude: { serializedName: "kbNumbersToExclude", @@ -5849,25 +5902,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 = { @@ -5881,10 +5934,10 @@ export const LinuxParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, packageNameMasksToInclude: { serializedName: "packageNameMasksToInclude", @@ -5892,10 +5945,10 @@ export const LinuxParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, packageNameMasksToExclude: { serializedName: "packageNameMasksToExclude", @@ -5903,19 +5956,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 = { @@ -5927,64 +5980,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", @@ -5994,27 +6047,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 = { @@ -6026,29 +6079,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", @@ -6057,20 +6110,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 = { @@ -6082,25 +6135,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 = { @@ -6113,11 +6166,11 @@ export const OSDiskImage: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } - } - } - } + allowedValues: ["Windows", "Linux"], + }, + }, + }, + }, }; export const DataDiskImage: coreClient.CompositeMapper = { @@ -6129,11 +6182,11 @@ export const DataDiskImage: coreClient.CompositeMapper = { serializedName: "lun", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const AutomaticOSUpgradeProperties: coreClient.CompositeMapper = { @@ -6145,11 +6198,11 @@ export const AutomaticOSUpgradeProperties: coreClient.CompositeMapper = { serializedName: "automaticOSUpgradeSupported", required: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const DisallowedConfiguration: coreClient.CompositeMapper = { @@ -6160,11 +6213,11 @@ export const DisallowedConfiguration: coreClient.CompositeMapper = { vmDiskType: { serializedName: "vmDiskType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineImageFeature: coreClient.CompositeMapper = { @@ -6175,17 +6228,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 = { @@ -6196,24 +6249,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 = { @@ -6224,17 +6277,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 = { @@ -6249,19 +6302,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 = { @@ -6277,40 +6330,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: { @@ -6325,19 +6379,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 = { @@ -6352,13 +6406,13 @@ export const DedicatedHostGroupInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DedicatedHostInstanceViewWithName" - } - } - } - } - } - } + className: "DedicatedHostInstanceViewWithName", + }, + }, + }, + }, + }, + }, }; export const DedicatedHostInstanceView: coreClient.CompositeMapper = { @@ -6370,15 +6424,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", @@ -6387,13 +6441,13 @@ export const DedicatedHostInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const DedicatedHostAvailableCapacity: coreClient.CompositeMapper = { @@ -6408,13 +6462,13 @@ export const DedicatedHostAvailableCapacity: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DedicatedHostAllocatableVM" - } - } - } - } - } - } + className: "DedicatedHostAllocatableVM", + }, + }, + }, + }, + }, + }, }; export const DedicatedHostAllocatableVM: coreClient.CompositeMapper = { @@ -6425,33 +6479,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: { @@ -6466,19 +6521,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 = { @@ -6494,19 +6549,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 = { @@ -6520,13 +6575,13 @@ export const DedicatedHostSizeListResult: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const SshPublicKeysGroupListResult: coreClient.CompositeMapper = { @@ -6542,19 +6597,19 @@ 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 = { @@ -6565,11 +6620,11 @@ export const SshGenerateKeyPairInputParameters: coreClient.CompositeMapper = { encryptionType: { serializedName: "encryptionType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SshPublicKeyGenerateKeyPairResult: coreClient.CompositeMapper = { @@ -6581,25 +6636,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 = { @@ -6611,8 +6666,8 @@ export const ImageStorageProfile: coreClient.CompositeMapper = { serializedName: "osDisk", type: { name: "Composite", - className: "ImageOSDisk" - } + className: "ImageOSDisk", + }, }, dataDisks: { serializedName: "dataDisks", @@ -6621,19 +6676,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 = { @@ -6645,50 +6700,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 = { @@ -6704,42 +6759,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: { @@ -6750,74 +6806,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 = { @@ -6829,8 +6885,8 @@ export const RestorePointSourceVMStorageProfile: coreClient.CompositeMapper = { serializedName: "osDisk", type: { name: "Composite", - className: "RestorePointSourceVmosDisk" - } + className: "RestorePointSourceVmosDisk", + }, }, dataDisks: { serializedName: "dataDisks", @@ -6839,20 +6895,20 @@ export const RestorePointSourceVMStorageProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorePointSourceVMDataDisk" - } - } - } + className: "RestorePointSourceVMDataDisk", + }, + }, + }, }, diskControllerType: { serializedName: "diskControllerType", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RestorePointSourceVmosDisk: coreClient.CompositeMapper = { @@ -6864,61 +6920,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 = { @@ -6930,17 +6986,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 = { @@ -6952,54 +7008,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 = { @@ -7014,10 +7070,10 @@ export const RestorePointInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskRestorePointInstanceView" - } - } - } + className: "DiskRestorePointInstanceView", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -7026,13 +7082,13 @@ export const RestorePointInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const DiskRestorePointInstanceView: coreClient.CompositeMapper = { @@ -7043,18 +7099,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 = { @@ -7066,17 +7122,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 = { @@ -7088,25 +7144,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 = { @@ -7121,55 +7177,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", + }, }, - sharedSubscriptionIds: { - serializedName: "sharedSubscriptionIds", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } - } - } - } - } -}; + }, + }, +}; + +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: { @@ -7180,8 +7237,8 @@ export const CapacityReservationInstanceView: coreClient.CompositeMapper = { serializedName: "utilizationInfo", type: { name: "Composite", - className: "CapacityReservationUtilization" - } + className: "CapacityReservationUtilization", + }, }, statuses: { serializedName: "statuses", @@ -7190,13 +7247,13 @@ export const CapacityReservationInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const CapacityReservationUtilization: coreClient.CompositeMapper = { @@ -7208,8 +7265,8 @@ export const CapacityReservationUtilization: coreClient.CompositeMapper = { serializedName: "currentCapacity", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, virtualMachinesAllocated: { serializedName: "virtualMachinesAllocated", @@ -7219,13 +7276,13 @@ export const CapacityReservationUtilization: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, + }, + }, + }, }; export const ResourceSharingProfile: coreClient.CompositeMapper = { @@ -7240,13 +7297,13 @@ export const ResourceSharingProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResource" - } - } - } - } - } - } + className: "SubResource", + }, + }, + }, + }, + }, + }, }; export const CapacityReservationGroupListResult: coreClient.CompositeMapper = { @@ -7262,19 +7319,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 = { @@ -7290,19 +7347,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 = { @@ -7314,55 +7371,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 = { @@ -7374,11 +7431,11 @@ export const LogAnalyticsOperationResult: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "LogAnalyticsOutput" - } - } - } - } + className: "LogAnalyticsOutput", + }, + }, + }, + }, }; export const LogAnalyticsOutput: coreClient.CompositeMapper = { @@ -7390,11 +7447,11 @@ export const LogAnalyticsOutput: coreClient.CompositeMapper = { serializedName: "output", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RunCommandListResult: coreClient.CompositeMapper = { @@ -7410,19 +7467,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 = { @@ -7434,40 +7491,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 = { @@ -7479,31 +7536,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 = { @@ -7515,8 +7572,8 @@ export const RunCommandInput: coreClient.CompositeMapper = { serializedName: "commandId", required: true, type: { - name: "String" - } + name: "String", + }, }, script: { serializedName: "script", @@ -7524,10 +7581,10 @@ export const RunCommandInput: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, parameters: { serializedName: "parameters", @@ -7536,13 +7593,13 @@ export const RunCommandInput: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandInputParameter" - } - } - } - } - } - } + className: "RunCommandInputParameter", + }, + }, + }, + }, + }, + }, }; export const RunCommandInputParameter: coreClient.CompositeMapper = { @@ -7554,18 +7611,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 = { @@ -7580,48 +7637,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" - } + className: "InstanceViewStatus", + }, + }, + }, }, - commandId: { - serializedName: "commandId", - type: { - name: "String" - } + }, + }, +}; + +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", + }, + }, }, - scriptUriManagedIdentity: { - serializedName: "scriptUriManagedIdentity", - type: { - name: "Composite", - className: "RunCommandManagedIdentity" - } - } - } - } -}; + }, + }; export const RunCommandManagedIdentity: coreClient.CompositeMapper = { type: { @@ -7631,81 +7689,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: { @@ -7720,19 +7779,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 = { @@ -7743,18 +7802,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 = { @@ -7766,31 +7825,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 = { @@ -7801,23 +7860,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 = { @@ -7829,80 +7888,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 = { @@ -7913,29 +7978,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 = { @@ -7947,8 +8012,8 @@ export const EncryptionSettingsCollection: coreClient.CompositeMapper = { serializedName: "enabled", required: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, encryptionSettings: { serializedName: "encryptionSettings", @@ -7957,19 +8022,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 = { @@ -7981,18 +8046,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 = { @@ -8004,18 +8069,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 = { @@ -8026,11 +8091,11 @@ export const SourceVault: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const KeyVaultAndKeyReference: coreClient.CompositeMapper = { @@ -8042,18 +8107,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 = { @@ -8064,17 +8129,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 = { @@ -8086,11 +8151,11 @@ export const ShareInfoElement: coreClient.CompositeMapper = { serializedName: "vmUri", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PropertyUpdatesInProgress: coreClient.CompositeMapper = { @@ -8101,11 +8166,11 @@ export const PropertyUpdatesInProgress: coreClient.CompositeMapper = { targetTier: { serializedName: "targetTier", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskSecurityProfile: coreClient.CompositeMapper = { @@ -8116,17 +8181,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 = { @@ -8138,144 +8203,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 = { @@ -8291,19 +8356,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 = { @@ -8315,30 +8380,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 = { @@ -8350,18 +8415,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 = { @@ -8373,46 +8438,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 = { @@ -8424,11 +8489,11 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { @@ -8439,23 +8504,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 = { @@ -8467,11 +8532,11 @@ export const DiskAccessUpdate: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const DiskAccessList: coreClient.CompositeMapper = { @@ -8487,19 +8552,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 = { @@ -8514,13 +8579,13 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" - } - } - } - } - } - } + className: "PrivateLinkResource", + }, + }, + }, + }, + }, + }, }; export const PrivateLinkResource: coreClient.CompositeMapper = { @@ -8532,29 +8597,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", @@ -8563,10 +8628,10 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, requiredZoneNames: { serializedName: "properties.requiredZoneNames", @@ -8574,13 +8639,13 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { @@ -8595,19 +8660,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 = { @@ -8618,22 +8683,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", @@ -8642,13 +8707,13 @@ export const EncryptionSetIdentity: coreClient.CompositeMapper = { value: { type: { name: "Composite", - className: "UserAssignedIdentitiesValue" - } - } - } - } - } - } + className: "UserAssignedIdentitiesValue", + }, + }, + }, + }, + }, + }, }; export const KeyForDiskEncryptionSet: coreClient.CompositeMapper = { @@ -8660,18 +8725,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 = { @@ -8683,43 +8748,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 = { @@ -8735,19 +8800,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 = { @@ -8762,19 +8827,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 = { @@ -8786,25 +8851,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 = { @@ -8820,19 +8885,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 = { @@ -8843,18 +8908,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 = { @@ -8866,18 +8931,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 = { @@ -8889,82 +8954,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 = { @@ -8980,19 +9045,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 = { @@ -9008,19 +9073,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 = { @@ -9032,50 +9097,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", @@ -9084,10 +9149,10 @@ export const ResourceSku: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, locationInfo: { serializedName: "locationInfo", @@ -9097,10 +9162,10 @@ export const ResourceSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuLocationInfo" - } - } - } + className: "ResourceSkuLocationInfo", + }, + }, + }, }, apiVersions: { serializedName: "apiVersions", @@ -9109,10 +9174,10 @@ export const ResourceSku: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, costs: { serializedName: "costs", @@ -9122,10 +9187,10 @@ export const ResourceSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuCosts" - } - } - } + className: "ResourceSkuCosts", + }, + }, + }, }, capabilities: { serializedName: "capabilities", @@ -9135,10 +9200,10 @@ export const ResourceSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuCapabilities" - } - } - } + className: "ResourceSkuCapabilities", + }, + }, + }, }, restrictions: { serializedName: "restrictions", @@ -9148,13 +9213,13 @@ export const ResourceSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuRestrictions" - } - } - } - } - } - } + className: "ResourceSkuRestrictions", + }, + }, + }, + }, + }, + }, }; export const ResourceSkuCapacity: coreClient.CompositeMapper = { @@ -9166,33 +9231,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 = { @@ -9204,8 +9269,8 @@ export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, zones: { serializedName: "zones", @@ -9214,10 +9279,10 @@ export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, zoneDetails: { serializedName: "zoneDetails", @@ -9227,10 +9292,10 @@ export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuZoneDetails" - } - } - } + className: "ResourceSkuZoneDetails", + }, + }, + }, }, extendedLocations: { serializedName: "extendedLocations", @@ -9239,20 +9304,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 = { @@ -9267,10 +9332,10 @@ export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, capabilities: { serializedName: "capabilities", @@ -9280,13 +9345,13 @@ export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuCapabilities" - } - } - } - } - } - } + className: "ResourceSkuCapabilities", + }, + }, + }, + }, + }, + }, }; export const ResourceSkuCapabilities: coreClient.CompositeMapper = { @@ -9298,18 +9363,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 = { @@ -9321,25 +9386,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 = { @@ -9352,8 +9417,8 @@ export const ResourceSkuRestrictions: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["Location", "Zone"] - } + allowedValues: ["Location", "Zone"], + }, }, values: { serializedName: "values", @@ -9362,28 +9427,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 = { @@ -9398,10 +9463,10 @@ export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, zones: { serializedName: "zones", @@ -9410,13 +9475,13 @@ export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const GalleryIdentifier: coreClient.CompositeMapper = { @@ -9428,11 +9493,11 @@ export const GalleryIdentifier: coreClient.CompositeMapper = { serializedName: "uniqueName", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SharingProfile: coreClient.CompositeMapper = { @@ -9443,8 +9508,8 @@ export const SharingProfile: coreClient.CompositeMapper = { permissions: { serializedName: "permissions", type: { - name: "String" - } + name: "String", + }, }, groups: { serializedName: "groups", @@ -9454,20 +9519,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 = { @@ -9478,8 +9543,8 @@ export const SharingProfileGroup: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, ids: { serializedName: "ids", @@ -9487,13 +9552,13 @@ export const SharingProfileGroup: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const CommunityGalleryInfo: coreClient.CompositeMapper = { @@ -9504,33 +9569,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", @@ -9539,13 +9604,13 @@ export const CommunityGalleryInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const SoftDeletePolicy: coreClient.CompositeMapper = { @@ -9556,11 +9621,11 @@ export const SoftDeletePolicy: coreClient.CompositeMapper = { isSoftDeleteEnabled: { serializedName: "isSoftDeleteEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SharingStatus: coreClient.CompositeMapper = { @@ -9572,8 +9637,8 @@ export const SharingStatus: coreClient.CompositeMapper = { serializedName: "aggregatedState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, summary: { serializedName: "summary", @@ -9582,13 +9647,13 @@ export const SharingStatus: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RegionalSharingStatus" - } - } - } - } - } - } + className: "RegionalSharingStatus", + }, + }, + }, + }, + }, + }, }; export const RegionalSharingStatus: coreClient.CompositeMapper = { @@ -9599,24 +9664,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 = { @@ -9628,32 +9693,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 = { @@ -9665,25 +9730,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 = { @@ -9695,18 +9760,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 = { @@ -9717,17 +9782,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 = { @@ -9741,13 +9806,13 @@ export const Disallowed: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ImagePurchasePlan: coreClient.CompositeMapper = { @@ -9758,23 +9823,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 = { @@ -9785,88 +9850,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: { @@ -9877,36 +9943,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 = { @@ -9918,8 +9984,8 @@ export const EncryptionImages: coreClient.CompositeMapper = { serializedName: "osDiskImage", type: { name: "Composite", - className: "OSDiskImageEncryption" - } + className: "OSDiskImageEncryption", + }, }, dataDiskImages: { serializedName: "dataDiskImages", @@ -9928,13 +9994,13 @@ export const EncryptionImages: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataDiskImageEncryption" - } - } - } - } - } - } + className: "DataDiskImageEncryption", + }, + }, + }, + }, + }, + }, }; export const OSDiskImageSecurityProfile: coreClient.CompositeMapper = { @@ -9945,17 +10011,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 = { @@ -9966,11 +10032,11 @@ export const DiskImageEncryption: coreClient.CompositeMapper = { diskEncryptionSetId: { serializedName: "diskEncryptionSetId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryTargetExtendedLocation: coreClient.CompositeMapper = { @@ -9981,37 +10047,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 = { @@ -10022,17 +10088,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 = { @@ -10044,15 +10110,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", @@ -10061,13 +10127,13 @@ export const GalleryImageVersionStorageProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryDataDiskImage" - } - } - } - } - } - } + className: "GalleryDataDiskImage", + }, + }, + }, + }, + }, + }, }; export const GalleryArtifactVersionSource: coreClient.CompositeMapper = { @@ -10078,11 +10144,11 @@ export const GalleryArtifactVersionSource: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryDiskImage: coreClient.CompositeMapper = { @@ -10094,25 +10160,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 = { @@ -10123,17 +10189,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 = { @@ -10144,11 +10210,11 @@ export const GalleryArtifactSafetyProfileBase: coreClient.CompositeMapper = { allowDeletionOfReplicatedLocations: { serializedName: "allowDeletionOfReplicatedLocations", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ReplicationStatus: coreClient.CompositeMapper = { @@ -10160,8 +10226,8 @@ export const ReplicationStatus: coreClient.CompositeMapper = { serializedName: "aggregatedState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, summary: { serializedName: "summary", @@ -10171,13 +10237,13 @@ export const ReplicationStatus: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RegionalReplicationStatus" - } - } - } - } - } - } + className: "RegionalReplicationStatus", + }, + }, + }, + }, + }, + }, }; export const RegionalReplicationStatus: coreClient.CompositeMapper = { @@ -10189,32 +10255,32 @@ 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 ImageVersionSecurityProfile: coreClient.CompositeMapper = { @@ -10226,11 +10292,11 @@ export const ImageVersionSecurityProfile: coreClient.CompositeMapper = { serializedName: "uefiSettings", type: { name: "Composite", - className: "GalleryImageVersionUefiSettings" - } - } - } - } + className: "GalleryImageVersionUefiSettings", + }, + }, + }, + }, }; export const GalleryImageVersionUefiSettings: coreClient.CompositeMapper = { @@ -10244,20 +10310,20 @@ export const GalleryImageVersionUefiSettings: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, additionalSignatures: { serializedName: "additionalSignatures", type: { name: "Composite", - className: "UefiKeySignatures" - } - } - } - } + className: "UefiKeySignatures", + }, + }, + }, + }, }; export const UefiKeySignatures: coreClient.CompositeMapper = { @@ -10269,8 +10335,8 @@ export const UefiKeySignatures: coreClient.CompositeMapper = { serializedName: "pk", type: { name: "Composite", - className: "UefiKey" - } + className: "UefiKey", + }, }, kek: { serializedName: "kek", @@ -10279,10 +10345,10 @@ export const UefiKeySignatures: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UefiKey" - } - } - } + className: "UefiKey", + }, + }, + }, }, db: { serializedName: "db", @@ -10291,10 +10357,10 @@ export const UefiKeySignatures: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UefiKey" - } - } - } + className: "UefiKey", + }, + }, + }, }, dbx: { serializedName: "dbx", @@ -10303,13 +10369,13 @@ export const UefiKeySignatures: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UefiKey" - } - } - } - } - } - } + className: "UefiKey", + }, + }, + }, + }, + }, + }, }; export const UefiKey: coreClient.CompositeMapper = { @@ -10320,8 +10386,8 @@ export const UefiKey: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -10329,13 +10395,13 @@ export const UefiKey: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const GalleryApplicationCustomAction: coreClient.CompositeMapper = { @@ -10347,21 +10413,21 @@ export const GalleryApplicationCustomAction: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, script: { serializedName: "script", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, parameters: { serializedName: "parameters", @@ -10370,55 +10436,56 @@ export const GalleryApplicationCustomAction: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryApplicationCustomActionParameter" - } - } - } - } - } - } -}; - -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: { - serializedName: "type", - type: { - name: "Enum", - allowedValues: ["String", "ConfigurationDataBlob", "LogOutputBlob"] - } + className: "GalleryApplicationCustomActionParameter", + }, + }, + }, }, - defaultValue: { - serializedName: "defaultValue", + }, + }, +}; + +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", + }, + }, }, - description: { - serializedName: "description", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const UserArtifactSource: coreClient.CompositeMapper = { type: { @@ -10429,17 +10496,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 = { @@ -10451,24 +10518,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 = { @@ -10479,17 +10546,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 = { @@ -10505,19 +10572,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 = { @@ -10533,19 +10600,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 = { @@ -10561,19 +10628,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 = { @@ -10589,19 +10656,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 = { @@ -10617,19 +10684,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 = { @@ -10641,8 +10708,8 @@ export const SharingUpdate: coreClient.CompositeMapper = { serializedName: "operationType", required: true, type: { - name: "String" - } + name: "String", + }, }, groups: { serializedName: "groups", @@ -10651,13 +10718,13 @@ export const SharingUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharingProfileGroup" - } - } - } - } - } - } + className: "SharingProfileGroup", + }, + }, + }, + }, + }, + }, }; export const SharedGalleryList: coreClient.CompositeMapper = { @@ -10673,19 +10740,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 = { @@ -10697,18 +10764,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 = { @@ -10724,19 +10791,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 = { @@ -10752,48 +10819,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: { @@ -10804,17 +10872,17 @@ 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 = { @@ -10825,21 +10893,21 @@ export const CommunityGalleryMetadata: coreClient.CompositeMapper = { publisherUri: { serializedName: "publisherUri", type: { - name: "String" - } + name: "String", + }, }, publisherContact: { serializedName: "publisherContact", required: true, type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "eula", type: { - name: "String" - } + name: "String", + }, }, publicNames: { serializedName: "publicNames", @@ -10848,19 +10916,19 @@ export const CommunityGalleryMetadata: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, privacyStatementUri: { serializedName: "privacyStatementUri", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PirCommunityGalleryResource: coreClient.CompositeMapper = { @@ -10872,31 +10940,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 = { @@ -10907,23 +10975,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 = { @@ -10939,19 +11007,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 = { @@ -10967,19 +11035,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 = { @@ -10991,54 +11059,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 = { @@ -11050,18 +11118,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 = { @@ -11073,18 +11141,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 = { @@ -11100,13 +11168,13 @@ export const RoleInstanceNetworkProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResource" - } - } - } - } - } - } + className: "SubResource", + }, + }, + }, + }, + }, + }, }; export const RoleInstanceView: coreClient.CompositeMapper = { @@ -11118,22 +11186,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", @@ -11143,13 +11211,13 @@ export const RoleInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceInstanceViewStatus" - } - } - } - } - } - } + className: "ResourceInstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const ResourceInstanceViewStatus: coreClient.CompositeMapper = { @@ -11161,39 +11229,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 = { @@ -11209,19 +11277,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 = { @@ -11233,46 +11301,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 = { @@ -11283,23 +11351,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 = { @@ -11311,11 +11379,11 @@ export const CloudServiceRoleProperties: coreClient.CompositeMapper = { serializedName: "uniqueId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudServiceRoleListResult: coreClient.CompositeMapper = { @@ -11331,19 +11399,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 = { @@ -11355,50 +11423,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", @@ -11406,13 +11474,13 @@ export const CloudService: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const CloudServiceProperties: coreClient.CompositeMapper = { @@ -11423,83 +11491,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 = { @@ -11514,13 +11582,13 @@ export const CloudServiceRoleProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudServiceRoleProfileProperties" - } - } - } - } - } - } + className: "CloudServiceRoleProfileProperties", + }, + }, + }, + }, + }, + }, }; export const CloudServiceRoleProfileProperties: coreClient.CompositeMapper = { @@ -11531,18 +11599,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 = { @@ -11557,13 +11625,13 @@ export const CloudServiceOsProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudServiceVaultSecretGroup" - } - } - } - } - } - } + className: "CloudServiceVaultSecretGroup", + }, + }, + }, + }, + }, + }, }; export const CloudServiceVaultSecretGroup: coreClient.CompositeMapper = { @@ -11575,8 +11643,8 @@ export const CloudServiceVaultSecretGroup: coreClient.CompositeMapper = { serializedName: "sourceVault", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, vaultCertificates: { serializedName: "vaultCertificates", @@ -11585,13 +11653,13 @@ export const CloudServiceVaultSecretGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudServiceVaultCertificate" - } - } - } - } - } - } + className: "CloudServiceVaultCertificate", + }, + }, + }, + }, + }, + }, }; export const CloudServiceVaultCertificate: coreClient.CompositeMapper = { @@ -11602,11 +11670,11 @@ export const CloudServiceVaultCertificate: coreClient.CompositeMapper = { certificateUrl: { serializedName: "certificateUrl", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudServiceNetworkProfile: coreClient.CompositeMapper = { @@ -11621,26 +11689,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 = { @@ -11651,25 +11719,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 = { @@ -11685,13 +11753,13 @@ export const LoadBalancerConfigurationProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LoadBalancerFrontendIpConfiguration" - } - } - } - } - } - } + className: "LoadBalancerFrontendIpConfiguration", + }, + }, + }, + }, + }, + }, }; export const LoadBalancerFrontendIpConfiguration: coreClient.CompositeMapper = { @@ -11703,48 +11771,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: { @@ -11758,13 +11827,13 @@ export const CloudServiceExtensionProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Extension" - } - } - } - } - } - } + className: "Extension", + }, + }, + }, + }, + }, + }, }; export const Extension: coreClient.CompositeMapper = { @@ -11775,18 +11844,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 = { @@ -11797,58 +11866,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", @@ -11856,13 +11925,13 @@ export const CloudServiceExtensionProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const CloudServiceVaultAndSecretReference: coreClient.CompositeMapper = { @@ -11874,17 +11943,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 = { @@ -11896,18 +11965,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 = { @@ -11919,11 +11988,11 @@ export const CloudServiceUpdate: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const CloudServiceInstanceView: coreClient.CompositeMapper = { @@ -11935,15 +12004,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", @@ -11952,10 +12021,10 @@ export const CloudServiceInstanceView: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -11965,13 +12034,13 @@ export const CloudServiceInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceInstanceViewStatus" - } - } - } - } - } - } + className: "ResourceInstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const InstanceViewStatusesSummary: coreClient.CompositeMapper = { @@ -11987,13 +12056,13 @@ export const InstanceViewStatusesSummary: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "StatusCodeCount" - } - } - } - } - } - } + className: "StatusCodeCount", + }, + }, + }, + }, + }, + }, }; export const StatusCodeCount: coreClient.CompositeMapper = { @@ -12005,18 +12074,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 = { @@ -12032,19 +12101,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 = { @@ -12059,13 +12128,13 @@ export const RoleInstances: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const UpdateDomain: coreClient.CompositeMapper = { @@ -12077,18 +12146,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 = { @@ -12104,19 +12173,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 = { @@ -12128,39 +12197,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 = { @@ -12172,46 +12241,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 = { @@ -12227,19 +12296,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 = { @@ -12251,39 +12320,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 = { @@ -12295,15 +12364,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", @@ -12313,13 +12382,13 @@ export const OSFamilyProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OSVersionPropertiesBase" - } - } - } - } - } - } + className: "OSVersionPropertiesBase", + }, + }, + }, + }, + }, + }, }; export const OSVersionPropertiesBase: coreClient.CompositeMapper = { @@ -12331,32 +12400,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 = { @@ -12372,19 +12441,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 = { @@ -12396,11 +12465,11 @@ export const GalleryArtifactSource: coreClient.CompositeMapper = { serializedName: "managedImage", type: { name: "Composite", - className: "ManagedArtifact" - } - } - } - } + className: "ManagedArtifact", + }, + }, + }, + }, }; export const ManagedArtifact: coreClient.CompositeMapper = { @@ -12412,11 +12481,11 @@ export const ManagedArtifact: coreClient.CompositeMapper = { serializedName: "id", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LatestGalleryImageVersion: coreClient.CompositeMapper = { @@ -12427,17 +12496,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 = { @@ -12449,48 +12518,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 = { @@ -12498,9 +12567,9 @@ export const DiskEncryptionSetParameters: coreClient.CompositeMapper = { name: "Composite", className: "DiskEncryptionSetParameters", modelProperties: { - ...SubResource.type.modelProperties - } - } + ...SubResource.type.modelProperties, + }, + }, }; export const ManagedDiskParameters: coreClient.CompositeMapper = { @@ -12512,25 +12581,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 = { @@ -12542,17 +12611,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 = { @@ -12565,22 +12634,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", @@ -12589,13 +12658,13 @@ export const VirtualMachineCaptureResult: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "any" - } - } - } - } - } - } + name: "any", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineImageResource: coreClient.CompositeMapper = { @@ -12608,32 +12677,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 = { @@ -12646,11 +12715,11 @@ export const SubResourceWithColocationStatus: coreClient.CompositeMapper = { serializedName: "colocationStatus", type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, }; export const VirtualMachineScaleSetExtension: coreClient.CompositeMapper = { @@ -12662,70 +12731,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", @@ -12733,130 +12802,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: { @@ -12868,196 +12938,197 @@ 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" - } - }, - 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" - } - }, - instanceView: { - serializedName: "properties.instanceView", - type: { - name: "Composite", - className: "VirtualMachineExtensionInstanceView" - } - }, - suppressFailures: { - serializedName: "properties.suppressFailures", - type: { - name: "Boolean" - } - }, - protectedSettingsFromKeyVault: { - serializedName: "properties.protectedSettingsFromKeyVault", - type: { - name: "Composite", - className: "KeyVaultSecretReference" - } - }, - provisionAfterExtensions: { - serializedName: "properties.provisionAfterExtensions", - type: { - 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" - } + 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", + }, + }, + instanceView: { + serializedName: "properties.instanceView", + type: { + name: "Composite", + 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", + type: { + 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", + }, + }, + suppressFailures: { + serializedName: "properties.suppressFailures", + type: { + name: "Boolean", + }, + }, + protectedSettingsFromKeyVault: { + serializedName: "properties.protectedSettingsFromKeyVault", + type: { + name: "Composite", + className: "KeyVaultSecretReference", + }, + }, + }, + }, + }; export const DiskRestorePointAttributes: coreClient.CompositeMapper = { type: { @@ -13069,18 +13140,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 = { @@ -13092,77 +13163,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", @@ -13170,13 +13241,13 @@ export const VirtualMachineExtension: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineScaleSet: coreClient.CompositeMapper = { @@ -13189,22 +13260,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", @@ -13212,160 +13283,160 @@ 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" - } + name: "String", + }, }, 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: "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" - } - } - } - } + className: "ResiliencyPolicy", + }, + }, + }, + }, }; export const RollingUpgradeStatusInfo: coreClient.CompositeMapper = { @@ -13378,32 +13449,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 = { @@ -13416,22 +13487,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", @@ -13441,10 +13512,10 @@ export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtension" - } - } - } + className: "VirtualMachineExtension", + }, + }, + }, }, zones: { serializedName: "zones", @@ -13453,151 +13524,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" - } + 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 = { @@ -13610,8 +13681,8 @@ export const VirtualMachine: coreClient.CompositeMapper = { serializedName: "plan", type: { name: "Composite", - className: "Plan" - } + className: "Plan", + }, }, resources: { serializedName: "resources", @@ -13621,17 +13692,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", @@ -13639,210 +13710,210 @@ 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" - } + name: "String", + }, }, etag: { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, 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", + }, }, 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 = { @@ -13854,35 +13925,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 = { @@ -13895,20 +13966,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", @@ -13917,17 +13988,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", @@ -13937,13 +14008,13 @@ export const AvailabilitySet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const ProximityPlacementGroup: coreClient.CompositeMapper = { @@ -13958,16 +14029,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", @@ -13977,10 +14048,10 @@ export const ProximityPlacementGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceWithColocationStatus" - } - } - } + className: "SubResourceWithColocationStatus", + }, + }, + }, }, virtualMachineScaleSets: { serializedName: "properties.virtualMachineScaleSets", @@ -13990,10 +14061,10 @@ export const ProximityPlacementGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceWithColocationStatus" - } - } - } + className: "SubResourceWithColocationStatus", + }, + }, + }, }, availabilitySets: { serializedName: "properties.availabilitySets", @@ -14003,27 +14074,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 = { @@ -14038,19 +14109,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", @@ -14060,33 +14131,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 = { @@ -14099,30 +14170,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", @@ -14132,10 +14203,10 @@ export const DedicatedHost: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, licenseType: { serializedName: "properties.licenseType", @@ -14144,40 +14215,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 = { @@ -14189,11 +14260,11 @@ export const SshPublicKeyResource: coreClient.CompositeMapper = { publicKey: { serializedName: "properties.publicKey", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Image: coreClient.CompositeMapper = { @@ -14206,38 +14277,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 = { @@ -14250,22 +14321,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", @@ -14275,13 +14346,13 @@ export const RestorePointCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorePoint" - } - } - } - } - } - } + className: "RestorePoint", + }, + }, + }, + }, + }, + }, }; export const CapacityReservationGroup: coreClient.CompositeMapper = { @@ -14296,10 +14367,10 @@ export const CapacityReservationGroup: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, capacityReservations: { serializedName: "properties.capacityReservations", @@ -14309,10 +14380,10 @@ export const CapacityReservationGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, virtualMachinesAssociated: { serializedName: "properties.virtualMachinesAssociated", @@ -14322,27 +14393,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" - } - } - } - } + className: "ResourceSharingProfile", + }, + }, + }, + }, }; export const CapacityReservation: coreClient.CompositeMapper = { @@ -14355,8 +14426,8 @@ export const CapacityReservation: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, zones: { serializedName: "zones", @@ -14364,24 +14435,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", @@ -14391,41 +14462,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 = { @@ -14438,8 +14509,8 @@ export const VirtualMachineRunCommand: coreClient.CompositeMapper = { serializedName: "properties.source", type: { name: "Composite", - className: "VirtualMachineRunCommandScriptSource" - } + className: "VirtualMachineRunCommandScriptSource", + }, }, parameters: { serializedName: "properties.parameters", @@ -14448,10 +14519,10 @@ export const VirtualMachineRunCommand: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandInputParameter" - } - } - } + className: "RunCommandInputParameter", + }, + }, + }, }, protectedParameters: { serializedName: "properties.protectedParameters", @@ -14460,85 +14531,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 = { @@ -14551,8 +14622,8 @@ export const Disk: coreClient.CompositeMapper = { serializedName: "managedBy", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, managedByExtended: { serializedName: "managedByExtended", @@ -14561,17 +14632,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", @@ -14579,136 +14650,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", @@ -14718,95 +14789,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 = { @@ -14819,8 +14890,8 @@ export const DiskAccess: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, privateEndpointConnections: { serializedName: "properties.privateEndpointConnections", @@ -14830,27 +14901,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 = { @@ -14863,21 +14934,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", @@ -14887,46 +14958,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 = { @@ -14939,177 +15010,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 = { @@ -15121,46 +15192,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 = { @@ -15172,87 +15243,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", @@ -15261,19 +15332,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 = { @@ -15286,46 +15357,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" - } - } - } - } + className: "ImageVersionSecurityProfile", + }, + }, + }, + }, }; export const GalleryApplication: coreClient.CompositeMapper = { @@ -15337,39 +15408,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", @@ -15378,13 +15449,13 @@ export const GalleryApplication: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryApplicationCustomAction" - } - } - } - } - } - } + className: "GalleryApplicationCustomAction", + }, + }, + }, + }, + }, + }, }; export const GalleryApplicationVersion: coreClient.CompositeMapper = { @@ -15397,32 +15468,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 = { @@ -15435,106 +15506,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" - } - } - } - } + className: "ResiliencyPolicy", + }, + }, + }, + }, }; export const VirtualMachineExtensionUpdate: coreClient.CompositeMapper = { @@ -15546,66 +15617,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 = { @@ -15618,15 +15689,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", @@ -15634,189 +15705,189 @@ export const VirtualMachineUpdate: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, 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", + }, }, 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 = { @@ -15829,20 +15900,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", @@ -15851,17 +15922,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", @@ -15871,13 +15942,13 @@ export const AvailabilitySetUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const ProximityPlacementGroupUpdate: coreClient.CompositeMapper = { @@ -15885,9 +15956,9 @@ export const ProximityPlacementGroupUpdate: coreClient.CompositeMapper = { name: "Composite", className: "ProximityPlacementGroupUpdate", modelProperties: { - ...UpdateResource.type.modelProperties - } - } + ...UpdateResource.type.modelProperties, + }, + }, }; export const DedicatedHostGroupUpdate: coreClient.CompositeMapper = { @@ -15902,19 +15973,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", @@ -15924,33 +15995,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 = { @@ -15963,30 +16034,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", @@ -15996,10 +16067,10 @@ export const DedicatedHostUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, licenseType: { serializedName: "properties.licenseType", @@ -16008,40 +16079,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 = { @@ -16053,11 +16124,11 @@ export const SshPublicKeyUpdateResource: coreClient.CompositeMapper = { publicKey: { serializedName: "properties.publicKey", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageUpdate: coreClient.CompositeMapper = { @@ -16070,31 +16141,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 = { @@ -16107,22 +16178,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", @@ -16132,13 +16203,13 @@ export const RestorePointCollectionUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorePoint" - } - } - } - } - } - } + className: "RestorePoint", + }, + }, + }, + }, + }, + }, }; export const CapacityReservationGroupUpdate: coreClient.CompositeMapper = { @@ -16155,10 +16226,10 @@ export const CapacityReservationGroupUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, virtualMachinesAssociated: { serializedName: "properties.virtualMachinesAssociated", @@ -16168,27 +16239,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" - } - } - } - } + className: "ResourceSharingProfile", + }, + }, + }, + }, }; export const CapacityReservationUpdate: coreClient.CompositeMapper = { @@ -16201,22 +16272,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", @@ -16226,41 +16297,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 = { @@ -16273,8 +16344,8 @@ export const VirtualMachineRunCommandUpdate: coreClient.CompositeMapper = { serializedName: "properties.source", type: { name: "Composite", - className: "VirtualMachineRunCommandScriptSource" - } + className: "VirtualMachineRunCommandScriptSource", + }, }, parameters: { serializedName: "properties.parameters", @@ -16283,10 +16354,10 @@ export const VirtualMachineRunCommandUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandInputParameter" - } - } - } + className: "RunCommandInputParameter", + }, + }, + }, }, protectedParameters: { serializedName: "properties.protectedParameters", @@ -16295,96 +16366,97 @@ 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" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; -export const VirtualMachineScaleSetVMReimageParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMReimageParameters", - modelProperties: { - ...VirtualMachineReimageParameters.type.modelProperties - } - } -}; +export const VirtualMachineScaleSetVMReimageParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMReimageParameters", + modelProperties: { + ...VirtualMachineReimageParameters.type.modelProperties, + }, + }, + }; export const DedicatedHostInstanceViewWithName: coreClient.CompositeMapper = { type: { @@ -16396,11 +16468,11 @@ export const DedicatedHostInstanceViewWithName: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageOSDisk: coreClient.CompositeMapper = { @@ -16414,19 +16486,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 = { @@ -16439,11 +16511,11 @@ export const ImageDataDisk: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const RestorePoint: coreClient.CompositeMapper = { @@ -16459,71 +16531,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" - } - } - } - } -}; + 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: { @@ -16536,11 +16609,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 = { @@ -16548,9 +16621,9 @@ export const ThrottledRequestsInput: coreClient.CompositeMapper = { name: "Composite", className: "ThrottledRequestsInput", modelProperties: { - ...LogAnalyticsInputBase.type.modelProperties - } - } + ...LogAnalyticsInputBase.type.modelProperties, + }, + }, }; export const RunCommandDocument: coreClient.CompositeMapper = { @@ -16566,10 +16639,10 @@ export const RunCommandDocument: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, parameters: { serializedName: "parameters", @@ -16578,13 +16651,13 @@ export const RunCommandDocument: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandParameterDefinition" - } - } - } - } - } - } + className: "RunCommandParameterDefinition", + }, + }, + }, + }, + }, + }, }; export const DiskRestorePoint: coreClient.CompositeMapper = { @@ -16597,118 +16670,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 = { @@ -16720,46 +16793,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 = { @@ -16771,87 +16844,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", @@ -16860,19 +16933,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 = { @@ -16885,46 +16958,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" - } - } - } - } + className: "ImageVersionSecurityProfile", + }, + }, + }, + }, }; export const GalleryApplicationUpdate: coreClient.CompositeMapper = { @@ -16936,39 +17009,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", @@ -16977,13 +17050,13 @@ export const GalleryApplicationUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryApplicationCustomAction" - } - } - } - } - } - } + className: "GalleryApplicationCustomAction", + }, + }, + }, + }, + }, + }, }; export const GalleryApplicationVersionUpdate: coreClient.CompositeMapper = { @@ -16996,99 +17069,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: { @@ -17100,11 +17175,11 @@ export const OSDiskImageEncryption: coreClient.CompositeMapper = { serializedName: "securityProfile", type: { name: "Composite", - className: "OSDiskImageSecurityProfile" - } - } - } - } + className: "OSDiskImageSecurityProfile", + }, + }, + }, + }, }; export const DataDiskImageEncryption: coreClient.CompositeMapper = { @@ -17117,11 +17192,11 @@ export const DataDiskImageEncryption: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const GalleryArtifactVersionFullSource: coreClient.CompositeMapper = { @@ -17133,11 +17208,11 @@ export const GalleryArtifactVersionFullSource: coreClient.CompositeMapper = { communityGalleryImageId: { serializedName: "communityGalleryImageId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryDiskImageSource: coreClient.CompositeMapper = { @@ -17149,17 +17224,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 = { @@ -17167,9 +17242,9 @@ export const GalleryOSDiskImage: coreClient.CompositeMapper = { name: "Composite", className: "GalleryOSDiskImage", modelProperties: { - ...GalleryDiskImage.type.modelProperties - } - } + ...GalleryDiskImage.type.modelProperties, + }, + }, }; export const GalleryDataDiskImage: coreClient.CompositeMapper = { @@ -17182,11 +17257,11 @@ export const GalleryDataDiskImage: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const GalleryImageVersionSafetyProfile: coreClient.CompositeMapper = { @@ -17199,8 +17274,8 @@ export const GalleryImageVersionSafetyProfile: coreClient.CompositeMapper = { serializedName: "reportedForPolicyViolation", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, policyViolations: { serializedName: "policyViolations", @@ -17210,24 +17285,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: { @@ -17238,11 +17314,11 @@ export const PirSharedGalleryResource: coreClient.CompositeMapper = { uniqueId: { serializedName: "identifier.uniqueId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SharedGalleryOSDiskImage: coreClient.CompositeMapper = { @@ -17250,9 +17326,9 @@ export const SharedGalleryOSDiskImage: coreClient.CompositeMapper = { name: "Composite", className: "SharedGalleryOSDiskImage", modelProperties: { - ...SharedGalleryDiskImage.type.modelProperties - } - } + ...SharedGalleryDiskImage.type.modelProperties, + }, + }, }; export const SharedGalleryDataDiskImage: coreClient.CompositeMapper = { @@ -17265,11 +17341,11 @@ export const SharedGalleryDataDiskImage: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const CommunityGallery: coreClient.CompositeMapper = { @@ -17281,25 +17357,25 @@ export const CommunityGallery: coreClient.CompositeMapper = { disclaimer: { serializedName: "properties.disclaimer", type: { - name: "String" - } + name: "String", + }, }, artifactTags: { serializedName: "properties.artifactTags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, communityMetadata: { serializedName: "properties.communityMetadata", type: { name: "Composite", - className: "CommunityGalleryMetadata" - } - } - } - } + className: "CommunityGalleryMetadata", + }, + }, + }, + }, }; export const CommunityGalleryImage: coreClient.CompositeMapper = { @@ -17312,48 +17388,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", @@ -17362,51 +17438,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" - } + name: "String", + }, }, artifactTags: { serializedName: "properties.artifactTags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const CommunityGalleryImageVersion: coreClient.CompositeMapper = { @@ -17418,43 +17494,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" - } + name: "String", + }, }, artifactTags: { serializedName: "properties.artifactTags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const VirtualMachineImage: coreClient.CompositeMapper = { @@ -17467,15 +17543,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", @@ -17484,30 +17560,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", @@ -17516,48 +17592,49 @@ 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: { @@ -17570,11 +17647,11 @@ export const SharedGallery: coreClient.CompositeMapper = { readOnly: true, type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const SharedGalleryImage: coreClient.CompositeMapper = { @@ -17587,48 +17664,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", @@ -17637,45 +17714,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" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const SharedGalleryImageVersion: coreClient.CompositeMapper = { @@ -17687,113 +17764,118 @@ 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" - } - } - } - } -}; + 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 DedicatedHostsRedeployHeaders: coreClient.CompositeMapper = { type: { @@ -17803,9 +17885,9 @@ export const DedicatedHostsRedeployHeaders: coreClient.CompositeMapper = { 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 c9493e38cfd5..d37d6833c0d0 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, @@ -82,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 = { @@ -92,9 +92,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -103,10 +103,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { @@ -116,23 +116,23 @@ export const apiVersion: OperationQueryParameter = { 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 = { @@ -141,9 +141,9 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -152,10 +152,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const contentType: OperationParameter = { @@ -165,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 = { @@ -181,9 +181,9 @@ export const resourceGroupName: OperationURLParameter = { serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const vmScaleSetName: OperationURLParameter = { @@ -192,9 +192,9 @@ export const vmScaleSetName: OperationURLParameter = { serializedName: "vmScaleSetName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const ifMatch: OperationParameter = { @@ -202,9 +202,9 @@ export const ifMatch: OperationParameter = { mapper: { serializedName: "If-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const ifNoneMatch: OperationParameter = { @@ -212,14 +212,14 @@ export const ifNoneMatch: OperationParameter = { mapper: { serializedName: "If-None-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters1: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineScaleSetUpdateMapper + mapper: VirtualMachineScaleSetUpdateMapper, }; export const forceDeletion: OperationQueryParameter = { @@ -227,9 +227,9 @@ export const forceDeletion: OperationQueryParameter = { mapper: { serializedName: "forceDeletion", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const expand: OperationQueryParameter = { @@ -237,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 = { @@ -252,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 = { @@ -268,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 = { @@ -284,9 +284,9 @@ export const platformUpdateDomain: OperationQueryParameter = { serializedName: "platformUpdateDomain", required: true, type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const zone: OperationQueryParameter = { @@ -294,9 +294,9 @@ export const zone: OperationQueryParameter = { mapper: { serializedName: "zone", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const placementGroupId: OperationQueryParameter = { @@ -304,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 = { @@ -330,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 = { @@ -345,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 = { @@ -361,9 +361,9 @@ export const instanceId: OperationURLParameter = { serializedName: "instanceId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const vmExtensionName: OperationURLParameter = { @@ -372,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 = { @@ -398,9 +398,9 @@ export const expand2: OperationQueryParameter = { serializedName: "$expand", type: { name: "Enum", - allowedValues: ["instanceView", "userData"] - } - } + allowedValues: ["instanceView", "userData"], + }, + }, }; export const virtualMachineScaleSetName: OperationURLParameter = { @@ -409,9 +409,9 @@ export const virtualMachineScaleSetName: OperationURLParameter = { serializedName: "virtualMachineScaleSetName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const filter: OperationQueryParameter = { @@ -419,9 +419,9 @@ export const filter: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const select: OperationQueryParameter = { @@ -429,9 +429,9 @@ export const select: OperationQueryParameter = { mapper: { serializedName: "$select", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const sasUriExpirationTimeInMinutes: OperationQueryParameter = { @@ -439,19 +439,19 @@ export const sasUriExpirationTimeInMinutes: OperationQueryParameter = { mapper: { serializedName: "sasUriExpirationTimeInMinutes", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: AttachDetachDataDisksRequestMapper + mapper: AttachDetachDataDisksRequestMapper, }; export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: RunCommandInputMapper + mapper: RunCommandInputMapper, }; export const accept1: OperationParameter = { @@ -461,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 = { @@ -477,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 parameters7: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineCaptureParametersMapper + mapper: VirtualMachineCaptureParametersMapper, }; export const parameters8: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineMapper + mapper: VirtualMachineMapper, }; export const parameters9: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineUpdateMapper + mapper: VirtualMachineUpdateMapper, }; export const expand3: OperationQueryParameter = { @@ -507,9 +507,9 @@ export const expand3: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const statusOnly: OperationQueryParameter = { @@ -517,9 +517,9 @@ export const statusOnly: OperationQueryParameter = { mapper: { serializedName: "statusOnly", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expand4: OperationQueryParameter = { @@ -527,19 +527,19 @@ export const expand4: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; 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 = { @@ -548,9 +548,9 @@ export const location1: OperationURLParameter = { serializedName: "location", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const publisherName: OperationURLParameter = { @@ -559,9 +559,9 @@ export const publisherName: OperationURLParameter = { serializedName: "publisherName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const offer: OperationURLParameter = { @@ -570,9 +570,9 @@ export const offer: OperationURLParameter = { serializedName: "offer", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const skus: OperationURLParameter = { @@ -581,9 +581,9 @@ export const skus: OperationURLParameter = { serializedName: "skus", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const version: OperationURLParameter = { @@ -592,9 +592,9 @@ export const version: OperationURLParameter = { serializedName: "version", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const top: OperationQueryParameter = { @@ -602,9 +602,9 @@ export const top: OperationQueryParameter = { mapper: { serializedName: "$top", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const orderby: OperationQueryParameter = { @@ -612,9 +612,9 @@ export const orderby: OperationQueryParameter = { mapper: { serializedName: "$orderby", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const edgeZone: OperationURLParameter = { @@ -623,9 +623,9 @@ export const edgeZone: OperationURLParameter = { serializedName: "edgeZone", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const typeParam: OperationURLParameter = { @@ -634,14 +634,14 @@ export const typeParam: OperationURLParameter = { serializedName: "type", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters11: OperationParameter = { parameterPath: "parameters", - mapper: AvailabilitySetMapper + mapper: AvailabilitySetMapper, }; export const availabilitySetName: OperationURLParameter = { @@ -650,19 +650,19 @@ export const availabilitySetName: OperationURLParameter = { serializedName: "availabilitySetName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters12: OperationParameter = { parameterPath: "parameters", - mapper: AvailabilitySetUpdateMapper + mapper: AvailabilitySetUpdateMapper, }; export const parameters13: OperationParameter = { parameterPath: "parameters", - mapper: ProximityPlacementGroupMapper + mapper: ProximityPlacementGroupMapper, }; export const proximityPlacementGroupName: OperationURLParameter = { @@ -671,14 +671,14 @@ export const proximityPlacementGroupName: OperationURLParameter = { serializedName: "proximityPlacementGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters14: OperationParameter = { parameterPath: "parameters", - mapper: ProximityPlacementGroupUpdateMapper + mapper: ProximityPlacementGroupUpdateMapper, }; export const includeColocationStatus: OperationQueryParameter = { @@ -686,14 +686,14 @@ export const includeColocationStatus: OperationQueryParameter = { mapper: { serializedName: "includeColocationStatus", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters15: OperationParameter = { parameterPath: "parameters", - mapper: DedicatedHostGroupMapper + mapper: DedicatedHostGroupMapper, }; export const hostGroupName: OperationURLParameter = { @@ -702,19 +702,19 @@ export const hostGroupName: OperationURLParameter = { serializedName: "hostGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters16: OperationParameter = { parameterPath: "parameters", - mapper: DedicatedHostGroupUpdateMapper + mapper: DedicatedHostGroupUpdateMapper, }; export const parameters17: OperationParameter = { parameterPath: "parameters", - mapper: DedicatedHostMapper + mapper: DedicatedHostMapper, }; export const hostName: OperationURLParameter = { @@ -723,47 +723,47 @@ export const hostName: OperationURLParameter = { serializedName: "hostName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; 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 parameters19: OperationParameter = { parameterPath: "parameters", - mapper: SshPublicKeyResourceMapper + mapper: SshPublicKeyResourceMapper, }; export const sshPublicKeyName: OperationURLParameter = { @@ -772,24 +772,24 @@ export const sshPublicKeyName: OperationURLParameter = { serializedName: "sshPublicKeyName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters20: OperationParameter = { parameterPath: "parameters", - mapper: SshPublicKeyUpdateResourceMapper + mapper: SshPublicKeyUpdateResourceMapper, }; export const parameters21: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: SshGenerateKeyPairInputParametersMapper + mapper: SshGenerateKeyPairInputParametersMapper, }; export const parameters22: OperationParameter = { parameterPath: "parameters", - mapper: ImageMapper + mapper: ImageMapper, }; export const imageName: OperationURLParameter = { @@ -798,19 +798,19 @@ export const imageName: OperationURLParameter = { serializedName: "imageName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters23: OperationParameter = { parameterPath: "parameters", - mapper: ImageUpdateMapper + mapper: ImageUpdateMapper, }; export const parameters24: OperationParameter = { parameterPath: "parameters", - mapper: RestorePointCollectionMapper + mapper: RestorePointCollectionMapper, }; export const restorePointCollectionName: OperationURLParameter = { @@ -819,14 +819,14 @@ export const restorePointCollectionName: OperationURLParameter = { serializedName: "restorePointCollectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters25: OperationParameter = { parameterPath: "parameters", - mapper: RestorePointCollectionUpdateMapper + mapper: RestorePointCollectionUpdateMapper, }; export const expand5: OperationQueryParameter = { @@ -834,14 +834,14 @@ export const expand5: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters26: OperationParameter = { parameterPath: "parameters", - mapper: RestorePointMapper + mapper: RestorePointMapper, }; export const restorePointName: OperationURLParameter = { @@ -850,9 +850,9 @@ export const restorePointName: OperationURLParameter = { serializedName: "restorePointName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expand6: OperationQueryParameter = { @@ -860,14 +860,14 @@ export const expand6: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters27: OperationParameter = { parameterPath: "parameters", - mapper: CapacityReservationGroupMapper + mapper: CapacityReservationGroupMapper, }; export const capacityReservationGroupName: OperationURLParameter = { @@ -876,14 +876,14 @@ export const capacityReservationGroupName: OperationURLParameter = { serializedName: "capacityReservationGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters28: OperationParameter = { parameterPath: "parameters", - mapper: CapacityReservationGroupUpdateMapper + mapper: CapacityReservationGroupUpdateMapper, }; export const expand7: OperationQueryParameter = { @@ -891,9 +891,9 @@ export const expand7: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expand8: OperationQueryParameter = { @@ -901,14 +901,14 @@ export const expand8: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters29: OperationParameter = { parameterPath: "parameters", - mapper: CapacityReservationMapper + mapper: CapacityReservationMapper, }; export const capacityReservationName: OperationURLParameter = { @@ -917,14 +917,14 @@ export const capacityReservationName: OperationURLParameter = { serializedName: "capacityReservationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters30: OperationParameter = { parameterPath: "parameters", - mapper: CapacityReservationUpdateMapper + mapper: CapacityReservationUpdateMapper, }; export const expand9: OperationQueryParameter = { @@ -932,19 +932,19 @@ export const expand9: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters31: OperationParameter = { parameterPath: "parameters", - mapper: RequestRateByIntervalInputMapper + mapper: RequestRateByIntervalInputMapper, }; export const parameters32: OperationParameter = { parameterPath: "parameters", - mapper: ThrottledRequestsInputMapper + mapper: ThrottledRequestsInputMapper, }; export const commandId: OperationURLParameter = { @@ -953,14 +953,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 = { @@ -969,19 +969,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 = { @@ -990,36 +990,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 = { @@ -1028,19 +1028,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 = { @@ -1049,14 +1049,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 = { @@ -1065,14 +1065,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 = { @@ -1081,9 +1081,9 @@ export const vmRestorePointName: OperationURLParameter = { serializedName: "vmRestorePointName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const diskRestorePointName: OperationURLParameter = { @@ -1092,14 +1092,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 = { @@ -1108,14 +1108,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 = { @@ -1125,9 +1125,9 @@ export const apiVersion2: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const includeExtendedLocations: OperationQueryParameter = { @@ -1135,14 +1135,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 = { @@ -1151,26 +1151,26 @@ export const galleryName: OperationURLParameter = { serializedName: "galleryName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion3: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-08-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 = { @@ -1178,9 +1178,9 @@ export const select1: OperationQueryParameter = { mapper: { serializedName: "$select", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expand10: OperationQueryParameter = { @@ -1188,14 +1188,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 = { @@ -1204,19 +1204,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 = { @@ -1225,14 +1225,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 = { @@ -1240,14 +1240,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 = { @@ -1256,19 +1256,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 = { @@ -1277,19 +1277,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 = { @@ -1297,9 +1297,9 @@ export const sharedTo: OperationQueryParameter = { mapper: { serializedName: "sharedTo", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryUniqueName: OperationURLParameter = { @@ -1308,9 +1308,9 @@ export const galleryUniqueName: OperationURLParameter = { serializedName: "galleryUniqueName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const publicGalleryName: OperationURLParameter = { @@ -1319,9 +1319,9 @@ export const publicGalleryName: OperationURLParameter = { serializedName: "publicGalleryName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const roleInstanceName: OperationURLParameter = { @@ -1330,9 +1330,9 @@ export const roleInstanceName: OperationURLParameter = { serializedName: "roleInstanceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const cloudServiceName: OperationURLParameter = { @@ -1341,9 +1341,9 @@ export const cloudServiceName: OperationURLParameter = { serializedName: "cloudServiceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion4: OperationQueryParameter = { @@ -1353,9 +1353,9 @@ export const apiVersion4: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const accept2: OperationParameter = { @@ -1365,9 +1365,9 @@ export const accept2: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const roleName: OperationURLParameter = { @@ -1376,29 +1376,29 @@ export const roleName: OperationURLParameter = { serializedName: "roleName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters33: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: CloudServiceMapper + mapper: CloudServiceMapper, }; export const parameters34: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: CloudServiceUpdateMapper + mapper: CloudServiceUpdateMapper, }; export const parameters35: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: RoleInstancesMapper + mapper: RoleInstancesMapper, }; export const parameters36: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: UpdateDomainMapper + mapper: UpdateDomainMapper, }; export const updateDomain: OperationURLParameter = { @@ -1407,9 +1407,9 @@ export const updateDomain: OperationURLParameter = { serializedName: "updateDomain", required: true, type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const osVersionName: OperationURLParameter = { @@ -1418,9 +1418,9 @@ export const osVersionName: OperationURLParameter = { serializedName: "osVersionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const osFamilyName: OperationURLParameter = { @@ -1429,7 +1429,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 7560d319dff3..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,16 +386,15 @@ 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.parameters11, queryParameters: [Parameters.apiVersion], @@ -403,23 +402,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { 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.parameters12, queryParameters: [Parameters.apiVersion], @@ -427,151 +425,146 @@ const updateOperationSpec: coreClient.OperationSpec = { 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 acfd90ebf1eb..27f005366b42 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; @@ -185,11 +186,11 @@ export class CapacityReservationGroupsImpl resourceGroupName: string, capacityReservationGroupName: string, parameters: CapacityReservationGroup, - options?: CapacityReservationGroupsCreateOrUpdateOptionalParams + options?: CapacityReservationGroupsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -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,19 +317,18 @@ 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.parameters27, queryParameters: [Parameters.apiVersion], @@ -336,23 +336,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { 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.parameters28, queryParameters: [Parameters.apiVersion], @@ -360,129 +359,125 @@ const updateOperationSpec: coreClient.OperationSpec = { 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], 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 559fd7c0e687..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,25 +508,24 @@ 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.parameters29, queryParameters: [Parameters.apiVersion], @@ -538,32 +534,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { 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.parameters30, queryParameters: [Parameters.apiVersion], @@ -572,15 +567,14 @@ const updateOperationSpec: coreClient.OperationSpec = { 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 75f18c5b18a4..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,25 +1031,24 @@ 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.parameters33, queryParameters: [Parameters.apiVersion4], @@ -1066,32 +1056,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { 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.parameters34, queryParameters: [Parameters.apiVersion4], @@ -1099,15 +1088,14 @@ const updateOperationSpec: coreClient.OperationSpec = { 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,8 +1247,8 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion4], @@ -1275,15 +1256,14 @@ const restartOperationSpec: coreClient.OperationSpec = { 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,8 +1271,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion4], @@ -1300,15 +1280,14 @@ const reimageOperationSpec: coreClient.OperationSpec = { 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,8 +1295,8 @@ const rebuildOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion4], @@ -1325,15 +1304,14 @@ const rebuildOperationSpec: coreClient.OperationSpec = { 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,8 +1319,8 @@ const deleteInstancesOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion4], @@ -1350,48 +1328,48 @@ const deleteInstancesOperationSpec: coreClient.OperationSpec = { 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 7b8cb805bb4a..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,8 +289,8 @@ const walkUpdateDomainOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters36, queryParameters: [Parameters.apiVersion4], @@ -300,23 +299,22 @@ const walkUpdateDomainOperationSpec: coreClient.OperationSpec = { 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 c19ce7be2462..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,19 +310,18 @@ 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.parameters15, queryParameters: [Parameters.apiVersion], @@ -330,23 +329,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { 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.parameters16, queryParameters: [Parameters.apiVersion], @@ -354,129 +352,125 @@ const updateOperationSpec: coreClient.OperationSpec = { 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 e2a6377b9fdd..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 { @@ -37,7 +37,7 @@ import { DedicatedHostsRestartOptionalParams, DedicatedHostsRedeployOptionalParams, DedicatedHostsRedeployResponse, - DedicatedHostsListByHostGroupNextResponse + DedicatedHostsListByHostGroupNextResponse, } from "../models"; /// @@ -63,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() { @@ -85,9 +85,9 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName, hostGroupName, options, - settings + settings, ); - } + }, }; } @@ -95,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; @@ -103,7 +103,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { result = await this._listByHostGroup( resourceGroupName, hostGroupName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -115,7 +115,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName, hostGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -127,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; } @@ -150,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() { @@ -174,9 +174,9 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName, hostName, options, - settings + settings, ); - } + }, }; } @@ -185,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 || []; } @@ -201,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; } @@ -226,7 +226,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHost, - options?: DedicatedHostsCreateOrUpdateOptionalParams + options?: DedicatedHostsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -235,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); @@ -258,8 +257,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -267,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; @@ -301,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(); } @@ -326,7 +325,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHostUpdate, - options?: DedicatedHostsUpdateOptionalParams + options?: DedicatedHostsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -335,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); @@ -358,8 +356,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -367,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; @@ -401,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(); } @@ -424,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); @@ -451,8 +448,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -460,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; @@ -489,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(); } @@ -511,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, ); } @@ -529,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, ); } @@ -551,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); @@ -578,8 +574,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -587,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; @@ -619,13 +615,13 @@ 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(); } @@ -644,7 +640,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRedeployOptionalParams + options?: DedicatedHostsRedeployOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -653,21 +649,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); @@ -676,8 +671,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -685,22 +680,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, options }, - spec: redeployOperationSpec + spec: redeployOperationSpec, }); const poller = await createHttpPoller< DedicatedHostsRedeployResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -720,13 +715,13 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRedeployOptionalParams + options?: DedicatedHostsRedeployOptionalParams, ): Promise { const poller = await this.beginRedeploy( resourceGroupName, hostGroupName, hostName, - options + options, ); return poller.pollUntilDone(); } @@ -743,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, ); } @@ -762,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, ); } } @@ -774,25 +769,24 @@ 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.parameters17, queryParameters: [Parameters.apiVersion], @@ -801,32 +795,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { 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.parameters18, queryParameters: [Parameters.apiVersion], @@ -835,15 +828,14 @@ const updateOperationSpec: coreClient.OperationSpec = { 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: {}, @@ -851,8 +843,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -860,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: [ @@ -883,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: {}, @@ -920,8 +909,8 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -929,31 +918,30 @@ const restartOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName, - Parameters.hostName + Parameters.hostName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const redeployOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/redeploy", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/redeploy", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.DedicatedHostsRedeployHeaders + headersMapper: Mappers.DedicatedHostsRedeployHeaders, }, 201: { - headersMapper: Mappers.DedicatedHostsRedeployHeaders + headersMapper: Mappers.DedicatedHostsRedeployHeaders, }, 202: { - headersMapper: Mappers.DedicatedHostsRedeployHeaders + headersMapper: Mappers.DedicatedHostsRedeployHeaders, }, 204: { - headersMapper: Mappers.DedicatedHostsRedeployHeaders + headersMapper: Mappers.DedicatedHostsRedeployHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -961,22 +949,21 @@ const redeployOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName1, - Parameters.hostName1 + 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: [ @@ -984,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 b2fb10422e3f..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,25 +523,24 @@ 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.parameters22, queryParameters: [Parameters.apiVersion], @@ -552,32 +548,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { 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.parameters23, queryParameters: [Parameters.apiVersion], @@ -585,15 +580,14 @@ const updateOperationSpec: coreClient.OperationSpec = { 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 d5466c6b1c66..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.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.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 1427c04ff5d3..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,19 +305,18 @@ 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.parameters13, queryParameters: [Parameters.apiVersion], @@ -325,23 +324,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { 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.parameters14, queryParameters: [Parameters.apiVersion], @@ -349,128 +347,124 @@ const updateOperationSpec: coreClient.OperationSpec = { 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 eba6ad238f07..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,19 +373,18 @@ 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.parameters24, queryParameters: [Parameters.apiVersion], @@ -394,23 +392,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { 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.parameters25, queryParameters: [Parameters.apiVersion], @@ -418,15 +415,14 @@ const updateOperationSpec: coreClient.OperationSpec = { 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 e327f4898ff8..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,25 +264,24 @@ 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.parameters26, queryParameters: [Parameters.apiVersion], @@ -293,15 +290,14 @@ const createOperationSpec: coreClient.OperationSpec = { 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 bb3617823018..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,57 +330,54 @@ 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.parameters19, queryParameters: [Parameters.apiVersion], @@ -388,23 +385,22 @@ const createOperationSpec: coreClient.OperationSpec = { 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.parameters20, queryParameters: [Parameters.apiVersion], @@ -412,66 +408,63 @@ const updateOperationSpec: coreClient.OperationSpec = { 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], @@ -479,48 +472,48 @@ const generateKeyPairOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.sshPublicKeyName + Parameters.sshPublicKeyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + 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 eb09a451ec96..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 { @@ -50,13 +50,14 @@ import { RunCommandInput, VirtualMachineScaleSetVMsRunCommandOptionalParams, VirtualMachineScaleSetVMsRunCommandResponse, - VirtualMachineScaleSetVMsListNextResponse + VirtualMachineScaleSetVMsListNextResponse, } from "../models"; /// /** Class containing VirtualMachineScaleSetVMs operations. */ export class VirtualMachineScaleSetVMsImpl - implements VirtualMachineScaleSetVMs { + implements VirtualMachineScaleSetVMs +{ private readonly client: ComputeManagementClient; /** @@ -76,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() { @@ -98,9 +99,9 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName, virtualMachineScaleSetName, options, - settings + settings, ); - } + }, }; } @@ -108,7 +109,7 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, virtualMachineScaleSetName: string, options?: VirtualMachineScaleSetVMsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetVMsListResponse; let continuationToken = settings?.continuationToken; @@ -116,7 +117,7 @@ export class VirtualMachineScaleSetVMsImpl result = await this._list( resourceGroupName, virtualMachineScaleSetName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -128,7 +129,7 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName, virtualMachineScaleSetName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -140,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; } @@ -162,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); @@ -189,8 +189,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -198,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; @@ -227,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(); } @@ -250,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); @@ -277,8 +276,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -286,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; @@ -316,13 +315,13 @@ 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(); } @@ -338,7 +337,7 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -347,21 +346,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); @@ -370,8 +368,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -379,22 +377,22 @@ 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: approveRollingUpgradeOperationSpec + spec: approveRollingUpgradeOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMsApproveRollingUpgradeResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -411,13 +409,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams, ): Promise { const poller = await this.beginApproveRollingUpgrade( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -435,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); @@ -462,8 +459,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -471,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; @@ -502,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(); } @@ -526,7 +523,7 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, parameters: VirtualMachineScaleSetVM, - options?: VirtualMachineScaleSetVMsUpdateOptionalParams + options?: VirtualMachineScaleSetVMsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -535,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); @@ -558,8 +554,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -567,8 +563,8 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -579,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; @@ -607,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(); } @@ -630,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); @@ -657,8 +652,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -666,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; @@ -695,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(); } @@ -717,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, ); } @@ -736,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, ); } @@ -753,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, ); } @@ -774,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); @@ -801,8 +795,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -810,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; @@ -841,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(); } @@ -863,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); @@ -890,8 +883,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -899,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; @@ -928,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(); } @@ -950,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); @@ -977,8 +969,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -986,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; @@ -1015,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(); } @@ -1038,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); @@ -1065,8 +1056,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1074,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; @@ -1104,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(); } @@ -1126,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, ); } @@ -1145,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); @@ -1172,8 +1162,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1181,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; @@ -1210,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(); } @@ -1232,11 +1222,11 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsSimulateEvictionOptionalParams + options?: VirtualMachineScaleSetVMsSimulateEvictionOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, options }, - simulateEvictionOperationSpec + simulateEvictionOperationSpec, ); } @@ -1254,7 +1244,7 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams + options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1263,21 +1253,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); @@ -1286,8 +1275,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1295,8 +1284,8 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1307,9 +1296,9 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName, instanceId, parameters, - options + options, }, - spec: attachDetachDataDisksOperationSpec + spec: attachDetachDataDisksOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMsAttachDetachDataDisksResponse, @@ -1317,7 +1306,7 @@ export class VirtualMachineScaleSetVMsImpl >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1337,14 +1326,14 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams + options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams, ): Promise { const poller = await this.beginAttachDetachDataDisks( resourceGroupName, vmScaleSetName, instanceId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1362,7 +1351,7 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, parameters: RunCommandInput, - options?: VirtualMachineScaleSetVMsRunCommandOptionalParams + options?: VirtualMachineScaleSetVMsRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1371,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); @@ -1394,8 +1382,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1403,8 +1391,8 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1415,9 +1403,9 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName, instanceId, parameters, - options + options, }, - spec: runCommandOperationSpec + spec: runCommandOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMsRunCommandResponse, @@ -1425,7 +1413,7 @@ export class VirtualMachineScaleSetVMsImpl >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1444,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(); } @@ -1467,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, ); } } @@ -1479,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: {}, @@ -1488,8 +1475,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmScaleSetVMReimageInput, queryParameters: [Parameters.apiVersion], @@ -1498,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: {}, @@ -1514,8 +1500,8 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1523,35 +1509,34 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const approveRollingUpgradeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/approveRollingUpgrade", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/approveRollingUpgrade", httpMethod: "POST", responses: { 200: { headersMapper: - Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders, }, 201: { headersMapper: - Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders, }, 202: { headersMapper: - Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders, }, 204: { headersMapper: - Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1559,14 +1544,13 @@ const approveRollingUpgradeOperationSpec: 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: {}, @@ -1574,8 +1558,8 @@ const deallocateOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1583,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], @@ -1616,20 +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 + Parameters.ifNoneMatch, ], 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: {}, @@ -1637,8 +1619,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.forceDeletion], urlParameters: [ @@ -1646,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: [ @@ -1669,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: [ @@ -1692,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: {}, @@ -1734,8 +1712,8 @@ const powerOffOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.skipShutdown], urlParameters: [ @@ -1743,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: {}, @@ -1758,8 +1735,8 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1767,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: {}, @@ -1782,8 +1758,8 @@ const startOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1791,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: {}, @@ -1806,8 +1781,8 @@ const redeployOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1815,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: {}, @@ -1856,8 +1829,8 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1865,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: [ @@ -1886,31 +1858,30 @@ const simulateEvictionOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const attachDetachDataDisksOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/attachDetachDataDisks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/attachDetachDataDisks", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, 201: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, 202: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, 204: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], @@ -1919,29 +1890,28 @@ const attachDetachDataDisksOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const runCommandOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 201: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 202: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 204: { - bodyMapper: Mappers.RunCommandResult - } + bodyMapper: Mappers.RunCommandResult, + }, }, requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], @@ -1950,30 +1920,30 @@ const runCommandOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + 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 c305e0a6841e..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 { @@ -72,7 +72,7 @@ import { VirtualMachineScaleSetsListNextResponse, VirtualMachineScaleSetsListAllNextResponse, VirtualMachineScaleSetsListSkusNextResponse, - VirtualMachineScaleSetsGetOSUpgradeHistoryNextResponse + VirtualMachineScaleSetsGetOSUpgradeHistoryNextResponse, } from "../models"; /// @@ -95,7 +95,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { */ public listByLocation( location: string, - options?: VirtualMachineScaleSetsListByLocationOptionalParams + options?: VirtualMachineScaleSetsListByLocationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByLocationPagingAll(location, options); return { @@ -110,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; @@ -132,7 +132,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { result = await this._listByLocationNext( location, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -143,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; @@ -157,7 +157,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { */ public list( resourceGroupName: string, - options?: VirtualMachineScaleSetsListOptionalParams + options?: VirtualMachineScaleSetsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -172,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; @@ -194,7 +194,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { result = await this._listNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -205,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; @@ -219,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 { @@ -234,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; @@ -261,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; @@ -278,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() { @@ -300,9 +300,9 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName, vmScaleSetName, options, - settings + settings, ); - } + }, }; } @@ -310,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; @@ -326,7 +326,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName, vmScaleSetName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -338,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; } @@ -358,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() { @@ -380,9 +380,9 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName, vmScaleSetName, options, - settings + settings, ); - } + }, }; } @@ -390,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; @@ -398,7 +398,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { result = await this._getOSUpgradeHistory( resourceGroupName, vmScaleSetName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -410,7 +410,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName, vmScaleSetName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -422,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; } @@ -440,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, ); } @@ -459,7 +459,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, - options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -468,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); @@ -491,8 +490,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -500,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; @@ -532,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(); } @@ -554,7 +553,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSetUpdate, - options?: VirtualMachineScaleSetsUpdateOptionalParams + options?: VirtualMachineScaleSetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -563,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); @@ -586,8 +584,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -595,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; @@ -627,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(); } @@ -647,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); @@ -674,8 +671,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -683,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; @@ -710,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(); } @@ -729,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, ); } @@ -748,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); @@ -775,8 +771,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -784,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; @@ -813,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(); } @@ -834,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); @@ -861,8 +856,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -870,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; @@ -899,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(); } @@ -919,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, ); } @@ -934,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, ); } @@ -949,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); } @@ -964,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, ); } @@ -981,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, ); } @@ -1000,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); @@ -1027,8 +1021,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1036,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; @@ -1065,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(); } @@ -1084,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); @@ -1111,8 +1104,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1120,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; @@ -1147,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(); } @@ -1166,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); @@ -1193,8 +1185,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1202,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; @@ -1229,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(); } @@ -1248,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); @@ -1275,8 +1266,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1284,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; @@ -1312,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(); } @@ -1332,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); @@ -1359,8 +1349,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1368,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; @@ -1396,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(); } @@ -1418,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); @@ -1445,8 +1434,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1454,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; @@ -1484,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(); } @@ -1505,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); @@ -1532,8 +1520,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1541,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; @@ -1570,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(); } @@ -1592,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); @@ -1619,8 +1606,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1628,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; @@ -1657,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(); } @@ -1677,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); @@ -1704,8 +1690,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1713,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; @@ -1741,12 +1727,12 @@ 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(); } @@ -1760,7 +1746,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginApproveRollingUpgrade( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1769,21 +1755,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); @@ -1792,8 +1777,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1801,22 +1786,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, options }, - spec: approveRollingUpgradeOperationSpec + spec: approveRollingUpgradeOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetsApproveRollingUpgradeResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1831,12 +1816,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginApproveRollingUpgradeAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, ): Promise { const poller = await this.beginApproveRollingUpgrade( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1853,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, ); } @@ -1874,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, ); } @@ -1893,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); @@ -1920,8 +1902,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1929,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; @@ -1958,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(); } @@ -1978,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, ); } @@ -1995,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, ); } @@ -2010,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, ); } @@ -2029,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, ); } @@ -2048,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, ); } } @@ -2060,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], @@ -2107,37 +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 + Parameters.ifNoneMatch, ], 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], @@ -2145,20 +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 + Parameters.ifNoneMatch, ], 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: {}, @@ -2166,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: {}, @@ -2211,8 +2187,8 @@ const deallocateOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion, Parameters.hibernate], @@ -2220,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: {}, @@ -2236,8 +2211,8 @@ const deleteInstancesOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs1, queryParameters: [Parameters.apiVersion, Parameters.forceDeletion], @@ -2245,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: {}, @@ -2365,8 +2334,8 @@ const powerOffOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion, Parameters.skipShutdown], @@ -2374,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: {}, @@ -2390,8 +2358,8 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2399,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: {}, @@ -2415,8 +2382,8 @@ const startOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2424,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: {}, @@ -2440,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: {}, @@ -2463,8 +2428,8 @@ const redeployOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2472,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: {}, @@ -2488,8 +2452,8 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2497,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: {}, @@ -2513,8 +2476,8 @@ const updateInstancesOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs1, queryParameters: [Parameters.apiVersion], @@ -2522,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: {}, @@ -2538,8 +2500,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmScaleSetReimageInput, queryParameters: [Parameters.apiVersion], @@ -2547,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: {}, @@ -2563,8 +2524,8 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2572,32 +2533,35 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const approveRollingUpgradeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/approveRollingUpgrade", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/approveRollingUpgrade", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders + headersMapper: + Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders, }, 201: { - headersMapper: Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders + headersMapper: + Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders, }, 202: { - headersMapper: Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders + headersMapper: + Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders, }, 204: { - headersMapper: Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders + headersMapper: + Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2605,48 +2569,47 @@ const approveRollingUpgradeOperationSpec: 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", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.RecoveryWalkResponse +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, + }, }, - 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 -}; + 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], @@ -2654,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: {}, @@ -2670,8 +2632,8 @@ const setOrchestrationServiceStateOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], @@ -2679,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 aae8dde2f61b..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 { @@ -72,7 +72,7 @@ import { VirtualMachinesRunCommandResponse, VirtualMachinesListByLocationNextResponse, VirtualMachinesListNextResponse, - VirtualMachinesListAllNextResponse + VirtualMachinesListAllNextResponse, } from "../models"; /// @@ -95,7 +95,7 @@ export class VirtualMachinesImpl implements VirtualMachines { */ public listByLocation( location: string, - options?: VirtualMachinesListByLocationOptionalParams + options?: VirtualMachinesListByLocationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByLocationPagingAll(location, options); return { @@ -110,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; @@ -132,7 +132,7 @@ export class VirtualMachinesImpl implements VirtualMachines { result = await this._listByLocationNext( location, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -143,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; @@ -158,7 +158,7 @@ export class VirtualMachinesImpl implements VirtualMachines { */ public list( resourceGroupName: string, - options?: VirtualMachinesListOptionalParams + options?: VirtualMachinesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -173,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; @@ -195,7 +195,7 @@ export class VirtualMachinesImpl implements VirtualMachines { result = await this._listNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -206,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; @@ -219,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 { @@ -234,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; @@ -261,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; @@ -277,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() { @@ -299,9 +299,9 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName, vmName, options, - settings + settings, ); - } + }, }; } @@ -309,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); @@ -319,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; } @@ -337,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, ); } @@ -357,7 +357,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineCaptureParameters, - options?: VirtualMachinesCaptureOptionalParams + options?: VirtualMachinesCaptureOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -366,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); @@ -389,8 +388,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -398,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, @@ -414,7 +413,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -432,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(); } @@ -455,7 +454,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -464,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); @@ -487,8 +485,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -496,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; @@ -529,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(); } @@ -551,7 +549,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineUpdate, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -560,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); @@ -583,8 +580,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -592,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; @@ -624,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(); } @@ -644,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); @@ -671,8 +667,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -680,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; @@ -707,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(); @@ -722,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, ); } @@ -739,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, ); } @@ -757,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); @@ -784,8 +779,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -793,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; @@ -821,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(); } @@ -841,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); @@ -868,8 +862,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -877,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; @@ -905,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(); } @@ -929,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, ); } @@ -945,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, ); } @@ -959,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); } @@ -973,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, ); } @@ -991,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); @@ -1018,8 +1011,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1027,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; @@ -1055,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(); @@ -1070,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); @@ -1097,8 +1089,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1106,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; @@ -1133,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(); @@ -1148,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); @@ -1175,8 +1166,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1184,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; @@ -1211,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(); @@ -1226,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); @@ -1253,8 +1243,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1262,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; @@ -1289,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(); @@ -1304,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); @@ -1331,8 +1320,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1340,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; @@ -1367,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(); @@ -1387,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); @@ -1414,8 +1402,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1423,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; @@ -1455,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(); @@ -1470,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, ); } @@ -1487,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); @@ -1514,8 +1501,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1523,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; @@ -1550,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(); } @@ -1569,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, ); } @@ -1586,7 +1573,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginAssessPatches( resourceGroupName: string, vmName: string, - options?: VirtualMachinesAssessPatchesOptionalParams + options?: VirtualMachinesAssessPatchesOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1595,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); @@ -1618,8 +1604,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1627,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, @@ -1643,7 +1629,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1658,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(); } @@ -1679,7 +1665,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, installPatchesInput: VirtualMachineInstallPatchesParameters, - options?: VirtualMachinesInstallPatchesOptionalParams + options?: VirtualMachinesInstallPatchesOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1688,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); @@ -1711,8 +1696,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1720,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, @@ -1736,7 +1721,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1753,13 +1738,13 @@ 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(); } @@ -1776,7 +1761,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachinesAttachDetachDataDisksOptionalParams + options?: VirtualMachinesAttachDetachDataDisksOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1785,21 +1770,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); @@ -1808,8 +1792,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1817,15 +1801,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: attachDetachDataDisksOperationSpec + spec: attachDetachDataDisksOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesAttachDetachDataDisksResponse, @@ -1833,7 +1817,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1851,13 +1835,13 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachinesAttachDetachDataDisksOptionalParams + options?: VirtualMachinesAttachDetachDataDisksOptionalParams, ): Promise { const poller = await this.beginAttachDetachDataDisks( resourceGroupName, vmName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1873,7 +1857,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: RunCommandInput, - options?: VirtualMachinesRunCommandOptionalParams + options?: VirtualMachinesRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1882,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); @@ -1905,8 +1888,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1914,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, @@ -1930,7 +1913,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1947,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(); } @@ -1967,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, ); } @@ -1984,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, ); } @@ -1999,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, ); } } @@ -2011,46 +1994,44 @@ 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.parameters7, queryParameters: [Parameters.apiVersion], @@ -2058,32 +2039,31 @@ const captureOperationSpec: coreClient.OperationSpec = { 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.parameters8, queryParameters: [Parameters.apiVersion], @@ -2091,37 +2071,36 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [ Parameters.accept, Parameters.contentType, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], 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.parameters9, queryParameters: [Parameters.apiVersion], @@ -2129,20 +2108,19 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [ Parameters.accept, Parameters.contentType, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], 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: {}, @@ -2150,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: {}, @@ -2217,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: {}, @@ -2240,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: {}, @@ -2352,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: {}, @@ -2375,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: {}, @@ -2398,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: {}, @@ -2421,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: {}, @@ -2444,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: {}, @@ -2467,8 +2431,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], @@ -2476,40 +2440,38 @@ const reimageOperationSpec: coreClient.OperationSpec = { 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: {}, @@ -2517,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], @@ -2608,32 +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 attachDetachDataDisksOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/attachDetachDataDisks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/attachDetachDataDisks", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, 201: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, 202: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, 204: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], @@ -2641,29 +2599,28 @@ const attachDetachDataDisksOperationSpec: 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", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 201: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 202: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 204: { - bodyMapper: Mappers.RunCommandResult - } + bodyMapper: Mappers.RunCommandResult, + }, }, requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], @@ -2671,68 +2628,68 @@ const runCommandOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + 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 1dd3210dd776..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,7 +40,7 @@ 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 @@ -55,7 +55,7 @@ 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, @@ -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 35cc345ee081..5d21aed8dcee 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts @@ -22,7 +22,7 @@ import { DedicatedHostsGetResponse, DedicatedHostsRestartOptionalParams, DedicatedHostsRedeployOptionalParams, - DedicatedHostsRedeployResponse + DedicatedHostsRedeployResponse, } from "../models"; /// @@ -38,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: @@ -52,7 +52,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsListAvailableSizesOptionalParams + options?: DedicatedHostsListAvailableSizesOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a dedicated host . @@ -67,7 +67,7 @@ export interface DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHost, - options?: DedicatedHostsCreateOrUpdateOptionalParams + options?: DedicatedHostsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -87,7 +87,7 @@ export interface DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHost, - options?: DedicatedHostsCreateOrUpdateOptionalParams + options?: DedicatedHostsCreateOrUpdateOptionalParams, ): Promise; /** * Update a dedicated host . @@ -102,7 +102,7 @@ export interface DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHostUpdate, - options?: DedicatedHostsUpdateOptionalParams + options?: DedicatedHostsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -122,7 +122,7 @@ export interface DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHostUpdate, - options?: DedicatedHostsUpdateOptionalParams + options?: DedicatedHostsUpdateOptionalParams, ): Promise; /** * Delete a dedicated host. @@ -135,7 +135,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsDeleteOptionalParams + options?: DedicatedHostsDeleteOptionalParams, ): Promise, void>>; /** * Delete a dedicated host. @@ -148,7 +148,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsDeleteOptionalParams + options?: DedicatedHostsDeleteOptionalParams, ): Promise; /** * Retrieves information about a dedicated host. @@ -161,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 @@ -177,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 @@ -193,7 +193,7 @@ 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 @@ -209,7 +209,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRedeployOptionalParams + options?: DedicatedHostsRedeployOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -230,6 +230,6 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRedeployOptionalParams + 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 72505ad04bab..faba210cac60 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts @@ -36,7 +36,7 @@ import { VirtualMachineScaleSetVMsAttachDetachDataDisksResponse, RunCommandInput, VirtualMachineScaleSetVMsRunCommandOptionalParams, - VirtualMachineScaleSetVMsRunCommandResponse + VirtualMachineScaleSetVMsRunCommandResponse, } from "../models"; /// @@ -51,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. @@ -64,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. @@ -77,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 @@ -91,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 @@ -105,7 +105,7 @@ 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. @@ -118,7 +118,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -136,7 +136,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams, ): Promise; /** * Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and @@ -151,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 @@ -166,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. @@ -181,7 +181,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, parameters: VirtualMachineScaleSetVM, - options?: VirtualMachineScaleSetVMsUpdateOptionalParams + options?: VirtualMachineScaleSetVMsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -201,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. @@ -214,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. @@ -227,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. @@ -240,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. @@ -253,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 @@ -268,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 @@ -283,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. @@ -296,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. @@ -309,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. @@ -322,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. @@ -335,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 @@ -349,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 @@ -363,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. @@ -376,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. @@ -389,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. @@ -402,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. @@ -415,7 +415,7 @@ 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. @@ -431,7 +431,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams + options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -452,7 +452,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams + options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams, ): Promise; /** * Run command on a virtual machine in a VM scale set. @@ -467,7 +467,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, parameters: RunCommandInput, - options?: VirtualMachineScaleSetVMsRunCommandOptionalParams + options?: VirtualMachineScaleSetVMsRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -487,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 6b7366c5365b..719d183aa34b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts @@ -46,7 +46,7 @@ import { VMScaleSetConvertToSinglePlacementGroupInput, VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams, OrchestrationServiceStateInput, - VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams + VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams, } from "../models"; /// @@ -59,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. @@ -68,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. @@ -77,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 @@ -89,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. @@ -100,7 +100,7 @@ export interface VirtualMachineScaleSets { listOSUpgradeHistory( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams + options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a VM scale set. @@ -113,7 +113,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, - options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -131,7 +131,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, - options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams, ): Promise; /** * Update a VM scale set. @@ -144,7 +144,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSetUpdate, - options?: VirtualMachineScaleSetsUpdateOptionalParams + options?: VirtualMachineScaleSetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -162,7 +162,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSetUpdate, - options?: VirtualMachineScaleSetsUpdateOptionalParams + options?: VirtualMachineScaleSetsUpdateOptionalParams, ): Promise; /** * Deletes a VM scale set. @@ -173,7 +173,7 @@ export interface VirtualMachineScaleSets { beginDelete( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeleteOptionalParams + options?: VirtualMachineScaleSetsDeleteOptionalParams, ): Promise, void>>; /** * Deletes a VM scale set. @@ -184,7 +184,7 @@ export interface VirtualMachineScaleSets { beginDeleteAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeleteOptionalParams + options?: VirtualMachineScaleSetsDeleteOptionalParams, ): Promise; /** * Display information about a virtual machine scale set. @@ -195,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 @@ -208,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 @@ -221,7 +221,7 @@ export interface VirtualMachineScaleSets { beginDeallocateAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeallocateOptionalParams + options?: VirtualMachineScaleSetsDeallocateOptionalParams, ): Promise; /** * Deletes virtual machines in a VM scale set. @@ -234,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. @@ -247,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. @@ -258,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 @@ -271,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 @@ -284,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. @@ -295,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. @@ -306,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. @@ -317,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. @@ -328,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 @@ -339,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 @@ -350,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 @@ -362,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 @@ -374,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 @@ -388,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 @@ -402,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. @@ -415,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. @@ -428,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 @@ -441,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 @@ -454,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 @@ -466,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 @@ -478,7 +478,7 @@ 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. @@ -489,7 +489,7 @@ export interface VirtualMachineScaleSets { beginApproveRollingUpgrade( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -505,7 +505,7 @@ export interface VirtualMachineScaleSets { beginApproveRollingUpgradeAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, ): Promise; /** * Manual platform update domain walk to update virtual machines in a service fabric virtual machine @@ -519,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. @@ -534,7 +532,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VMScaleSetConvertToSinglePlacementGroupInput, - options?: VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams + options?: VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams, ): Promise; /** * Changes ServiceState property for a given service @@ -547,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 @@ -560,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 7bade4667082..8d62cf5b7cee 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts @@ -51,7 +51,7 @@ import { VirtualMachinesAttachDetachDataDisksResponse, RunCommandInput, VirtualMachinesRunCommandOptionalParams, - VirtualMachinesRunCommandResponse + VirtualMachinesRunCommandResponse, } from "../models"; /// @@ -64,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 @@ -74,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 @@ -82,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. @@ -93,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 @@ -107,7 +107,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineCaptureParameters, - options?: VirtualMachinesCaptureOptionalParams + options?: VirtualMachinesCaptureOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -126,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 @@ -140,7 +140,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -159,7 +159,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update a virtual machine. @@ -172,7 +172,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineUpdate, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -190,7 +190,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineUpdate, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise; /** * The operation to delete a virtual machine. @@ -201,7 +201,7 @@ export interface VirtualMachines { beginDelete( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeleteOptionalParams + options?: VirtualMachinesDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete a virtual machine. @@ -212,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. @@ -223,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. @@ -234,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 @@ -246,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 @@ -258,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 @@ -270,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 @@ -282,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 @@ -298,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 @@ -310,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 @@ -322,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. @@ -333,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. @@ -344,7 +344,7 @@ export interface VirtualMachines { beginReapplyAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReapplyOptionalParams + options?: VirtualMachinesReapplyOptionalParams, ): Promise; /** * The operation to restart a virtual machine. @@ -355,7 +355,7 @@ export interface VirtualMachines { beginRestart( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise, void>>; /** * The operation to restart a virtual machine. @@ -366,7 +366,7 @@ export interface VirtualMachines { beginRestartAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise; /** * The operation to start a virtual machine. @@ -377,7 +377,7 @@ export interface VirtualMachines { beginStart( resourceGroupName: string, vmName: string, - options?: VirtualMachinesStartOptionalParams + options?: VirtualMachinesStartOptionalParams, ): Promise, void>>; /** * The operation to start a virtual machine. @@ -388,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. @@ -399,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. @@ -410,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 @@ -426,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 @@ -442,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. @@ -453,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. @@ -464,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. @@ -475,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. @@ -486,7 +486,7 @@ export interface VirtualMachines { simulateEviction( resourceGroupName: string, vmName: string, - options?: VirtualMachinesSimulateEvictionOptionalParams + options?: VirtualMachinesSimulateEvictionOptionalParams, ): Promise; /** * Assess patches on the VM. @@ -497,7 +497,7 @@ export interface VirtualMachines { beginAssessPatches( resourceGroupName: string, vmName: string, - options?: VirtualMachinesAssessPatchesOptionalParams + options?: VirtualMachinesAssessPatchesOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -513,7 +513,7 @@ export interface VirtualMachines { beginAssessPatchesAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesAssessPatchesOptionalParams + options?: VirtualMachinesAssessPatchesOptionalParams, ): Promise; /** * Installs patches on the VM. @@ -526,7 +526,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, installPatchesInput: VirtualMachineInstallPatchesParameters, - options?: VirtualMachinesInstallPatchesOptionalParams + options?: VirtualMachinesInstallPatchesOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -544,7 +544,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, installPatchesInput: VirtualMachineInstallPatchesParameters, - options?: VirtualMachinesInstallPatchesOptionalParams + options?: VirtualMachinesInstallPatchesOptionalParams, ): Promise; /** * Attach and detach data disks to/from the virtual machine. @@ -558,7 +558,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachinesAttachDetachDataDisksOptionalParams + options?: VirtualMachinesAttachDetachDataDisksOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -577,7 +577,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachinesAttachDetachDataDisksOptionalParams + options?: VirtualMachinesAttachDetachDataDisksOptionalParams, ): Promise; /** * Run command on the VM. @@ -590,7 +590,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: RunCommandInput, - options?: VirtualMachinesRunCommandOptionalParams + options?: VirtualMachinesRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -608,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"