diff --git a/sdk/compute/arm-compute/README.md b/sdk/compute/arm-compute/README.md index f80ecb561018..1ed8d1a6c618 100644 --- a/sdk/compute/arm-compute/README.md +++ b/sdk/compute/arm-compute/README.md @@ -5,7 +5,7 @@ This package contains an isomorphic SDK (runs both in node.js and in browsers) f ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -14,18 +14,15 @@ You must have an [Azure subscription](https://azure.microsoft.com/free/). ### How to install To use this SDK in your project, you will need to install two packages. - - `@azure/arm-compute` that contains the client. - `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. Install both packages using the below command: - ```bash npm install --save @azure/arm-compute @azure/identity ``` - > **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. -> If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. +If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. ### How to use @@ -39,7 +36,6 @@ npm install --save @azure/arm-compute @azure/identity In the below samples, we pass the credential and the Azure subscription id to instantiate the client. Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. - #### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code @@ -53,24 +49,20 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; // Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. const creds = new DefaultAzureCredential(); const client = new ComputeManagementClient(creds, subscriptionId); -client.operations - .list() - .then((result) => { - console.log("The result is:"); - console.log(result); - }) - .catch((err) => { - console.log("An error occurred:"); - console.error(err); - }); +client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); +}).catch((err) => { + console.log("An error occurred:"); + console.error(err); +}); ``` #### browser - Authentication, client creation, and list operations as an example written in JavaScript. In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. - -- See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. -- Note down the client Id from the previous step and use it in the browser sample below. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code @@ -88,21 +80,19 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const subscriptionId = ""; // Create credentials using the `@azure/identity` package. // Please note that you can also use credentials from the `@azure/ms-rest-browserauth` package instead. - const credential = new InteractiveBrowserCredential({ + const credential = new InteractiveBrowserCredential( + { clientId: "", tenant: "" }); const client = new Azure.ArmCompute.ComputeManagementClient(creds, subscriptionId); - client.operations - .list() - .then((result) => { - console.log("The result is:"); - console.log(result); - }) - .catch((err) => { - console.log("An error occurred:"); - console.error(err); - }); + client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); + }).catch((err) => { + console.log("An error occurred:"); + console.error(err); + }); diff --git a/sdk/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json index cb382df80381..c48f50b385fa 100644 --- a/sdk/compute/arm-compute/package.json +++ b/sdk/compute/arm-compute/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/compute/arm-compute", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index 32a12eb89df2..d945e1b09af3 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -14,6 +14,7 @@ import * as Mappers from "./models/mappers"; import * as operations from "./operations"; import { ComputeManagementClientContext } from "./computeManagementClientContext"; + class ComputeManagementClient extends ComputeManagementClientContext { // Operation groups operations: operations.Operations; @@ -33,6 +34,8 @@ class ComputeManagementClient extends ComputeManagementClientContext { images: operations.Images; restorePointCollections: operations.RestorePointCollections; restorePoints: operations.RestorePoints; + capacityReservationGroups: operations.CapacityReservationGroups; + capacityReservations: operations.CapacityReservations; virtualMachineScaleSetExtensions: operations.VirtualMachineScaleSetExtensions; virtualMachineScaleSetRollingUpgrades: operations.VirtualMachineScaleSetRollingUpgrades; virtualMachineScaleSetVMExtensions: operations.VirtualMachineScaleSetVMExtensions; @@ -73,11 +76,7 @@ class ComputeManagementClient extends ComputeManagementClientContext { * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials | TokenCredential, - subscriptionId: string, - options?: Models.ComputeManagementClientOptions - ) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ComputeManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.availabilitySets = new operations.AvailabilitySets(this); @@ -96,19 +95,15 @@ class ComputeManagementClient extends ComputeManagementClientContext { this.images = new operations.Images(this); this.restorePointCollections = new operations.RestorePointCollections(this); this.restorePoints = new operations.RestorePoints(this); + this.capacityReservationGroups = new operations.CapacityReservationGroups(this); + this.capacityReservations = new operations.CapacityReservations(this); this.virtualMachineScaleSetExtensions = new operations.VirtualMachineScaleSetExtensions(this); - this.virtualMachineScaleSetRollingUpgrades = new operations.VirtualMachineScaleSetRollingUpgrades( - this - ); - this.virtualMachineScaleSetVMExtensions = new operations.VirtualMachineScaleSetVMExtensions( - this - ); + this.virtualMachineScaleSetRollingUpgrades = new operations.VirtualMachineScaleSetRollingUpgrades(this); + this.virtualMachineScaleSetVMExtensions = new operations.VirtualMachineScaleSetVMExtensions(this); this.virtualMachineScaleSetVMs = new operations.VirtualMachineScaleSetVMs(this); this.logAnalytics = new operations.LogAnalytics(this); this.virtualMachineRunCommands = new operations.VirtualMachineRunCommands(this); - this.virtualMachineScaleSetVMRunCommands = new operations.VirtualMachineScaleSetVMRunCommands( - this - ); + this.virtualMachineScaleSetVMRunCommands = new operations.VirtualMachineScaleSetVMRunCommands(this); this.resourceSkus = new operations.ResourceSkus(this); this.disks = new operations.Disks(this); this.snapshots = new operations.Snapshots(this); diff --git a/sdk/compute/arm-compute/src/computeManagementClientContext.ts b/sdk/compute/arm-compute/src/computeManagementClientContext.ts index d73c162bd266..f872355be450 100644 --- a/sdk/compute/arm-compute/src/computeManagementClientContext.ts +++ b/sdk/compute/arm-compute/src/computeManagementClientContext.ts @@ -31,16 +31,12 @@ export class ComputeManagementClientContext extends msRestAzure.AzureServiceClie * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials | TokenCredential, - subscriptionId: string, - options?: Models.ComputeManagementClientOptions - ) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ComputeManagementClientOptions) { if (credentials == undefined) { - throw new Error("'credentials' cannot be null."); + throw new Error('\'credentials\' cannot be null.'); } if (subscriptionId == undefined) { - throw new Error("'subscriptionId' cannot be null."); + throw new Error('\'subscriptionId\' cannot be null.'); } if (!options) { @@ -53,7 +49,7 @@ export class ComputeManagementClientContext extends msRestAzure.AzureServiceClie super(credentials, options); - this.acceptLanguage = "en-US"; + this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; this.requestContentType = "application/json; charset=utf-8"; @@ -63,10 +59,7 @@ export class ComputeManagementClientContext extends msRestAzure.AzureServiceClie if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if ( - options.longRunningOperationRetryTimeout !== null && - options.longRunningOperationRetryTimeout !== undefined - ) { + if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts b/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts index 967d4c6ca074..261a10fb13aa 100644 --- a/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts @@ -23,6 +23,15 @@ export { BillingProfile, BootDiagnostics, BootDiagnosticsInstanceView, + CapacityReservation, + CapacityReservationGroup, + CapacityReservationGroupInstanceView, + CapacityReservationGroupUpdate, + CapacityReservationInstanceView, + CapacityReservationInstanceViewWithName, + CapacityReservationProfile, + CapacityReservationUpdate, + CapacityReservationUtilization, CloudError, CloudService, CloudServiceExtensionProfile, @@ -163,6 +172,7 @@ export { Snapshot, SnapshotSku, SourceVault, + SpotRestorePolicy, SshConfiguration, SshPublicKey, SshPublicKeyResource, @@ -245,6 +255,7 @@ export { VirtualMachineSize, VirtualMachineSizeListResult, VirtualMachineUpdate, + VMSizeProperties, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/capacityReservationGroupsMappers.ts b/sdk/compute/arm-compute/src/models/capacityReservationGroupsMappers.ts new file mode 100644 index 000000000000..78a36258a3ac --- /dev/null +++ b/sdk/compute/arm-compute/src/models/capacityReservationGroupsMappers.ts @@ -0,0 +1,260 @@ +/* + * 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. + */ + +export { + AdditionalCapabilities, + AdditionalUnattendContent, + ApiEntityReference, + ApiError, + ApiErrorBase, + AutomaticOSUpgradePolicy, + AutomaticOSUpgradeProperties, + AutomaticRepairsPolicy, + AvailabilitySet, + AvailabilitySetUpdate, + AvailablePatchSummary, + BaseResource, + BillingProfile, + BootDiagnostics, + BootDiagnosticsInstanceView, + CapacityReservation, + CapacityReservationGroup, + CapacityReservationGroupInstanceView, + CapacityReservationGroupListResult, + CapacityReservationGroupUpdate, + CapacityReservationInstanceView, + CapacityReservationInstanceViewWithName, + CapacityReservationProfile, + CapacityReservationUpdate, + CapacityReservationUtilization, + CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, + CreationData, + DataDisk, + DataDiskImage, + DataDiskImageEncryption, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupInstanceView, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostInstanceViewWithName, + DedicatedHostUpdate, + DiagnosticsProfile, + DiffDiskSettings, + Disallowed, + DisallowedConfiguration, + Disk, + DiskAccess, + DiskEncryptionSet, + DiskEncryptionSetParameters, + DiskEncryptionSettings, + DiskImageEncryption, + DiskInstanceView, + DiskSecurityProfile, + DiskSku, + Encryption, + EncryptionImages, + EncryptionSetIdentity, + EncryptionSettingsCollection, + EncryptionSettingsElement, + ExtendedLocation, + Extension, + Gallery, + GalleryApplication, + GalleryApplicationUpdate, + GalleryApplicationVersion, + GalleryApplicationVersionPublishingProfile, + GalleryApplicationVersionUpdate, + GalleryArtifactPublishingProfileBase, + GalleryArtifactVersionSource, + GalleryDataDiskImage, + GalleryDiskImage, + GalleryIdentifier, + GalleryImage, + GalleryImageFeature, + GalleryImageIdentifier, + GalleryImageUpdate, + GalleryImageVersion, + GalleryImageVersionPublishingProfile, + GalleryImageVersionStorageProfile, + GalleryImageVersionUpdate, + GalleryOSDiskImage, + GalleryUpdate, + HardwareProfile, + Image, + ImageDataDisk, + ImageDisk, + ImageDiskReference, + ImageOSDisk, + ImagePurchasePlan, + ImageReference, + ImageStorageProfile, + ImageUpdate, + InnerError, + InstanceViewStatus, + KeyForDiskEncryptionSet, + KeyVaultAndKeyReference, + KeyVaultAndSecretReference, + KeyVaultKeyReference, + KeyVaultSecretReference, + LastPatchInstallationSummary, + LinuxConfiguration, + LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, + MaintenanceRedeployStatus, + ManagedDiskParameters, + NetworkInterfaceReference, + NetworkProfile, + OSDisk, + OSDiskImage, + OSDiskImageEncryption, + OSProfile, + PatchSettings, + Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, + PropertyUpdatesInProgress, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, + ProxyResource, + PublicIPAddressSku, + PurchasePlan, + RecommendedMachineConfiguration, + RegionalReplicationStatus, + ReplicationStatus, + Resource, + ResourceRange, + RestorePoint, + RestorePointCollection, + RestorePointCollectionSourceProperties, + RestorePointCollectionUpdate, + RestorePointProvisioningDetails, + RestorePointSourceMetadata, + RestorePointSourceVMDataDisk, + RestorePointSourceVMOSDisk, + RestorePointSourceVMStorageProfile, + RollingUpgradePolicy, + RollingUpgradeProgressInfo, + RollingUpgradeRunningStatus, + RollingUpgradeStatusInfo, + RunCommandInputParameter, + ScaleInPolicy, + ScheduledEventsProfile, + SecurityProfile, + ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SpotRestorePolicy, + SshConfiguration, + SshPublicKey, + SshPublicKeyResource, + SshPublicKeyUpdateResource, + StorageProfile, + SubResource, + SubResourceReadOnly, + SubResourceWithColocationStatus, + TargetRegion, + TerminateNotificationProfile, + UefiSettings, + UpdateResource, + UpdateResourceDefinition, + UpgradePolicy, + UserArtifactManage, + UserArtifactSource, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineExtensionUpdate, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageFeature, + VirtualMachineImageResource, + VirtualMachineInstanceView, + VirtualMachineIpTag, + VirtualMachineNetworkInterfaceConfiguration, + VirtualMachineNetworkInterfaceDnsSettingsConfiguration, + VirtualMachineNetworkInterfaceIPConfiguration, + VirtualMachinePatchStatus, + VirtualMachinePublicIPAddressConfiguration, + VirtualMachinePublicIPAddressDnsSettingsConfiguration, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, + VirtualMachineScaleSet, + VirtualMachineScaleSetDataDisk, + VirtualMachineScaleSetExtension, + VirtualMachineScaleSetExtensionProfile, + VirtualMachineScaleSetExtensionUpdate, + VirtualMachineScaleSetIdentity, + VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, + VirtualMachineScaleSetIPConfiguration, + VirtualMachineScaleSetIpTag, + VirtualMachineScaleSetManagedDiskParameters, + VirtualMachineScaleSetNetworkConfiguration, + VirtualMachineScaleSetNetworkConfigurationDnsSettings, + VirtualMachineScaleSetNetworkProfile, + VirtualMachineScaleSetOSDisk, + VirtualMachineScaleSetOSProfile, + VirtualMachineScaleSetPublicIPAddressConfiguration, + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, + VirtualMachineScaleSetStorageProfile, + VirtualMachineScaleSetUpdate, + VirtualMachineScaleSetUpdateIPConfiguration, + VirtualMachineScaleSetUpdateNetworkConfiguration, + VirtualMachineScaleSetUpdateNetworkProfile, + VirtualMachineScaleSetUpdateOSDisk, + VirtualMachineScaleSetUpdateOSProfile, + VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, + VirtualMachineScaleSetUpdateStorageProfile, + VirtualMachineScaleSetUpdateVMProfile, + VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, + VirtualMachineScaleSetVMInstanceView, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProfile, + VirtualMachineScaleSetVMProtectionPolicy, + VirtualMachineUpdate, + VMSizeProperties, + WindowsConfiguration, + WinRMConfiguration, + WinRMListener +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/capacityReservationsMappers.ts b/sdk/compute/arm-compute/src/models/capacityReservationsMappers.ts new file mode 100644 index 000000000000..a131b8d5c987 --- /dev/null +++ b/sdk/compute/arm-compute/src/models/capacityReservationsMappers.ts @@ -0,0 +1,260 @@ +/* + * 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. + */ + +export { + AdditionalCapabilities, + AdditionalUnattendContent, + ApiEntityReference, + ApiError, + ApiErrorBase, + AutomaticOSUpgradePolicy, + AutomaticOSUpgradeProperties, + AutomaticRepairsPolicy, + AvailabilitySet, + AvailabilitySetUpdate, + AvailablePatchSummary, + BaseResource, + BillingProfile, + BootDiagnostics, + BootDiagnosticsInstanceView, + CapacityReservation, + CapacityReservationGroup, + CapacityReservationGroupInstanceView, + CapacityReservationGroupUpdate, + CapacityReservationInstanceView, + CapacityReservationInstanceViewWithName, + CapacityReservationListResult, + CapacityReservationProfile, + CapacityReservationUpdate, + CapacityReservationUtilization, + CloudError, + CloudService, + CloudServiceExtensionProfile, + CloudServiceExtensionProperties, + CloudServiceNetworkProfile, + CloudServiceOsProfile, + CloudServiceProperties, + CloudServiceRoleProfile, + CloudServiceRoleProfileProperties, + CloudServiceRoleSku, + CloudServiceVaultAndSecretReference, + CloudServiceVaultCertificate, + CloudServiceVaultSecretGroup, + CreationData, + DataDisk, + DataDiskImage, + DataDiskImageEncryption, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupInstanceView, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostInstanceViewWithName, + DedicatedHostUpdate, + DiagnosticsProfile, + DiffDiskSettings, + Disallowed, + DisallowedConfiguration, + Disk, + DiskAccess, + DiskEncryptionSet, + DiskEncryptionSetParameters, + DiskEncryptionSettings, + DiskImageEncryption, + DiskInstanceView, + DiskSecurityProfile, + DiskSku, + Encryption, + EncryptionImages, + EncryptionSetIdentity, + EncryptionSettingsCollection, + EncryptionSettingsElement, + ExtendedLocation, + Extension, + Gallery, + GalleryApplication, + GalleryApplicationUpdate, + GalleryApplicationVersion, + GalleryApplicationVersionPublishingProfile, + GalleryApplicationVersionUpdate, + GalleryArtifactPublishingProfileBase, + GalleryArtifactVersionSource, + GalleryDataDiskImage, + GalleryDiskImage, + GalleryIdentifier, + GalleryImage, + GalleryImageFeature, + GalleryImageIdentifier, + GalleryImageUpdate, + GalleryImageVersion, + GalleryImageVersionPublishingProfile, + GalleryImageVersionStorageProfile, + GalleryImageVersionUpdate, + GalleryOSDiskImage, + GalleryUpdate, + HardwareProfile, + Image, + ImageDataDisk, + ImageDisk, + ImageDiskReference, + ImageOSDisk, + ImagePurchasePlan, + ImageReference, + ImageStorageProfile, + ImageUpdate, + InnerError, + InstanceViewStatus, + KeyForDiskEncryptionSet, + KeyVaultAndKeyReference, + KeyVaultAndSecretReference, + KeyVaultKeyReference, + KeyVaultSecretReference, + LastPatchInstallationSummary, + LinuxConfiguration, + LinuxPatchSettings, + LoadBalancerConfiguration, + LoadBalancerConfigurationProperties, + LoadBalancerFrontendIPConfiguration, + LoadBalancerFrontendIPConfigurationProperties, + MaintenanceRedeployStatus, + ManagedDiskParameters, + NetworkInterfaceReference, + NetworkProfile, + OSDisk, + OSDiskImage, + OSDiskImageEncryption, + OSProfile, + PatchSettings, + Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, + PropertyUpdatesInProgress, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, + ProxyResource, + PublicIPAddressSku, + PurchasePlan, + RecommendedMachineConfiguration, + RegionalReplicationStatus, + ReplicationStatus, + Resource, + ResourceRange, + RestorePoint, + RestorePointCollection, + RestorePointCollectionSourceProperties, + RestorePointCollectionUpdate, + RestorePointProvisioningDetails, + RestorePointSourceMetadata, + RestorePointSourceVMDataDisk, + RestorePointSourceVMOSDisk, + RestorePointSourceVMStorageProfile, + RollingUpgradePolicy, + RollingUpgradeProgressInfo, + RollingUpgradeRunningStatus, + RollingUpgradeStatusInfo, + RunCommandInputParameter, + ScaleInPolicy, + ScheduledEventsProfile, + SecurityProfile, + ShareInfoElement, + SharingProfile, + SharingProfileGroup, + SharingUpdate, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SpotRestorePolicy, + SshConfiguration, + SshPublicKey, + SshPublicKeyResource, + SshPublicKeyUpdateResource, + StorageProfile, + SubResource, + SubResourceReadOnly, + SubResourceWithColocationStatus, + TargetRegion, + TerminateNotificationProfile, + UefiSettings, + UpdateResource, + UpdateResourceDefinition, + UpgradePolicy, + UserArtifactManage, + UserArtifactSource, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineExtensionUpdate, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageFeature, + VirtualMachineImageResource, + VirtualMachineInstanceView, + VirtualMachineIpTag, + VirtualMachineNetworkInterfaceConfiguration, + VirtualMachineNetworkInterfaceDnsSettingsConfiguration, + VirtualMachineNetworkInterfaceIPConfiguration, + VirtualMachinePatchStatus, + VirtualMachinePublicIPAddressConfiguration, + VirtualMachinePublicIPAddressDnsSettingsConfiguration, + VirtualMachineRunCommand, + VirtualMachineRunCommandInstanceView, + VirtualMachineRunCommandScriptSource, + VirtualMachineRunCommandUpdate, + VirtualMachineScaleSet, + VirtualMachineScaleSetDataDisk, + VirtualMachineScaleSetExtension, + VirtualMachineScaleSetExtensionProfile, + VirtualMachineScaleSetExtensionUpdate, + VirtualMachineScaleSetIdentity, + VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, + VirtualMachineScaleSetIPConfiguration, + VirtualMachineScaleSetIpTag, + VirtualMachineScaleSetManagedDiskParameters, + VirtualMachineScaleSetNetworkConfiguration, + VirtualMachineScaleSetNetworkConfigurationDnsSettings, + VirtualMachineScaleSetNetworkProfile, + VirtualMachineScaleSetOSDisk, + VirtualMachineScaleSetOSProfile, + VirtualMachineScaleSetPublicIPAddressConfiguration, + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, + VirtualMachineScaleSetStorageProfile, + VirtualMachineScaleSetUpdate, + VirtualMachineScaleSetUpdateIPConfiguration, + VirtualMachineScaleSetUpdateNetworkConfiguration, + VirtualMachineScaleSetUpdateNetworkProfile, + VirtualMachineScaleSetUpdateOSDisk, + VirtualMachineScaleSetUpdateOSProfile, + VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, + VirtualMachineScaleSetUpdateStorageProfile, + VirtualMachineScaleSetUpdateVMProfile, + VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMExtension, + VirtualMachineScaleSetVMExtensionUpdate, + VirtualMachineScaleSetVMInstanceView, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProfile, + VirtualMachineScaleSetVMProtectionPolicy, + VirtualMachineUpdate, + VMSizeProperties, + WindowsConfiguration, + WinRMConfiguration, + WinRMListener +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/cloudServiceRoleInstancesMappers.ts b/sdk/compute/arm-compute/src/models/cloudServiceRoleInstancesMappers.ts index 1e57c9d53abe..85766c4f6430 100644 --- a/sdk/compute/arm-compute/src/models/cloudServiceRoleInstancesMappers.ts +++ b/sdk/compute/arm-compute/src/models/cloudServiceRoleInstancesMappers.ts @@ -21,6 +21,13 @@ export { BillingProfile, BootDiagnostics, BootDiagnosticsInstanceView, + CapacityReservation, + CapacityReservationGroup, + CapacityReservationGroupInstanceView, + CapacityReservationInstanceView, + CapacityReservationInstanceViewWithName, + CapacityReservationProfile, + CapacityReservationUtilization, CloudError, CloudService, CloudServiceExtensionProfile, @@ -163,6 +170,7 @@ export { Snapshot, SnapshotSku, SourceVault, + SpotRestorePolicy, SshConfiguration, SshPublicKey, SshPublicKeyResource, @@ -232,6 +240,7 @@ export { VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMSizeProperties, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/cloudServicesMappers.ts b/sdk/compute/arm-compute/src/models/cloudServicesMappers.ts index 1e9dfd8e27ce..1f7a119363e8 100644 --- a/sdk/compute/arm-compute/src/models/cloudServicesMappers.ts +++ b/sdk/compute/arm-compute/src/models/cloudServicesMappers.ts @@ -21,6 +21,13 @@ export { BillingProfile, BootDiagnostics, BootDiagnosticsInstanceView, + CapacityReservation, + CapacityReservationGroup, + CapacityReservationGroupInstanceView, + CapacityReservationInstanceView, + CapacityReservationInstanceViewWithName, + CapacityReservationProfile, + CapacityReservationUtilization, CloudError, CloudService, CloudServiceExtensionProfile, @@ -162,6 +169,7 @@ export { Snapshot, SnapshotSku, SourceVault, + SpotRestorePolicy, SshConfiguration, SshPublicKey, SshPublicKeyResource, @@ -232,6 +240,7 @@ export { VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMSizeProperties, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts index b6f34888e48f..6782e2fdaadf 100644 --- a/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts +++ b/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts @@ -22,6 +22,15 @@ export { BillingProfile, BootDiagnostics, BootDiagnosticsInstanceView, + CapacityReservation, + CapacityReservationGroup, + CapacityReservationGroupInstanceView, + CapacityReservationGroupUpdate, + CapacityReservationInstanceView, + CapacityReservationInstanceViewWithName, + CapacityReservationProfile, + CapacityReservationUpdate, + CapacityReservationUtilization, CloudError, CloudService, CloudServiceExtensionProfile, @@ -163,6 +172,7 @@ export { Snapshot, SnapshotSku, SourceVault, + SpotRestorePolicy, SshConfiguration, SshPublicKey, SshPublicKeyResource, @@ -243,6 +253,7 @@ export { VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, VirtualMachineUpdate, + VMSizeProperties, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts index deea0cb38833..2ab167e8bbfa 100644 --- a/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts +++ b/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts @@ -22,6 +22,15 @@ export { BillingProfile, BootDiagnostics, BootDiagnosticsInstanceView, + CapacityReservation, + CapacityReservationGroup, + CapacityReservationGroupInstanceView, + CapacityReservationGroupUpdate, + CapacityReservationInstanceView, + CapacityReservationInstanceViewWithName, + CapacityReservationProfile, + CapacityReservationUpdate, + CapacityReservationUtilization, CloudError, CloudService, CloudServiceExtensionProfile, @@ -163,6 +172,7 @@ export { Snapshot, SnapshotSku, SourceVault, + SpotRestorePolicy, SshConfiguration, SshPublicKey, SshPublicKeyResource, @@ -243,6 +253,7 @@ export { VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, VirtualMachineUpdate, + VMSizeProperties, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts b/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts index 75e5593fe9d5..ba6424e880fb 100644 --- a/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts +++ b/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts @@ -21,6 +21,13 @@ export { BillingProfile, BootDiagnostics, BootDiagnosticsInstanceView, + CapacityReservation, + CapacityReservationGroup, + CapacityReservationGroupInstanceView, + CapacityReservationInstanceView, + CapacityReservationInstanceViewWithName, + CapacityReservationProfile, + CapacityReservationUtilization, CloudError, CloudService, CloudServiceExtensionProfile, @@ -161,6 +168,7 @@ export { Snapshot, SnapshotSku, SourceVault, + SpotRestorePolicy, SshConfiguration, SshPublicKey, SshPublicKeyResource, @@ -230,6 +238,7 @@ export { VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMSizeProperties, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts b/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts index b1e1e6a71096..c94f898ca8b6 100644 --- a/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts @@ -21,6 +21,13 @@ export { BillingProfile, BootDiagnostics, BootDiagnosticsInstanceView, + CapacityReservation, + CapacityReservationGroup, + CapacityReservationGroupInstanceView, + CapacityReservationInstanceView, + CapacityReservationInstanceViewWithName, + CapacityReservationProfile, + CapacityReservationUtilization, CloudError, CloudService, CloudServiceExtensionProfile, @@ -159,6 +166,7 @@ export { Snapshot, SnapshotSku, SourceVault, + SpotRestorePolicy, SshConfiguration, SshPublicKey, SshPublicKeyResource, @@ -228,6 +236,7 @@ export { VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMSizeProperties, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/diskRestorePointOperationsMappers.ts b/sdk/compute/arm-compute/src/models/diskRestorePointOperationsMappers.ts index abbb4f14eb06..34a49ba70c0b 100644 --- a/sdk/compute/arm-compute/src/models/diskRestorePointOperationsMappers.ts +++ b/sdk/compute/arm-compute/src/models/diskRestorePointOperationsMappers.ts @@ -7,12 +7,14 @@ */ export { + AccessUri, ApiError, ApiErrorBase, CloudError, DiskRestorePoint, DiskRestorePointList, Encryption, + GrantAccessData, InnerError, ProxyOnlyResource, PurchasePlan diff --git a/sdk/compute/arm-compute/src/models/disksMappers.ts b/sdk/compute/arm-compute/src/models/disksMappers.ts index 3e560539ca22..1d761ff58220 100644 --- a/sdk/compute/arm-compute/src/models/disksMappers.ts +++ b/sdk/compute/arm-compute/src/models/disksMappers.ts @@ -22,6 +22,13 @@ export { BillingProfile, BootDiagnostics, BootDiagnosticsInstanceView, + CapacityReservation, + CapacityReservationGroup, + CapacityReservationGroupInstanceView, + CapacityReservationInstanceView, + CapacityReservationInstanceViewWithName, + CapacityReservationProfile, + CapacityReservationUtilization, CloudError, CloudService, CloudServiceExtensionProfile, @@ -160,6 +167,7 @@ export { Snapshot, SnapshotSku, SourceVault, + SpotRestorePolicy, SshConfiguration, SshPublicKey, SshPublicKeyResource, @@ -229,6 +237,7 @@ export { VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMSizeProperties, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/galleriesMappers.ts b/sdk/compute/arm-compute/src/models/galleriesMappers.ts index 794243ab3ff1..fc209cda8181 100644 --- a/sdk/compute/arm-compute/src/models/galleriesMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleriesMappers.ts @@ -21,6 +21,13 @@ export { BillingProfile, BootDiagnostics, BootDiagnosticsInstanceView, + CapacityReservation, + CapacityReservationGroup, + CapacityReservationGroupInstanceView, + CapacityReservationInstanceView, + CapacityReservationInstanceViewWithName, + CapacityReservationProfile, + CapacityReservationUtilization, CloudError, CloudService, CloudServiceExtensionProfile, @@ -157,6 +164,7 @@ export { Snapshot, SnapshotSku, SourceVault, + SpotRestorePolicy, SshConfiguration, SshPublicKey, SshPublicKeyResource, @@ -226,6 +234,7 @@ export { VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMSizeProperties, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts b/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts index e952760016ec..8b39c8768683 100644 --- a/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts @@ -21,6 +21,13 @@ export { BillingProfile, BootDiagnostics, BootDiagnosticsInstanceView, + CapacityReservation, + CapacityReservationGroup, + CapacityReservationGroupInstanceView, + CapacityReservationInstanceView, + CapacityReservationInstanceViewWithName, + CapacityReservationProfile, + CapacityReservationUtilization, CloudError, CloudService, CloudServiceExtensionProfile, @@ -157,6 +164,7 @@ export { Snapshot, SnapshotSku, SourceVault, + SpotRestorePolicy, SshConfiguration, SshPublicKey, SshPublicKeyResource, @@ -226,6 +234,7 @@ export { VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMSizeProperties, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts b/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts index 0d543a5cc3f1..d9ba433fb8cf 100644 --- a/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts @@ -21,6 +21,13 @@ export { BillingProfile, BootDiagnostics, BootDiagnosticsInstanceView, + CapacityReservation, + CapacityReservationGroup, + CapacityReservationGroupInstanceView, + CapacityReservationInstanceView, + CapacityReservationInstanceViewWithName, + CapacityReservationProfile, + CapacityReservationUtilization, CloudError, CloudService, CloudServiceExtensionProfile, @@ -157,6 +164,7 @@ export { Snapshot, SnapshotSku, SourceVault, + SpotRestorePolicy, SshConfiguration, SshPublicKey, SshPublicKeyResource, @@ -226,6 +234,7 @@ export { VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMSizeProperties, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts b/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts index cecf6ffdd9a8..ae7f7725f3cd 100644 --- a/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts @@ -21,6 +21,13 @@ export { BillingProfile, BootDiagnostics, BootDiagnosticsInstanceView, + CapacityReservation, + CapacityReservationGroup, + CapacityReservationGroupInstanceView, + CapacityReservationInstanceView, + CapacityReservationInstanceViewWithName, + CapacityReservationProfile, + CapacityReservationUtilization, CloudError, CloudService, CloudServiceExtensionProfile, @@ -157,6 +164,7 @@ export { Snapshot, SnapshotSku, SourceVault, + SpotRestorePolicy, SshConfiguration, SshPublicKey, SshPublicKeyResource, @@ -226,6 +234,7 @@ export { VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMSizeProperties, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts b/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts index 0ac43aeb3c7d..da0bf932c544 100644 --- a/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts @@ -21,6 +21,13 @@ export { BillingProfile, BootDiagnostics, BootDiagnosticsInstanceView, + CapacityReservation, + CapacityReservationGroup, + CapacityReservationGroupInstanceView, + CapacityReservationInstanceView, + CapacityReservationInstanceViewWithName, + CapacityReservationProfile, + CapacityReservationUtilization, CloudError, CloudService, CloudServiceExtensionProfile, @@ -157,6 +164,7 @@ export { Snapshot, SnapshotSku, SourceVault, + SpotRestorePolicy, SshConfiguration, SshPublicKey, SshPublicKeyResource, @@ -226,6 +234,7 @@ export { VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMSizeProperties, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/gallerySharingProfileMappers.ts b/sdk/compute/arm-compute/src/models/gallerySharingProfileMappers.ts index 959e24e26d33..8f966fa5f922 100644 --- a/sdk/compute/arm-compute/src/models/gallerySharingProfileMappers.ts +++ b/sdk/compute/arm-compute/src/models/gallerySharingProfileMappers.ts @@ -21,6 +21,13 @@ export { BillingProfile, BootDiagnostics, BootDiagnosticsInstanceView, + CapacityReservation, + CapacityReservationGroup, + CapacityReservationGroupInstanceView, + CapacityReservationInstanceView, + CapacityReservationInstanceViewWithName, + CapacityReservationProfile, + CapacityReservationUtilization, CloudError, CloudService, CloudServiceExtensionProfile, @@ -156,6 +163,7 @@ export { Snapshot, SnapshotSku, SourceVault, + SpotRestorePolicy, SshConfiguration, SshPublicKey, SshPublicKeyResource, @@ -225,6 +233,7 @@ export { VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, + VMSizeProperties, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/imagesMappers.ts b/sdk/compute/arm-compute/src/models/imagesMappers.ts index f5283950fb63..2ed655199479 100644 --- a/sdk/compute/arm-compute/src/models/imagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/imagesMappers.ts @@ -22,6 +22,15 @@ export { BillingProfile, BootDiagnostics, BootDiagnosticsInstanceView, + CapacityReservation, + CapacityReservationGroup, + CapacityReservationGroupInstanceView, + CapacityReservationGroupUpdate, + CapacityReservationInstanceView, + CapacityReservationInstanceViewWithName, + CapacityReservationProfile, + CapacityReservationUpdate, + CapacityReservationUtilization, CloudError, CloudService, CloudServiceExtensionProfile, @@ -163,6 +172,7 @@ export { Snapshot, SnapshotSku, SourceVault, + SpotRestorePolicy, SshConfiguration, SshPublicKey, SshPublicKeyResource, @@ -243,6 +253,7 @@ export { VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, VirtualMachineUpdate, + VMSizeProperties, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index 5439a3450ce8..b0eedf12b285 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -26,6 +26,38 @@ export interface RestorePointCollectionSourceProperties { id?: string; } +/** + * The API entity reference. + */ +export interface ApiEntityReference { + /** + * The ARM resource id in the form of + * /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... + */ + id?: string; +} + +/** + * Specifies VM Size Property settings on the virtual machine. + */ +export interface VMSizeProperties { + /** + * Specifies the number of vCPUs available for the VM.

When this property is not + * specified in the request body the default behavior is to set it to the value of vCPUs + * available for that VM size exposed in api response of [List all available virtual machine + * sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list) . + */ + vCPUsAvailable?: number; + /** + * Specifies the vCPU to physical core ratio.

When this property is not specified in the + * request body the default behavior is set to the value of vCPUsPerCore for the VM Size exposed + * in api response of [List all available virtual machine sizes in a + * region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list)

Setting + * this property to 1 also means that hyper-threading is disabled. + */ + vCPUsPerCore?: number; +} + /** * Specifies the hardware settings for the virtual machine. */ @@ -79,6 +111,13 @@ export interface HardwareProfile { * 'Standard_ND24s', 'Standard_ND24rs', 'Standard_NV6', 'Standard_NV12', 'Standard_NV24' */ vmSize?: VirtualMachineSizeTypes; + /** + * Specifies the properties for customizing the size of the virtual machine. Minimum api-version: + * 2021-07-01.

This feature is still in preview mode and is not supported for + * VirtualMachineScaleSet.

Please follow the instructions in [VM + * Customization](https://aka.ms/vmcustomization) for more details. + */ + vmSizeProperties?: VMSizeProperties; } /** @@ -142,7 +181,8 @@ export interface DiskEncryptionSettings { * specified for disk.

NOTE: The disk encryption set resource id can only be specified for * managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details. */ -export interface DiskEncryptionSetParameters extends SubResource {} +export interface DiskEncryptionSetParameters extends SubResource { +} /** * The parameters of a managed disk. @@ -160,17 +200,6 @@ export interface ManagedDiskParameters extends SubResource { diskEncryptionSet?: DiskEncryptionSetParameters; } -/** - * The API entity reference. - */ -export interface ApiEntityReference { - /** - * The ARM resource id in the form of - * /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... - */ - id?: string; -} - /** * Describes an Operating System disk. */ @@ -680,6 +709,10 @@ export interface RestorePointSourceMetadata { * Gets the security profile. */ securityProfile?: SecurityProfile; + /** + * Location of the VM from which the restore point was created. + */ + location?: string; } /** @@ -730,6 +763,11 @@ export interface ProxyResource extends BaseResource { * Restore Point details. */ export interface RestorePoint extends ProxyResource { + /** + * List of disk resource ids that the customer wishes to exclude from the restore point. If no + * disks are specified, all disks will be included. + */ + excludeDisks?: ApiEntityReference[]; /** * Gets the details of the VM captured at the time of the restore point creation. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -752,11 +790,6 @@ export interface RestorePoint extends ProxyResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningDetails?: RestorePointProvisioningDetails; - /** - * List of disk resource ids that the customer wishes to exclude from the restore point. If no - * disks are specified, all disks will be included. - */ - excludeDisks?: ApiEntityReference[]; } /** @@ -1069,7 +1102,8 @@ export interface ProximityPlacementGroup extends Resource { /** * Specifies information about the proximity placement group. */ -export interface ProximityPlacementGroupUpdate extends UpdateResource {} +export interface ProximityPlacementGroupUpdate extends UpdateResource { +} /** * The instance view of a dedicated host. @@ -1321,6 +1355,197 @@ export interface DedicatedHostUpdate extends UpdateResource { readonly instanceView?: DedicatedHostInstanceView; } +/** + * The instance view of a capacity reservation that provides as snapshot of the runtime properties + * of the capacity reservation that is managed by the platform and can change outside of control + * plane operations. + */ +export interface CapacityReservationInstanceView { + /** + * Unutilized capacity of the capacity reservation. + */ + utilizationInfo?: CapacityReservationUtilization; + /** + * The resource status information. + */ + statuses?: InstanceViewStatus[]; +} + +/** + * The instance view of a capacity reservation that includes the name of the capacity reservation. + * It is used for the response to the instance view of a capacity reservation group. + */ +export interface CapacityReservationInstanceViewWithName extends CapacityReservationInstanceView { + /** + * The name of the capacity reservation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; +} + +/** + * An interface representing CapacityReservationGroupInstanceView. + */ +export interface CapacityReservationGroupInstanceView { + /** + * List of instance view of the capacity reservations under the capacity reservation group. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly capacityReservations?: CapacityReservationInstanceViewWithName[]; +} + +/** + * Specifies information about the capacity reservation group that the capacity reservations should + * be assigned to.

Currently, a capacity reservation can only be added to a capacity + * reservation group at creation time. An existing capacity reservation cannot be added or moved to + * another capacity reservation group. + */ +export interface CapacityReservationGroup extends Resource { + /** + * A list of all capacity reservation resource ids that belong to capacity reservation group. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly capacityReservations?: SubResourceReadOnly[]; + /** + * A list of references to all virtual machines associated to the capacity reservation group. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly virtualMachinesAssociated?: SubResourceReadOnly[]; + /** + * The capacity reservation group instance view which has the list of instance views for all the + * capacity reservations that belong to the capacity reservation group. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly instanceView?: CapacityReservationGroupInstanceView; + /** + * Availability Zones to use for this capacity reservation group. The zones can be assigned only + * during creation. If not provided, the group supports only regional resources in the region. If + * provided, enforces each capacity reservation in the group to be in one of the zones. + */ + zones?: string[]; +} + +/** + * Specifies information about the capacity reservation group. Only tags can be updated. + */ +export interface CapacityReservationGroupUpdate extends UpdateResource { + /** + * A list of all capacity reservation resource ids that belong to capacity reservation group. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly capacityReservations?: SubResourceReadOnly[]; + /** + * A list of references to all virtual machines associated to the capacity reservation group. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly virtualMachinesAssociated?: SubResourceReadOnly[]; + /** + * The capacity reservation group instance view which has the list of instance views for all the + * capacity reservations that belong to the capacity reservation group. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly instanceView?: CapacityReservationGroupInstanceView; +} + +/** + * Represents the capacity reservation utilization in terms of resources allocated. + */ +export interface CapacityReservationUtilization { + /** + * A list of all virtual machines resource ids allocated against the capacity reservation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly virtualMachinesAllocated?: SubResourceReadOnly[]; +} + +/** + * Specifies information about the capacity reservation. + */ +export interface CapacityReservation extends Resource { + /** + * A unique id generated and assigned to the capacity reservation by the platform which does not + * change throughout the lifetime of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly reservationId?: string; + /** + * A list of all virtual machine resource ids that are associated with the capacity reservation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly virtualMachinesAssociated?: SubResourceReadOnly[]; + /** + * The date time when the capacity reservation was last updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningTime?: Date; + /** + * The provisioning state, which only appears in the response. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * The Capacity reservation instance view. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly instanceView?: CapacityReservationInstanceView; + /** + * SKU of the resource for which capacity needs be reserved. The SKU name and capacity is + * required to be set. Currently VM Skus with the capability called + * 'CapacityReservationSupported' set to true are supported. Refer to List Microsoft.Compute SKUs + * in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported + * values. + */ + sku: Sku; + /** + * Availability Zone to use for this capacity reservation. The zone has to be single value and + * also should be part for the list of zones specified during the capacity reservation group + * creation. The zone can be assigned only during creation. If not provided, the reservation + * supports only non-zonal deployments. If provided, enforces VM/VMSS using this capacity + * reservation to be in same zone. + */ + zones?: string[]; +} + +/** + * Specifies information about the capacity reservation. Only tags and sku.capacity can be updated. + */ +export interface CapacityReservationUpdate extends UpdateResource { + /** + * A unique id generated and assigned to the capacity reservation by the platform which does not + * change throughout the lifetime of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly reservationId?: string; + /** + * A list of all virtual machine resource ids that are associated with the capacity reservation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly virtualMachinesAssociated?: SubResourceReadOnly[]; + /** + * The date time when the capacity reservation was last updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningTime?: Date; + /** + * The provisioning state, which only appears in the response. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * The Capacity reservation instance view. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly instanceView?: CapacityReservationInstanceView; + /** + * SKU of the resource for which capacity needs be reserved. The SKU name and capacity is + * required to be set. Currently VM Skus with the capability called + * 'CapacityReservationSupported' set to true are supported. Refer to List Microsoft.Compute SKUs + * in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported + * values. + */ + sku?: Sku; +} + /** * Response from generation of an SSH key pair. */ @@ -1951,7 +2176,7 @@ export interface VirtualMachineInstallPatchesParameters { * Specifies the maximum amount of time that the operation will run. It must be an ISO * 8601-compliant duration string such as PT4H (4 hours) */ - maximumDuration: string; + maximumDuration?: string; /** * Defines when it is acceptable to reboot a VM during a software update operation. Possible * values include: 'IfRequired', 'Never', 'Always' @@ -2519,6 +2744,18 @@ export interface DataDisk { deleteOption?: DiskDeleteOptionTypes; } +/** + * The parameters of a capacity reservation Profile. + */ +export interface CapacityReservationProfile { + /** + * Specifies the capacity reservation group resource id that should be used for allocating the + * virtual machine or scaleset vm instances provided enough capacity has been reserved. Please + * refer to https://aka.ms/CapacityReservation for more details. + */ + capacityReservationGroup?: SubResource; +} + /** * Specifies the storage settings for the virtual machine disks. */ @@ -2555,6 +2792,10 @@ export interface AdditionalCapabilities { * property is enabled. */ ultraSSDEnabled?: boolean; + /** + * The flag that enables or disables hibernation capability on the VM. + */ + hibernationEnabled?: boolean; } /** @@ -2625,11 +2866,11 @@ export interface PublicIPAddressSku { /** * Specify public IP sku name. Possible values include: 'Basic', 'Standard' */ - publicIPAddressSkuName: PublicIPAddressSkuName; + name?: PublicIPAddressSkuName; /** * Specify public IP sku tier. Possible values include: 'Regional', 'Global' */ - publicIPAddressSkuTier?: PublicIPAddressSkuTier; + tier?: PublicIPAddressSkuTier; } /** @@ -2937,9 +3178,7 @@ export interface VirtualMachineIdentity { * key references will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ - userAssignedIdentities?: { - [propertyName: string]: VirtualMachineIdentityUserAssignedIdentitiesValue; - }; + userAssignedIdentities?: { [propertyName: string]: VirtualMachineIdentityUserAssignedIdentitiesValue }; } /** @@ -3383,6 +3622,11 @@ export interface VirtualMachine extends Resource { * here.

Minimum api-version: 2021-03-01 */ userData?: string; + /** + * Specifies information about the capacity reservation that is used to allocate virtual machine. + *

Minimum api-version: 2021-04-01. + */ + capacityReservation?: CapacityReservationProfile; /** * The virtual machine child extension resources. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -3553,6 +3797,11 @@ export interface VirtualMachineUpdate extends UpdateResource { * here.

Minimum api-version: 2021-03-01 */ userData?: string; + /** + * Specifies information about the capacity reservation that is used to allocate virtual machine. + *

Minimum api-version: 2021-04-01. + */ + capacityReservation?: CapacityReservationProfile; /** * The identity of the virtual machine, if configured. */ @@ -3667,6 +3916,24 @@ export interface ScaleInPolicy { rules?: VirtualMachineScaleSetScaleInRules[]; } +/** + * Specifies the Spot-Try-Restore properties for the virtual machine scale set.

With this + * property customer can enable or disable automatic restore of the evicted Spot VMSS VM instances + * opportunistically based on capacity availability and pricing constraint. + */ +export interface SpotRestorePolicy { + /** + * Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be + * restored opportunistically based on capacity availability and pricing constraints + */ + enabled?: boolean; + /** + * Timeout value expressed as an ISO 8601 time duration after which the platform will not try to + * restore the VMSS SPOT instances + */ + restoreTimeout?: string; +} + /** * Describes a image disk. */ @@ -3861,9 +4128,7 @@ export interface VirtualMachineScaleSetIdentity { * dictionary key references will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ - userAssignedIdentities?: { - [propertyName: string]: VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue; - }; + userAssignedIdentities?: { [propertyName: string]: VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue }; } /** @@ -4681,6 +4946,11 @@ export interface VirtualMachineScaleSetVMProfile { * should not pass any secrets in here.

Minimum api-version: 2021-03-01 */ userData?: string; + /** + * Specifies the capacity reservation related details of a scale set.

Minimum + * api-version: 2021-04-01. + */ + capacityReservation?: CapacityReservationProfile; } /** @@ -4820,6 +5090,10 @@ export interface VirtualMachineScaleSet extends Resource { * 'Uniform', 'Flexible' */ orchestrationMode?: OrchestrationMode; + /** + * Specifies the Spot Restore properties for the virtual machine scale set. + */ + spotRestorePolicy?: SpotRestorePolicy; /** * The identity of the virtual machine scale set, if configured. */ @@ -4838,14 +5112,13 @@ export interface VirtualMachineScaleSet extends Resource { /** * Describes a Virtual Machine Scale Set VM Reimage Parameters. */ -export interface VirtualMachineScaleSetVMReimageParameters - extends VirtualMachineReimageParameters {} +export interface VirtualMachineScaleSetVMReimageParameters extends VirtualMachineReimageParameters { +} /** * Describes a Virtual Machine Scale Set VM Reimage Parameters. */ -export interface VirtualMachineScaleSetReimageParameters - extends VirtualMachineScaleSetVMReimageParameters { +export interface VirtualMachineScaleSetReimageParameters extends VirtualMachineScaleSetVMReimageParameters { /** * The virtual machine scale set instance ids. Omitting the virtual machine scale set instance * ids will result in the operation being performed on all virtual machines in the virtual @@ -5533,7 +5806,8 @@ export interface RequestRateByIntervalInput extends LogAnalyticsInputBase { /** * Api request input for LogAnalytics getThrottledRequests Api. */ -export interface ThrottledRequestsInput extends LogAnalyticsInputBase {} +export interface ThrottledRequestsInput extends LogAnalyticsInputBase { +} /** * LogAnalytics output properties @@ -5932,7 +6206,7 @@ export interface ResourceSkuZoneDetails { } /** - * An interface representing ResourceSkuRestrictionInfo. + * Describes an available Compute SKU Restriction Information. */ export interface ResourceSkuRestrictionInfo { /** @@ -5975,7 +6249,7 @@ export interface ResourceSkuRestrictions { } /** - * An interface representing ResourceSkuLocationInfo. + * Describes an available Compute SKU Location Information. */ export interface ResourceSkuLocationInfo { /** @@ -5993,6 +6267,16 @@ export interface ResourceSkuLocationInfo { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly zoneDetails?: ResourceSkuZoneDetails[]; + /** + * The names of extended locations. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly extendedLocations?: string[]; + /** + * The type of the extended location. Possible values include: 'EdgeZone' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: ExtendedLocationType; } /** @@ -7261,8 +7545,7 @@ export interface GalleryArtifactPublishingProfileBase { /** * The publishing profile of a gallery image version. */ -export interface GalleryApplicationVersionPublishingProfile - extends GalleryArtifactPublishingProfileBase { +export interface GalleryApplicationVersionPublishingProfile extends GalleryArtifactPublishingProfileBase { source: UserArtifactSource; manageActions?: UserArtifactManage; /** @@ -7553,8 +7836,8 @@ export interface GalleryImageUpdate extends UpdateResourceDefinition { /** * The publishing profile of a gallery image Version. */ -export interface GalleryImageVersionPublishingProfile - extends GalleryArtifactPublishingProfileBase {} +export interface GalleryImageVersionPublishingProfile extends GalleryArtifactPublishingProfileBase { +} /** * The gallery artifact version source. @@ -7591,7 +7874,8 @@ export interface GalleryDiskImage { /** * This is the OS disk image. */ -export interface GalleryOSDiskImage extends GalleryDiskImage {} +export interface GalleryOSDiskImage extends GalleryDiskImage { +} /** * This is the data disk image. @@ -7668,7 +7952,8 @@ export interface DiskImageEncryption { /** * Contains encryption settings for an OS disk image. */ -export interface OSDiskImageEncryption extends DiskImageEncryption {} +export interface OSDiskImageEncryption extends DiskImageEncryption { +} /** * Contains encryption settings for a data disk image. @@ -7777,7 +8062,8 @@ export interface PirSharedGalleryResource extends PirResource { /** * Specifies information about the Shared Gallery that you want to create or update. */ -export interface SharedGallery extends PirSharedGalleryResource {} +export interface SharedGallery extends PirSharedGalleryResource { +} /** * Specifies information about the gallery image definition that you want to create or update. @@ -8550,8 +8836,7 @@ export interface OSFamily { /** * Optional Parameters. */ -export interface AvailabilitySetsListBySubscriptionOptionalParams - extends msRest.RequestOptionsBase { +export interface AvailabilitySetsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { /** * The expand expression to apply to the operation. Allowed values are 'instanceView'. */ @@ -8561,8 +8846,7 @@ export interface AvailabilitySetsListBySubscriptionOptionalParams /** * Optional Parameters. */ -export interface AvailabilitySetsListBySubscriptionNextOptionalParams - extends msRest.RequestOptionsBase { +export interface AvailabilitySetsListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { /** * The expand expression to apply to the operation. Allowed values are 'instanceView'. */ @@ -8607,8 +8891,7 @@ export interface DedicatedHostsGetOptionalParams extends msRest.RequestOptionsBa /** * Optional Parameters. */ -export interface VirtualMachineExtensionImagesListVersionsOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineExtensionImagesListVersionsOptionalParams extends msRest.RequestOptionsBase { /** * The filter to apply on the operation. */ @@ -8691,6 +8974,16 @@ export interface VirtualMachinesGetOptionalParams extends msRest.RequestOptionsB expand?: InstanceViewTypes; } +/** + * Optional Parameters. + */ +export interface VirtualMachinesDeallocateOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to hibernate a virtual machine. (Feature in Preview) + */ + hibernate?: boolean; +} + /** * Optional Parameters. */ @@ -8726,8 +9019,7 @@ export interface VirtualMachinesReimageOptionalParams extends msRest.RequestOpti /** * Optional Parameters. */ -export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams extends msRest.RequestOptionsBase { /** * Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes. *

NOTE: If not specified, SAS URIs will be generated with a default expiration duration @@ -8746,6 +9038,16 @@ export interface VirtualMachinesBeginDeleteMethodOptionalParams extends msRest.R forceDeletion?: boolean; } +/** + * Optional Parameters. + */ +export interface VirtualMachinesBeginDeallocateOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional parameter to hibernate a virtual machine. (Feature in Preview) + */ + hibernate?: boolean; +} + /** * Optional Parameters. */ @@ -8781,8 +9083,7 @@ export interface VirtualMachinesListAllNextOptionalParams extends msRest.Request /** * Optional Parameters. */ -export interface VirtualMachineScaleSetsDeleteMethodOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** * Optional parameter to force delete a VM scale set. (Feature in Preview) */ @@ -8814,8 +9115,7 @@ export interface VirtualMachineScaleSetsDeallocateOptionalParams extends msRest. /** * Optional Parameters. */ -export interface VirtualMachineScaleSetsDeleteInstancesOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetsDeleteInstancesOptionalParams extends msRest.RequestOptionsBase { /** * Optional parameter to force delete virtual machines from the VM scale set. (Feature in * Preview) @@ -8872,8 +9172,7 @@ export interface VirtualMachineScaleSetsRedeployOptionalParams extends msRest.Re /** * Optional Parameters. */ -export interface VirtualMachineScaleSetsPerformMaintenanceOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetsPerformMaintenanceOptionalParams extends msRest.RequestOptionsBase { /** * A list of virtual machine instance IDs from the VM scale set. */ @@ -8903,8 +9202,7 @@ export interface VirtualMachineScaleSetsReimageAllOptionalParams extends msRest. /** * Optional Parameters. */ -export interface VirtualMachineScaleSetsBeginDeleteMethodOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetsBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** * Optional parameter to force delete a VM scale set. (Feature in Preview) */ @@ -8914,8 +9212,7 @@ export interface VirtualMachineScaleSetsBeginDeleteMethodOptionalParams /** * Optional Parameters. */ -export interface VirtualMachineScaleSetsBeginDeallocateOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetsBeginDeallocateOptionalParams extends msRest.RequestOptionsBase { /** * A list of virtual machine instance IDs from the VM scale set. */ @@ -8925,8 +9222,7 @@ export interface VirtualMachineScaleSetsBeginDeallocateOptionalParams /** * Optional Parameters. */ -export interface VirtualMachineScaleSetsBeginDeleteInstancesOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetsBeginDeleteInstancesOptionalParams extends msRest.RequestOptionsBase { /** * Optional parameter to force delete virtual machines from the VM scale set. (Feature in * Preview) @@ -8937,8 +9233,7 @@ export interface VirtualMachineScaleSetsBeginDeleteInstancesOptionalParams /** * Optional Parameters. */ -export interface VirtualMachineScaleSetsBeginPowerOffOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetsBeginPowerOffOptionalParams extends msRest.RequestOptionsBase { /** * A list of virtual machine instance IDs from the VM scale set. */ @@ -8954,8 +9249,7 @@ export interface VirtualMachineScaleSetsBeginPowerOffOptionalParams /** * Optional Parameters. */ -export interface VirtualMachineScaleSetsBeginRestartOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetsBeginRestartOptionalParams extends msRest.RequestOptionsBase { /** * A list of virtual machine instance IDs from the VM scale set. */ @@ -8975,8 +9269,7 @@ export interface VirtualMachineScaleSetsBeginStartOptionalParams extends msRest. /** * Optional Parameters. */ -export interface VirtualMachineScaleSetsBeginRedeployOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetsBeginRedeployOptionalParams extends msRest.RequestOptionsBase { /** * A list of virtual machine instance IDs from the VM scale set. */ @@ -8986,8 +9279,7 @@ export interface VirtualMachineScaleSetsBeginRedeployOptionalParams /** * Optional Parameters. */ -export interface VirtualMachineScaleSetsBeginPerformMaintenanceOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetsBeginPerformMaintenanceOptionalParams extends msRest.RequestOptionsBase { /** * A list of virtual machine instance IDs from the VM scale set. */ @@ -8997,8 +9289,7 @@ export interface VirtualMachineScaleSetsBeginPerformMaintenanceOptionalParams /** * Optional Parameters. */ -export interface VirtualMachineScaleSetsBeginReimageOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetsBeginReimageOptionalParams extends msRest.RequestOptionsBase { /** * Parameters for Reimaging VM ScaleSet. */ @@ -9008,8 +9299,7 @@ export interface VirtualMachineScaleSetsBeginReimageOptionalParams /** * Optional Parameters. */ -export interface VirtualMachineScaleSetsBeginReimageAllOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetsBeginReimageAllOptionalParams extends msRest.RequestOptionsBase { /** * A list of virtual machine instance IDs from the VM scale set. */ @@ -9041,8 +9331,84 @@ export interface RestorePointCollectionsGetOptionalParams extends msRest.Request /** * Optional Parameters. */ -export interface VirtualMachineScaleSetExtensionsGetOptionalParams - extends msRest.RequestOptionsBase { +export interface CapacityReservationGroupsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. 'InstanceView' will retrieve the list of + * instance views of the capacity reservations under the capacity reservation group which is a + * snapshot of the runtime properties of a capacity reservation that is managed by the platform + * and can change outside of control plane operations. Possible values include: 'instanceView' + */ + expand?: CapacityReservationGroupInstanceViewTypes; +} + +/** + * Optional Parameters. + */ +export interface CapacityReservationGroupsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. Based on the expand param(s) specified we + * return Virtual Machine or ScaleSet VM Instance or both resource Ids which are associated to + * capacity reservation group in the response. Possible values include: + * 'virtualMachineScaleSetVMs/$ref', 'virtualMachines/$ref' + */ + expand?: ExpandTypesForGetCapacityReservationGroups; +} + +/** + * Optional Parameters. + */ +export interface CapacityReservationGroupsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. Based on the expand param(s) specified we + * return Virtual Machine or ScaleSet VM Instance or both resource Ids which are associated to + * capacity reservation group in the response. Possible values include: + * 'virtualMachineScaleSetVMs/$ref', 'virtualMachines/$ref' + */ + expand?: ExpandTypesForGetCapacityReservationGroups; +} + +/** + * Optional Parameters. + */ +export interface CapacityReservationGroupsListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. Based on the expand param(s) specified we + * return Virtual Machine or ScaleSet VM Instance or both resource Ids which are associated to + * capacity reservation group in the response. Possible values include: + * 'virtualMachineScaleSetVMs/$ref', 'virtualMachines/$ref' + */ + expand?: ExpandTypesForGetCapacityReservationGroups; +} + +/** + * Optional Parameters. + */ +export interface CapacityReservationGroupsListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. Based on the expand param(s) specified we + * return Virtual Machine or ScaleSet VM Instance or both resource Ids which are associated to + * capacity reservation group in the response. Possible values include: + * 'virtualMachineScaleSetVMs/$ref', 'virtualMachines/$ref' + */ + expand?: ExpandTypesForGetCapacityReservationGroups; +} + +/** + * Optional Parameters. + */ +export interface CapacityReservationsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the + * runtime properties of the capacity reservation that is managed by the platform and can change + * outside of control plane operations. Possible values include: 'instanceView' + */ + expand?: CapacityReservationInstanceViewTypes; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetExtensionsGetOptionalParams extends msRest.RequestOptionsBase { /** * The expand expression to apply on the operation. */ @@ -9052,8 +9418,7 @@ export interface VirtualMachineScaleSetExtensionsGetOptionalParams /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMExtensionsGetOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetVMExtensionsGetOptionalParams extends msRest.RequestOptionsBase { /** * The expand expression to apply on the operation. */ @@ -9063,8 +9428,7 @@ export interface VirtualMachineScaleSetVMExtensionsGetOptionalParams /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMExtensionsListOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetVMExtensionsListOptionalParams extends msRest.RequestOptionsBase { /** * The expand expression to apply on the operation. */ @@ -9084,8 +9448,7 @@ export interface VirtualMachineScaleSetVMsReimageOptionalParams extends msRest.R /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsDeleteMethodOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetVMsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** * Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview) */ @@ -9139,8 +9502,7 @@ export interface VirtualMachineScaleSetVMsPowerOffOptionalParams extends msRest. /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams extends msRest.RequestOptionsBase { /** * Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes. *

NOTE: If not specified, SAS URIs will be generated with a default expiration duration @@ -9152,8 +9514,7 @@ export interface VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalPar /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsBeginReimageOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetVMsBeginReimageOptionalParams extends msRest.RequestOptionsBase { /** * Parameters for the Reimaging Virtual machine in ScaleSet. */ @@ -9163,8 +9524,7 @@ export interface VirtualMachineScaleSetVMsBeginReimageOptionalParams /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsBeginDeleteMethodOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetVMsBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** * Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview) */ @@ -9174,8 +9534,7 @@ export interface VirtualMachineScaleSetVMsBeginDeleteMethodOptionalParams /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMsBeginPowerOffOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetVMsBeginPowerOffOptionalParams extends msRest.RequestOptionsBase { /** * The parameter to request non-graceful VM shutdown. True value for this flag indicates * non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false @@ -9207,8 +9566,7 @@ export interface VirtualMachineScaleSetVMsListNextOptionalParams extends msRest. /** * Optional Parameters. */ -export interface VirtualMachineRunCommandsGetByVirtualMachineOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineRunCommandsGetByVirtualMachineOptionalParams extends msRest.RequestOptionsBase { /** * The expand expression to apply on the operation. */ @@ -9218,8 +9576,7 @@ export interface VirtualMachineRunCommandsGetByVirtualMachineOptionalParams /** * Optional Parameters. */ -export interface VirtualMachineRunCommandsListByVirtualMachineOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineRunCommandsListByVirtualMachineOptionalParams extends msRest.RequestOptionsBase { /** * The expand expression to apply on the operation. */ @@ -9229,8 +9586,7 @@ export interface VirtualMachineRunCommandsListByVirtualMachineOptionalParams /** * Optional Parameters. */ -export interface VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams extends msRest.RequestOptionsBase { /** * The expand expression to apply on the operation. */ @@ -9240,8 +9596,7 @@ export interface VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMRunCommandsGetOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetVMRunCommandsGetOptionalParams extends msRest.RequestOptionsBase { /** * The expand expression to apply on the operation. */ @@ -9251,8 +9606,7 @@ export interface VirtualMachineScaleSetVMRunCommandsGetOptionalParams /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMRunCommandsListOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetVMRunCommandsListOptionalParams extends msRest.RequestOptionsBase { /** * The expand expression to apply on the operation. */ @@ -9262,8 +9616,7 @@ export interface VirtualMachineScaleSetVMRunCommandsListOptionalParams /** * Optional Parameters. */ -export interface VirtualMachineScaleSetVMRunCommandsListNextOptionalParams - extends msRest.RequestOptionsBase { +export interface VirtualMachineScaleSetVMRunCommandsListNextOptionalParams extends msRest.RequestOptionsBase { /** * The expand expression to apply on the operation. */ @@ -9278,6 +9631,10 @@ export interface ResourceSkusListOptionalParams extends msRest.RequestOptionsBas * The filter to apply on the operation. Only **location** filter is supported currently. */ filter?: string; + /** + * To Include Extended Locations information or not in the response. + */ + includeExtendedLocations?: string; } /** @@ -9288,6 +9645,10 @@ export interface ResourceSkusListNextOptionalParams extends msRest.RequestOption * The filter to apply on the operation. Only **location** filter is supported currently. */ filter?: string; + /** + * To Include Extended Locations information or not in the response. + */ + includeExtendedLocations?: string; } /** @@ -9378,8 +9739,7 @@ export interface SharedGalleryImageVersionsListOptionalParams extends msRest.Req /** * Optional Parameters. */ -export interface SharedGalleryImageVersionsListNextOptionalParams - extends msRest.RequestOptionsBase { +export interface SharedGalleryImageVersionsListNextOptionalParams extends msRest.RequestOptionsBase { /** * The query parameter to decide what shared galleries to fetch when doing listing operations. * Possible values include: 'tenant' @@ -9552,7 +9912,8 @@ export interface ComputeManagementClientOptions extends AzureServiceClientOption * The List Compute Operation operation response. * @extends Array */ -export interface ComputeOperationListResult extends Array {} +export interface ComputeOperationListResult extends Array { +} /** * @interface @@ -9572,7 +9933,8 @@ export interface AvailabilitySetListResult extends Array { * The List Virtual Machine operation response. * @extends Array */ -export interface VirtualMachineSizeListResult extends Array {} +export interface VirtualMachineSizeListResult extends Array { +} /** * @interface @@ -9695,8 +10057,7 @@ export interface VirtualMachineScaleSetListSkusResult extends Array */ -export interface VirtualMachineScaleSetListOSUpgradeHistory - extends Array { +export interface VirtualMachineScaleSetListOSUpgradeHistory extends Array { /** * The uri to fetch the next page of OS Upgrade History. Call ListNext() with this to fetch the * next page of history of upgrades. @@ -9730,13 +10091,38 @@ export interface RestorePointCollectionListResult extends Array + */ +export interface CapacityReservationGroupListResult extends Array { + /** + * The URI to fetch the next page of capacity reservation groups. Call ListNext() with this URI + * to fetch the next page of capacity reservation groups. + */ + nextLink?: string; +} + +/** + * @interface + * The list capacity reservation operation response. + * @extends Array + */ +export interface CapacityReservationListResult extends Array { + /** + * The URI to fetch the next page of capacity reservations. Call ListNext() with this URI to + * fetch the next page of capacity reservations. + */ + nextLink?: string; +} + /** * @interface * The List VM scale set extension operation response. * @extends Array */ -export interface VirtualMachineScaleSetExtensionListResult - extends Array { +export interface VirtualMachineScaleSetExtensionListResult extends Array { /** * The uri to fetch the next page of VM scale set extensions. Call ListNext() with this to fetch * the next page of VM scale set extensions. @@ -10083,173 +10469,7 @@ export interface OSFamilyListResult extends Array { * @readonly * @enum {string} */ -export type VirtualMachineSizeTypes = - | "Basic_A0" - | "Basic_A1" - | "Basic_A2" - | "Basic_A3" - | "Basic_A4" - | "Standard_A0" - | "Standard_A1" - | "Standard_A2" - | "Standard_A3" - | "Standard_A4" - | "Standard_A5" - | "Standard_A6" - | "Standard_A7" - | "Standard_A8" - | "Standard_A9" - | "Standard_A10" - | "Standard_A11" - | "Standard_A1_v2" - | "Standard_A2_v2" - | "Standard_A4_v2" - | "Standard_A8_v2" - | "Standard_A2m_v2" - | "Standard_A4m_v2" - | "Standard_A8m_v2" - | "Standard_B1s" - | "Standard_B1ms" - | "Standard_B2s" - | "Standard_B2ms" - | "Standard_B4ms" - | "Standard_B8ms" - | "Standard_D1" - | "Standard_D2" - | "Standard_D3" - | "Standard_D4" - | "Standard_D11" - | "Standard_D12" - | "Standard_D13" - | "Standard_D14" - | "Standard_D1_v2" - | "Standard_D2_v2" - | "Standard_D3_v2" - | "Standard_D4_v2" - | "Standard_D5_v2" - | "Standard_D2_v3" - | "Standard_D4_v3" - | "Standard_D8_v3" - | "Standard_D16_v3" - | "Standard_D32_v3" - | "Standard_D64_v3" - | "Standard_D2s_v3" - | "Standard_D4s_v3" - | "Standard_D8s_v3" - | "Standard_D16s_v3" - | "Standard_D32s_v3" - | "Standard_D64s_v3" - | "Standard_D11_v2" - | "Standard_D12_v2" - | "Standard_D13_v2" - | "Standard_D14_v2" - | "Standard_D15_v2" - | "Standard_DS1" - | "Standard_DS2" - | "Standard_DS3" - | "Standard_DS4" - | "Standard_DS11" - | "Standard_DS12" - | "Standard_DS13" - | "Standard_DS14" - | "Standard_DS1_v2" - | "Standard_DS2_v2" - | "Standard_DS3_v2" - | "Standard_DS4_v2" - | "Standard_DS5_v2" - | "Standard_DS11_v2" - | "Standard_DS12_v2" - | "Standard_DS13_v2" - | "Standard_DS14_v2" - | "Standard_DS15_v2" - | "Standard_DS13-4_v2" - | "Standard_DS13-2_v2" - | "Standard_DS14-8_v2" - | "Standard_DS14-4_v2" - | "Standard_E2_v3" - | "Standard_E4_v3" - | "Standard_E8_v3" - | "Standard_E16_v3" - | "Standard_E32_v3" - | "Standard_E64_v3" - | "Standard_E2s_v3" - | "Standard_E4s_v3" - | "Standard_E8s_v3" - | "Standard_E16s_v3" - | "Standard_E32s_v3" - | "Standard_E64s_v3" - | "Standard_E32-16_v3" - | "Standard_E32-8s_v3" - | "Standard_E64-32s_v3" - | "Standard_E64-16s_v3" - | "Standard_F1" - | "Standard_F2" - | "Standard_F4" - | "Standard_F8" - | "Standard_F16" - | "Standard_F1s" - | "Standard_F2s" - | "Standard_F4s" - | "Standard_F8s" - | "Standard_F16s" - | "Standard_F2s_v2" - | "Standard_F4s_v2" - | "Standard_F8s_v2" - | "Standard_F16s_v2" - | "Standard_F32s_v2" - | "Standard_F64s_v2" - | "Standard_F72s_v2" - | "Standard_G1" - | "Standard_G2" - | "Standard_G3" - | "Standard_G4" - | "Standard_G5" - | "Standard_GS1" - | "Standard_GS2" - | "Standard_GS3" - | "Standard_GS4" - | "Standard_GS5" - | "Standard_GS4-8" - | "Standard_GS4-4" - | "Standard_GS5-16" - | "Standard_GS5-8" - | "Standard_H8" - | "Standard_H16" - | "Standard_H8m" - | "Standard_H16m" - | "Standard_H16r" - | "Standard_H16mr" - | "Standard_L4s" - | "Standard_L8s" - | "Standard_L16s" - | "Standard_L32s" - | "Standard_M64s" - | "Standard_M64ms" - | "Standard_M128s" - | "Standard_M128ms" - | "Standard_M64-32ms" - | "Standard_M64-16ms" - | "Standard_M128-64ms" - | "Standard_M128-32ms" - | "Standard_NC6" - | "Standard_NC12" - | "Standard_NC24" - | "Standard_NC24r" - | "Standard_NC6s_v2" - | "Standard_NC12s_v2" - | "Standard_NC24s_v2" - | "Standard_NC24rs_v2" - | "Standard_NC6s_v3" - | "Standard_NC12s_v3" - | "Standard_NC24s_v3" - | "Standard_NC24rs_v3" - | "Standard_ND6s" - | "Standard_ND12s" - | "Standard_ND24s" - | "Standard_ND24rs" - | "Standard_NV6" - | "Standard_NV12" - | "Standard_NV24"; +export type VirtualMachineSizeTypes = 'Basic_A0' | 'Basic_A1' | 'Basic_A2' | 'Basic_A3' | 'Basic_A4' | 'Standard_A0' | 'Standard_A1' | 'Standard_A2' | 'Standard_A3' | 'Standard_A4' | 'Standard_A5' | 'Standard_A6' | 'Standard_A7' | 'Standard_A8' | 'Standard_A9' | 'Standard_A10' | 'Standard_A11' | 'Standard_A1_v2' | 'Standard_A2_v2' | 'Standard_A4_v2' | 'Standard_A8_v2' | 'Standard_A2m_v2' | 'Standard_A4m_v2' | 'Standard_A8m_v2' | 'Standard_B1s' | 'Standard_B1ms' | 'Standard_B2s' | 'Standard_B2ms' | 'Standard_B4ms' | 'Standard_B8ms' | 'Standard_D1' | 'Standard_D2' | 'Standard_D3' | 'Standard_D4' | 'Standard_D11' | 'Standard_D12' | 'Standard_D13' | 'Standard_D14' | 'Standard_D1_v2' | 'Standard_D2_v2' | 'Standard_D3_v2' | 'Standard_D4_v2' | 'Standard_D5_v2' | 'Standard_D2_v3' | 'Standard_D4_v3' | 'Standard_D8_v3' | 'Standard_D16_v3' | 'Standard_D32_v3' | 'Standard_D64_v3' | 'Standard_D2s_v3' | 'Standard_D4s_v3' | 'Standard_D8s_v3' | 'Standard_D16s_v3' | 'Standard_D32s_v3' | 'Standard_D64s_v3' | 'Standard_D11_v2' | 'Standard_D12_v2' | 'Standard_D13_v2' | 'Standard_D14_v2' | 'Standard_D15_v2' | 'Standard_DS1' | 'Standard_DS2' | 'Standard_DS3' | 'Standard_DS4' | 'Standard_DS11' | 'Standard_DS12' | 'Standard_DS13' | 'Standard_DS14' | 'Standard_DS1_v2' | 'Standard_DS2_v2' | 'Standard_DS3_v2' | 'Standard_DS4_v2' | 'Standard_DS5_v2' | 'Standard_DS11_v2' | 'Standard_DS12_v2' | 'Standard_DS13_v2' | 'Standard_DS14_v2' | 'Standard_DS15_v2' | 'Standard_DS13-4_v2' | 'Standard_DS13-2_v2' | 'Standard_DS14-8_v2' | 'Standard_DS14-4_v2' | 'Standard_E2_v3' | 'Standard_E4_v3' | 'Standard_E8_v3' | 'Standard_E16_v3' | 'Standard_E32_v3' | 'Standard_E64_v3' | 'Standard_E2s_v3' | 'Standard_E4s_v3' | 'Standard_E8s_v3' | 'Standard_E16s_v3' | 'Standard_E32s_v3' | 'Standard_E64s_v3' | 'Standard_E32-16_v3' | 'Standard_E32-8s_v3' | 'Standard_E64-32s_v3' | 'Standard_E64-16s_v3' | 'Standard_F1' | 'Standard_F2' | 'Standard_F4' | 'Standard_F8' | 'Standard_F16' | 'Standard_F1s' | 'Standard_F2s' | 'Standard_F4s' | 'Standard_F8s' | 'Standard_F16s' | 'Standard_F2s_v2' | 'Standard_F4s_v2' | 'Standard_F8s_v2' | 'Standard_F16s_v2' | 'Standard_F32s_v2' | 'Standard_F64s_v2' | 'Standard_F72s_v2' | 'Standard_G1' | 'Standard_G2' | 'Standard_G3' | 'Standard_G4' | 'Standard_G5' | 'Standard_GS1' | 'Standard_GS2' | 'Standard_GS3' | 'Standard_GS4' | 'Standard_GS5' | 'Standard_GS4-8' | 'Standard_GS4-4' | 'Standard_GS5-16' | 'Standard_GS5-8' | 'Standard_H8' | 'Standard_H16' | 'Standard_H8m' | 'Standard_H16m' | 'Standard_H16r' | 'Standard_H16mr' | 'Standard_L4s' | 'Standard_L8s' | 'Standard_L16s' | 'Standard_L32s' | 'Standard_M64s' | 'Standard_M64ms' | 'Standard_M128s' | 'Standard_M128ms' | 'Standard_M64-32ms' | 'Standard_M64-16ms' | 'Standard_M128-64ms' | 'Standard_M128-32ms' | 'Standard_NC6' | 'Standard_NC12' | 'Standard_NC24' | 'Standard_NC24r' | 'Standard_NC6s_v2' | 'Standard_NC12s_v2' | 'Standard_NC24s_v2' | 'Standard_NC24rs_v2' | 'Standard_NC6s_v3' | 'Standard_NC12s_v3' | 'Standard_NC24s_v3' | 'Standard_NC24rs_v3' | 'Standard_ND6s' | 'Standard_ND12s' | 'Standard_ND24s' | 'Standard_ND24rs' | 'Standard_NV6' | 'Standard_NV12' | 'Standard_NV24'; /** * Defines values for OperatingSystemType. @@ -10257,7 +10477,7 @@ export type VirtualMachineSizeTypes = * @readonly * @enum {string} */ -export type OperatingSystemType = "Windows" | "Linux"; +export type OperatingSystemType = 'Windows' | 'Linux'; /** * Defines values for CachingTypes. @@ -10265,7 +10485,7 @@ export type OperatingSystemType = "Windows" | "Linux"; * @readonly * @enum {string} */ -export type CachingTypes = "None" | "ReadOnly" | "ReadWrite"; +export type CachingTypes = 'None' | 'ReadOnly' | 'ReadWrite'; /** * Defines values for StorageAccountTypes. @@ -10274,13 +10494,7 @@ export type CachingTypes = "None" | "ReadOnly" | "ReadWrite"; * @readonly * @enum {string} */ -export type StorageAccountTypes = - | "Standard_LRS" - | "Premium_LRS" - | "StandardSSD_LRS" - | "UltraSSD_LRS" - | "Premium_ZRS" - | "StandardSSD_ZRS"; +export type StorageAccountTypes = 'Standard_LRS' | 'Premium_LRS' | 'StandardSSD_LRS' | 'UltraSSD_LRS' | 'Premium_ZRS' | 'StandardSSD_ZRS'; /** * Defines values for PassNames. @@ -10288,7 +10502,7 @@ export type StorageAccountTypes = * @readonly * @enum {string} */ -export type PassNames = "OobeSystem"; +export type PassNames = 'OobeSystem'; /** * Defines values for ComponentNames. @@ -10296,7 +10510,7 @@ export type PassNames = "OobeSystem"; * @readonly * @enum {string} */ -export type ComponentNames = "Microsoft-Windows-Shell-Setup"; +export type ComponentNames = 'Microsoft-Windows-Shell-Setup'; /** * Defines values for SettingNames. @@ -10304,7 +10518,7 @@ export type ComponentNames = "Microsoft-Windows-Shell-Setup"; * @readonly * @enum {string} */ -export type SettingNames = "AutoLogon" | "FirstLogonCommands"; +export type SettingNames = 'AutoLogon' | 'FirstLogonCommands'; /** * Defines values for WindowsVMGuestPatchMode. @@ -10312,7 +10526,7 @@ export type SettingNames = "AutoLogon" | "FirstLogonCommands"; * @readonly * @enum {string} */ -export type WindowsVMGuestPatchMode = "Manual" | "AutomaticByOS" | "AutomaticByPlatform"; +export type WindowsVMGuestPatchMode = 'Manual' | 'AutomaticByOS' | 'AutomaticByPlatform'; /** * Defines values for WindowsPatchAssessmentMode. @@ -10320,7 +10534,7 @@ export type WindowsVMGuestPatchMode = "Manual" | "AutomaticByOS" | "AutomaticByP * @readonly * @enum {string} */ -export type WindowsPatchAssessmentMode = "ImageDefault" | "AutomaticByPlatform"; +export type WindowsPatchAssessmentMode = 'ImageDefault' | 'AutomaticByPlatform'; /** * Defines values for ProtocolTypes. @@ -10328,7 +10542,7 @@ export type WindowsPatchAssessmentMode = "ImageDefault" | "AutomaticByPlatform"; * @readonly * @enum {string} */ -export type ProtocolTypes = "Http" | "Https"; +export type ProtocolTypes = 'Http' | 'Https'; /** * Defines values for LinuxVMGuestPatchMode. @@ -10336,7 +10550,7 @@ export type ProtocolTypes = "Http" | "Https"; * @readonly * @enum {string} */ -export type LinuxVMGuestPatchMode = "ImageDefault" | "AutomaticByPlatform"; +export type LinuxVMGuestPatchMode = 'ImageDefault' | 'AutomaticByPlatform'; /** * Defines values for LinuxPatchAssessmentMode. @@ -10344,7 +10558,7 @@ export type LinuxVMGuestPatchMode = "ImageDefault" | "AutomaticByPlatform"; * @readonly * @enum {string} */ -export type LinuxPatchAssessmentMode = "ImageDefault" | "AutomaticByPlatform"; +export type LinuxPatchAssessmentMode = 'ImageDefault' | 'AutomaticByPlatform'; /** * Defines values for SecurityTypes. @@ -10352,7 +10566,7 @@ export type LinuxPatchAssessmentMode = "ImageDefault" | "AutomaticByPlatform"; * @readonly * @enum {string} */ -export type SecurityTypes = "TrustedLaunch"; +export type SecurityTypes = 'TrustedLaunch'; /** * Defines values for ConsistencyModeTypes. @@ -10360,10 +10574,7 @@ export type SecurityTypes = "TrustedLaunch"; * @readonly * @enum {string} */ -export type ConsistencyModeTypes = - | "CrashConsistent" - | "FileSystemConsistent" - | "ApplicationConsistent"; +export type ConsistencyModeTypes = 'CrashConsistent' | 'FileSystemConsistent' | 'ApplicationConsistent'; /** * Defines values for VmDiskTypes. @@ -10371,7 +10582,7 @@ export type ConsistencyModeTypes = * @readonly * @enum {string} */ -export type VmDiskTypes = "None" | "Unmanaged"; +export type VmDiskTypes = 'None' | 'Unmanaged'; /** * Defines values for HyperVGenerationTypes. @@ -10379,7 +10590,7 @@ export type VmDiskTypes = "None" | "Unmanaged"; * @readonly * @enum {string} */ -export type HyperVGenerationTypes = "V1" | "V2"; +export type HyperVGenerationTypes = 'V1' | 'V2'; /** * Defines values for StatusLevelTypes. @@ -10387,7 +10598,7 @@ export type HyperVGenerationTypes = "V1" | "V2"; * @readonly * @enum {string} */ -export type StatusLevelTypes = "Info" | "Warning" | "Error"; +export type StatusLevelTypes = 'Info' | 'Warning' | 'Error'; /** * Defines values for AvailabilitySetSkuTypes. @@ -10395,7 +10606,7 @@ export type StatusLevelTypes = "Info" | "Warning" | "Error"; * @readonly * @enum {string} */ -export type AvailabilitySetSkuTypes = "Classic" | "Aligned"; +export type AvailabilitySetSkuTypes = 'Classic' | 'Aligned'; /** * Defines values for ProximityPlacementGroupType. @@ -10403,7 +10614,7 @@ export type AvailabilitySetSkuTypes = "Classic" | "Aligned"; * @readonly * @enum {string} */ -export type ProximityPlacementGroupType = "Standard" | "Ultra"; +export type ProximityPlacementGroupType = 'Standard' | 'Ultra'; /** * Defines values for DedicatedHostLicenseTypes. @@ -10411,10 +10622,7 @@ export type ProximityPlacementGroupType = "Standard" | "Ultra"; * @readonly * @enum {string} */ -export type DedicatedHostLicenseTypes = - | "None" - | "Windows_Server_Hybrid" - | "Windows_Server_Perpetual"; +export type DedicatedHostLicenseTypes = 'None' | 'Windows_Server_Hybrid' | 'Windows_Server_Perpetual'; /** * Defines values for ExtendedLocationTypes. @@ -10422,7 +10630,7 @@ export type DedicatedHostLicenseTypes = * @readonly * @enum {string} */ -export type ExtendedLocationTypes = "EdgeZone"; +export type ExtendedLocationTypes = 'EdgeZone'; /** * Defines values for VMGuestPatchRebootBehavior. @@ -10430,11 +10638,7 @@ export type ExtendedLocationTypes = "EdgeZone"; * @readonly * @enum {string} */ -export type VMGuestPatchRebootBehavior = - | "Unknown" - | "NeverReboots" - | "AlwaysRequiresReboot" - | "CanRequestReboot"; +export type VMGuestPatchRebootBehavior = 'Unknown' | 'NeverReboots' | 'AlwaysRequiresReboot' | 'CanRequestReboot'; /** * Defines values for PatchAssessmentState. @@ -10442,7 +10646,7 @@ export type VMGuestPatchRebootBehavior = * @readonly * @enum {string} */ -export type PatchAssessmentState = "Unknown" | "Available"; +export type PatchAssessmentState = 'Unknown' | 'Available'; /** * Defines values for PatchOperationStatus. @@ -10450,12 +10654,7 @@ export type PatchAssessmentState = "Unknown" | "Available"; * @readonly * @enum {string} */ -export type PatchOperationStatus = - | "Unknown" - | "InProgress" - | "Failed" - | "Succeeded" - | "CompletedWithWarnings"; +export type PatchOperationStatus = 'Unknown' | 'InProgress' | 'Failed' | 'Succeeded' | 'CompletedWithWarnings'; /** * Defines values for VMGuestPatchRebootSetting. @@ -10463,7 +10662,7 @@ export type PatchOperationStatus = * @readonly * @enum {string} */ -export type VMGuestPatchRebootSetting = "IfRequired" | "Never" | "Always"; +export type VMGuestPatchRebootSetting = 'IfRequired' | 'Never' | 'Always'; /** * Defines values for VMGuestPatchClassificationWindows. @@ -10472,15 +10671,7 @@ export type VMGuestPatchRebootSetting = "IfRequired" | "Never" | "Always"; * @readonly * @enum {string} */ -export type VMGuestPatchClassificationWindows = - | "Critical" - | "Security" - | "UpdateRollUp" - | "FeaturePack" - | "ServicePack" - | "Definition" - | "Tools" - | "Updates"; +export type VMGuestPatchClassificationWindows = 'Critical' | 'Security' | 'UpdateRollUp' | 'FeaturePack' | 'ServicePack' | 'Definition' | 'Tools' | 'Updates'; /** * Defines values for VMGuestPatchClassificationLinux. @@ -10488,7 +10679,7 @@ export type VMGuestPatchClassificationWindows = * @readonly * @enum {string} */ -export type VMGuestPatchClassificationLinux = "Critical" | "Security" | "Other"; +export type VMGuestPatchClassificationLinux = 'Critical' | 'Security' | 'Other'; /** * Defines values for VMGuestPatchRebootStatus. @@ -10496,13 +10687,7 @@ export type VMGuestPatchClassificationLinux = "Critical" | "Security" | "Other"; * @readonly * @enum {string} */ -export type VMGuestPatchRebootStatus = - | "Unknown" - | "NotNeeded" - | "Required" - | "Started" - | "Failed" - | "Completed"; +export type VMGuestPatchRebootStatus = 'Unknown' | 'NotNeeded' | 'Required' | 'Started' | 'Failed' | 'Completed'; /** * Defines values for PatchInstallationState. @@ -10510,13 +10695,7 @@ export type VMGuestPatchRebootStatus = * @readonly * @enum {string} */ -export type PatchInstallationState = - | "Unknown" - | "Installed" - | "Failed" - | "Excluded" - | "NotSelected" - | "Pending"; +export type PatchInstallationState = 'Unknown' | 'Installed' | 'Failed' | 'Excluded' | 'NotSelected' | 'Pending'; /** * Defines values for OperatingSystemTypes. @@ -10524,7 +10703,7 @@ export type PatchInstallationState = * @readonly * @enum {string} */ -export type OperatingSystemTypes = "Windows" | "Linux"; +export type OperatingSystemTypes = 'Windows' | 'Linux'; /** * Defines values for DiskCreateOptionTypes. @@ -10532,7 +10711,7 @@ export type OperatingSystemTypes = "Windows" | "Linux"; * @readonly * @enum {string} */ -export type DiskCreateOptionTypes = "FromImage" | "Empty" | "Attach"; +export type DiskCreateOptionTypes = 'FromImage' | 'Empty' | 'Attach'; /** * Defines values for DiskDetachOptionTypes. @@ -10540,7 +10719,7 @@ export type DiskCreateOptionTypes = "FromImage" | "Empty" | "Attach"; * @readonly * @enum {string} */ -export type DiskDetachOptionTypes = "ForceDetach"; +export type DiskDetachOptionTypes = 'ForceDetach'; /** * Defines values for DiskDeleteOptionTypes. @@ -10548,7 +10727,7 @@ export type DiskDetachOptionTypes = "ForceDetach"; * @readonly * @enum {string} */ -export type DiskDeleteOptionTypes = "Delete" | "Detach"; +export type DiskDeleteOptionTypes = 'Delete' | 'Detach'; /** * Defines values for DiffDiskOptions. @@ -10556,7 +10735,7 @@ export type DiskDeleteOptionTypes = "Delete" | "Detach"; * @readonly * @enum {string} */ -export type DiffDiskOptions = "Local"; +export type DiffDiskOptions = 'Local'; /** * Defines values for DiffDiskPlacement. @@ -10564,7 +10743,7 @@ export type DiffDiskOptions = "Local"; * @readonly * @enum {string} */ -export type DiffDiskPlacement = "CacheDisk" | "ResourceDisk"; +export type DiffDiskPlacement = 'CacheDisk' | 'ResourceDisk'; /** * Defines values for DeleteOptions. @@ -10572,7 +10751,7 @@ export type DiffDiskPlacement = "CacheDisk" | "ResourceDisk"; * @readonly * @enum {string} */ -export type DeleteOptions = "Delete" | "Detach"; +export type DeleteOptions = 'Delete' | 'Detach'; /** * Defines values for IPVersions. @@ -10580,7 +10759,7 @@ export type DeleteOptions = "Delete" | "Detach"; * @readonly * @enum {string} */ -export type IPVersions = "IPv4" | "IPv6"; +export type IPVersions = 'IPv4' | 'IPv6'; /** * Defines values for PublicIPAllocationMethod. @@ -10588,7 +10767,7 @@ export type IPVersions = "IPv4" | "IPv6"; * @readonly * @enum {string} */ -export type PublicIPAllocationMethod = "Dynamic" | "Static"; +export type PublicIPAllocationMethod = 'Dynamic' | 'Static'; /** * Defines values for PublicIPAddressSkuName. @@ -10596,7 +10775,7 @@ export type PublicIPAllocationMethod = "Dynamic" | "Static"; * @readonly * @enum {string} */ -export type PublicIPAddressSkuName = "Basic" | "Standard"; +export type PublicIPAddressSkuName = 'Basic' | 'Standard'; /** * Defines values for PublicIPAddressSkuTier. @@ -10604,7 +10783,7 @@ export type PublicIPAddressSkuName = "Basic" | "Standard"; * @readonly * @enum {string} */ -export type PublicIPAddressSkuTier = "Regional" | "Global"; +export type PublicIPAddressSkuTier = 'Regional' | 'Global'; /** * Defines values for NetworkApiVersion. @@ -10612,7 +10791,7 @@ export type PublicIPAddressSkuTier = "Regional" | "Global"; * @readonly * @enum {string} */ -export type NetworkApiVersion = "2020-11-01"; +export type NetworkApiVersion = '2020-11-01'; /** * Defines values for VirtualMachinePriorityTypes. @@ -10620,7 +10799,7 @@ export type NetworkApiVersion = "2020-11-01"; * @readonly * @enum {string} */ -export type VirtualMachinePriorityTypes = "Regular" | "Low" | "Spot"; +export type VirtualMachinePriorityTypes = 'Regular' | 'Low' | 'Spot'; /** * Defines values for VirtualMachineEvictionPolicyTypes. @@ -10628,7 +10807,7 @@ export type VirtualMachinePriorityTypes = "Regular" | "Low" | "Spot"; * @readonly * @enum {string} */ -export type VirtualMachineEvictionPolicyTypes = "Deallocate" | "Delete"; +export type VirtualMachineEvictionPolicyTypes = 'Deallocate' | 'Delete'; /** * Defines values for ResourceIdentityType. @@ -10637,11 +10816,7 @@ export type VirtualMachineEvictionPolicyTypes = "Deallocate" | "Delete"; * @readonly * @enum {string} */ -export type ResourceIdentityType = - | "SystemAssigned" - | "UserAssigned" - | "SystemAssigned, UserAssigned" - | "None"; +export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned' | 'None'; /** * Defines values for MaintenanceOperationResultCodeTypes. @@ -10649,11 +10824,7 @@ export type ResourceIdentityType = * @readonly * @enum {string} */ -export type MaintenanceOperationResultCodeTypes = - | "None" - | "RetryLater" - | "MaintenanceAborted" - | "MaintenanceCompleted"; +export type MaintenanceOperationResultCodeTypes = 'None' | 'RetryLater' | 'MaintenanceAborted' | 'MaintenanceCompleted'; /** * Defines values for HyperVGenerationType. @@ -10661,7 +10832,7 @@ export type MaintenanceOperationResultCodeTypes = * @readonly * @enum {string} */ -export type HyperVGenerationType = "V1" | "V2"; +export type HyperVGenerationType = 'V1' | 'V2'; /** * Defines values for UpgradeMode. @@ -10669,7 +10840,7 @@ export type HyperVGenerationType = "V1" | "V2"; * @readonly * @enum {string} */ -export type UpgradeMode = "Automatic" | "Manual" | "Rolling"; +export type UpgradeMode = 'Automatic' | 'Manual' | 'Rolling'; /** * Defines values for VirtualMachineScaleSetScaleInRules. @@ -10677,7 +10848,7 @@ export type UpgradeMode = "Automatic" | "Manual" | "Rolling"; * @readonly * @enum {string} */ -export type VirtualMachineScaleSetScaleInRules = "Default" | "OldestVM" | "NewestVM"; +export type VirtualMachineScaleSetScaleInRules = 'Default' | 'OldestVM' | 'NewestVM'; /** * Defines values for OrchestrationMode. @@ -10685,7 +10856,7 @@ export type VirtualMachineScaleSetScaleInRules = "Default" | "OldestVM" | "Newes * @readonly * @enum {string} */ -export type OrchestrationMode = "Uniform" | "Flexible"; +export type OrchestrationMode = 'Uniform' | 'Flexible'; /** * Defines values for OperatingSystemStateTypes. @@ -10693,7 +10864,7 @@ export type OrchestrationMode = "Uniform" | "Flexible"; * @readonly * @enum {string} */ -export type OperatingSystemStateTypes = "Generalized" | "Specialized"; +export type OperatingSystemStateTypes = 'Generalized' | 'Specialized'; /** * Defines values for IPVersion. @@ -10701,7 +10872,7 @@ export type OperatingSystemStateTypes = "Generalized" | "Specialized"; * @readonly * @enum {string} */ -export type IPVersion = "IPv4" | "IPv6"; +export type IPVersion = 'IPv4' | 'IPv6'; /** * Defines values for OrchestrationServiceNames. @@ -10709,7 +10880,7 @@ export type IPVersion = "IPv4" | "IPv6"; * @readonly * @enum {string} */ -export type OrchestrationServiceNames = "AutomaticRepairs"; +export type OrchestrationServiceNames = 'AutomaticRepairs' ; /** * Defines values for OrchestrationServiceState. @@ -10717,7 +10888,7 @@ export type OrchestrationServiceNames = "AutomaticRepairs"; * @readonly * @enum {string} */ -export type OrchestrationServiceState = "NotRunning" | "Running" | "Suspended"; +export type OrchestrationServiceState = 'NotRunning' | 'Running' | 'Suspended'; /** * Defines values for VirtualMachineScaleSetSkuScaleType. @@ -10725,7 +10896,7 @@ export type OrchestrationServiceState = "NotRunning" | "Running" | "Suspended"; * @readonly * @enum {string} */ -export type VirtualMachineScaleSetSkuScaleType = "Automatic" | "None"; +export type VirtualMachineScaleSetSkuScaleType = 'Automatic' | 'None'; /** * Defines values for UpgradeState. @@ -10733,7 +10904,7 @@ export type VirtualMachineScaleSetSkuScaleType = "Automatic" | "None"; * @readonly * @enum {string} */ -export type UpgradeState = "RollingForward" | "Cancelled" | "Completed" | "Faulted"; +export type UpgradeState = 'RollingForward' | 'Cancelled' | 'Completed' | 'Faulted'; /** * Defines values for UpgradeOperationInvoker. @@ -10741,7 +10912,7 @@ export type UpgradeState = "RollingForward" | "Cancelled" | "Completed" | "Fault * @readonly * @enum {string} */ -export type UpgradeOperationInvoker = "Unknown" | "User" | "Platform"; +export type UpgradeOperationInvoker = 'Unknown' | 'User' | 'Platform'; /** * Defines values for RollingUpgradeStatusCode. @@ -10749,7 +10920,7 @@ export type UpgradeOperationInvoker = "Unknown" | "User" | "Platform"; * @readonly * @enum {string} */ -export type RollingUpgradeStatusCode = "RollingForward" | "Cancelled" | "Completed" | "Faulted"; +export type RollingUpgradeStatusCode = 'RollingForward' | 'Cancelled' | 'Completed' | 'Faulted'; /** * Defines values for RollingUpgradeActionType. @@ -10757,7 +10928,7 @@ export type RollingUpgradeStatusCode = "RollingForward" | "Cancelled" | "Complet * @readonly * @enum {string} */ -export type RollingUpgradeActionType = "Start" | "Cancel"; +export type RollingUpgradeActionType = 'Start' | 'Cancel'; /** * Defines values for IntervalInMins. @@ -10765,7 +10936,7 @@ export type RollingUpgradeActionType = "Start" | "Cancel"; * @readonly * @enum {string} */ -export type IntervalInMins = "ThreeMins" | "FiveMins" | "ThirtyMins" | "SixtyMins"; +export type IntervalInMins = 'ThreeMins' | 'FiveMins' | 'ThirtyMins' | 'SixtyMins'; /** * Defines values for OrchestrationServiceStateAction. @@ -10773,7 +10944,7 @@ export type IntervalInMins = "ThreeMins" | "FiveMins" | "ThirtyMins" | "SixtyMin * @readonly * @enum {string} */ -export type OrchestrationServiceStateAction = "Resume" | "Suspend"; +export type OrchestrationServiceStateAction = 'Resume' | 'Suspend'; /** * Defines values for ExecutionState. @@ -10782,14 +10953,7 @@ export type OrchestrationServiceStateAction = "Resume" | "Suspend"; * @readonly * @enum {string} */ -export type ExecutionState = - | "Unknown" - | "Pending" - | "Running" - | "Failed" - | "Succeeded" - | "TimedOut" - | "Canceled"; +export type ExecutionState = 'Unknown' | 'Pending' | 'Running' | 'Failed' | 'Succeeded' | 'TimedOut' | 'Canceled'; /** * Defines values for ResourceSkuCapacityScaleType. @@ -10797,7 +10961,7 @@ export type ExecutionState = * @readonly * @enum {string} */ -export type ResourceSkuCapacityScaleType = "Automatic" | "Manual" | "None"; +export type ResourceSkuCapacityScaleType = 'Automatic' | 'Manual' | 'None'; /** * Defines values for ResourceSkuRestrictionsType. @@ -10805,7 +10969,7 @@ export type ResourceSkuCapacityScaleType = "Automatic" | "Manual" | "None"; * @readonly * @enum {string} */ -export type ResourceSkuRestrictionsType = "Location" | "Zone"; +export type ResourceSkuRestrictionsType = 'Location' | 'Zone'; /** * Defines values for ResourceSkuRestrictionsReasonCode. @@ -10813,7 +10977,15 @@ export type ResourceSkuRestrictionsType = "Location" | "Zone"; * @readonly * @enum {string} */ -export type ResourceSkuRestrictionsReasonCode = "QuotaId" | "NotAvailableForSubscription"; +export type ResourceSkuRestrictionsReasonCode = 'QuotaId' | 'NotAvailableForSubscription'; + +/** + * Defines values for ExtendedLocationType. + * Possible values include: 'EdgeZone' + * @readonly + * @enum {string} + */ +export type ExtendedLocationType = 'EdgeZone'; /** * Defines values for DiskStorageAccountTypes. @@ -10822,13 +10994,7 @@ export type ResourceSkuRestrictionsReasonCode = "QuotaId" | "NotAvailableForSubs * @readonly * @enum {string} */ -export type DiskStorageAccountTypes = - | "Standard_LRS" - | "Premium_LRS" - | "StandardSSD_LRS" - | "UltraSSD_LRS" - | "Premium_ZRS" - | "StandardSSD_ZRS"; +export type DiskStorageAccountTypes = 'Standard_LRS' | 'Premium_LRS' | 'StandardSSD_LRS' | 'UltraSSD_LRS' | 'Premium_ZRS' | 'StandardSSD_ZRS'; /** * Defines values for HyperVGeneration. @@ -10836,7 +11002,7 @@ export type DiskStorageAccountTypes = * @readonly * @enum {string} */ -export type HyperVGeneration = "V1" | "V2"; +export type HyperVGeneration = 'V1' | 'V2'; /** * Defines values for DiskCreateOption. @@ -10844,14 +11010,7 @@ export type HyperVGeneration = "V1" | "V2"; * @readonly * @enum {string} */ -export type DiskCreateOption = - | "Empty" - | "Attach" - | "FromImage" - | "Import" - | "Copy" - | "Restore" - | "Upload"; +export type DiskCreateOption = 'Empty' | 'Attach' | 'FromImage' | 'Import' | 'Copy' | 'Restore' | 'Upload'; /** * Defines values for DiskState. @@ -10860,13 +11019,7 @@ export type DiskCreateOption = * @readonly * @enum {string} */ -export type DiskState = - | "Unattached" - | "Attached" - | "Reserved" - | "ActiveSAS" - | "ReadyToUpload" - | "ActiveUpload"; +export type DiskState = 'Unattached' | 'Attached' | 'Reserved' | 'ActiveSAS' | 'ReadyToUpload' | 'ActiveUpload'; /** * Defines values for EncryptionType. @@ -10875,10 +11028,7 @@ export type DiskState = * @readonly * @enum {string} */ -export type EncryptionType = - | "EncryptionAtRestWithPlatformKey" - | "EncryptionAtRestWithCustomerKey" - | "EncryptionAtRestWithPlatformAndCustomerKeys"; +export type EncryptionType = 'EncryptionAtRestWithPlatformKey' | 'EncryptionAtRestWithCustomerKey' | 'EncryptionAtRestWithPlatformAndCustomerKeys'; /** * Defines values for NetworkAccessPolicy. @@ -10886,7 +11036,7 @@ export type EncryptionType = * @readonly * @enum {string} */ -export type NetworkAccessPolicy = "AllowAll" | "AllowPrivate" | "DenyAll"; +export type NetworkAccessPolicy = 'AllowAll' | 'AllowPrivate' | 'DenyAll'; /** * Defines values for DiskSecurityTypes. @@ -10894,7 +11044,7 @@ export type NetworkAccessPolicy = "AllowAll" | "AllowPrivate" | "DenyAll"; * @readonly * @enum {string} */ -export type DiskSecurityTypes = "TrustedLaunch"; +export type DiskSecurityTypes = 'TrustedLaunch'; /** * Defines values for SnapshotStorageAccountTypes. @@ -10902,7 +11052,7 @@ export type DiskSecurityTypes = "TrustedLaunch"; * @readonly * @enum {string} */ -export type SnapshotStorageAccountTypes = "Standard_LRS" | "Premium_LRS" | "Standard_ZRS"; +export type SnapshotStorageAccountTypes = 'Standard_LRS' | 'Premium_LRS' | 'Standard_ZRS'; /** * Defines values for DiskEncryptionSetType. @@ -10911,9 +11061,7 @@ export type SnapshotStorageAccountTypes = "Standard_LRS" | "Premium_LRS" | "Stan * @readonly * @enum {string} */ -export type DiskEncryptionSetType = - | "EncryptionAtRestWithCustomerKey" - | "EncryptionAtRestWithPlatformAndCustomerKeys"; +export type DiskEncryptionSetType = 'EncryptionAtRestWithCustomerKey' | 'EncryptionAtRestWithPlatformAndCustomerKeys'; /** * Defines values for AccessLevel. @@ -10921,7 +11069,7 @@ export type DiskEncryptionSetType = * @readonly * @enum {string} */ -export type AccessLevel = "None" | "Read" | "Write"; +export type AccessLevel = 'None' | 'Read' | 'Write'; /** * Defines values for DiskEncryptionSetIdentityType. @@ -10929,7 +11077,7 @@ export type AccessLevel = "None" | "Read" | "Write"; * @readonly * @enum {string} */ -export type DiskEncryptionSetIdentityType = "SystemAssigned" | "None"; +export type DiskEncryptionSetIdentityType = 'SystemAssigned' | 'None'; /** * Defines values for PrivateEndpointServiceConnectionStatus. @@ -10937,7 +11085,7 @@ export type DiskEncryptionSetIdentityType = "SystemAssigned" | "None"; * @readonly * @enum {string} */ -export type PrivateEndpointServiceConnectionStatus = "Pending" | "Approved" | "Rejected"; +export type PrivateEndpointServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected'; /** * Defines values for PrivateEndpointConnectionProvisioningState. @@ -10945,11 +11093,7 @@ export type PrivateEndpointServiceConnectionStatus = "Pending" | "Approved" | "R * @readonly * @enum {string} */ -export type PrivateEndpointConnectionProvisioningState = - | "Succeeded" - | "Creating" - | "Deleting" - | "Failed"; +export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed'; /** * Defines values for GallerySharingPermissionTypes. @@ -10957,7 +11101,7 @@ export type PrivateEndpointConnectionProvisioningState = * @readonly * @enum {string} */ -export type GallerySharingPermissionTypes = "Private" | "Groups"; +export type GallerySharingPermissionTypes = 'Private' | 'Groups'; /** * Defines values for SharingProfileGroupTypes. @@ -10965,7 +11109,7 @@ export type GallerySharingPermissionTypes = "Private" | "Groups"; * @readonly * @enum {string} */ -export type SharingProfileGroupTypes = "Subscriptions" | "AADTenants"; +export type SharingProfileGroupTypes = 'Subscriptions' | 'AADTenants'; /** * Defines values for AggregatedReplicationState. @@ -10973,7 +11117,7 @@ export type SharingProfileGroupTypes = "Subscriptions" | "AADTenants"; * @readonly * @enum {string} */ -export type AggregatedReplicationState = "Unknown" | "InProgress" | "Completed" | "Failed"; +export type AggregatedReplicationState = 'Unknown' | 'InProgress' | 'Completed' | 'Failed'; /** * Defines values for ReplicationState. @@ -10981,7 +11125,7 @@ export type AggregatedReplicationState = "Unknown" | "InProgress" | "Completed" * @readonly * @enum {string} */ -export type ReplicationState = "Unknown" | "Replicating" | "Completed" | "Failed"; +export type ReplicationState = 'Unknown' | 'Replicating' | 'Completed' | 'Failed'; /** * Defines values for StorageAccountType. @@ -10989,7 +11133,7 @@ export type ReplicationState = "Unknown" | "Replicating" | "Completed" | "Failed * @readonly * @enum {string} */ -export type StorageAccountType = "Standard_LRS" | "Standard_ZRS" | "Premium_LRS"; +export type StorageAccountType = 'Standard_LRS' | 'Standard_ZRS' | 'Premium_LRS'; /** * Defines values for HostCaching. @@ -10997,7 +11141,7 @@ export type StorageAccountType = "Standard_LRS" | "Standard_ZRS" | "Premium_LRS" * @readonly * @enum {string} */ -export type HostCaching = "None" | "ReadOnly" | "ReadWrite"; +export type HostCaching = 'None' | 'ReadOnly' | 'ReadWrite'; /** * Defines values for SharingUpdateOperationTypes. @@ -11005,7 +11149,7 @@ export type HostCaching = "None" | "ReadOnly" | "ReadWrite"; * @readonly * @enum {string} */ -export type SharingUpdateOperationTypes = "Add" | "Remove" | "Reset"; +export type SharingUpdateOperationTypes = 'Add' | 'Remove' | 'Reset'; /** * Defines values for CloudServiceUpgradeMode. @@ -11013,7 +11157,7 @@ export type SharingUpdateOperationTypes = "Add" | "Remove" | "Reset"; * @readonly * @enum {string} */ -export type CloudServiceUpgradeMode = "Auto" | "Manual" | "Simultaneous"; +export type CloudServiceUpgradeMode = 'Auto' | 'Manual' | 'Simultaneous'; /** * Defines values for InstanceViewTypes. @@ -11021,7 +11165,7 @@ export type CloudServiceUpgradeMode = "Auto" | "Manual" | "Simultaneous"; * @readonly * @enum {string} */ -export type InstanceViewTypes = "instanceView" | "userData"; +export type InstanceViewTypes = 'instanceView' | 'userData'; /** * Defines values for RestorePointCollectionExpandOptions. @@ -11029,7 +11173,31 @@ export type InstanceViewTypes = "instanceView" | "userData"; * @readonly * @enum {string} */ -export type RestorePointCollectionExpandOptions = "restorePoints"; +export type RestorePointCollectionExpandOptions = 'restorePoints'; + +/** + * Defines values for CapacityReservationGroupInstanceViewTypes. + * Possible values include: 'instanceView' + * @readonly + * @enum {string} + */ +export type CapacityReservationGroupInstanceViewTypes = 'instanceView'; + +/** + * Defines values for ExpandTypesForGetCapacityReservationGroups. + * Possible values include: 'virtualMachineScaleSetVMs/$ref', 'virtualMachines/$ref' + * @readonly + * @enum {string} + */ +export type ExpandTypesForGetCapacityReservationGroups = 'virtualMachineScaleSetVMs/$ref' | 'virtualMachines/$ref'; + +/** + * Defines values for CapacityReservationInstanceViewTypes. + * Possible values include: 'instanceView' + * @readonly + * @enum {string} + */ +export type CapacityReservationInstanceViewTypes = 'instanceView'; /** * Defines values for ExpandTypesForGetVMScaleSets. @@ -11037,7 +11205,7 @@ export type RestorePointCollectionExpandOptions = "restorePoints"; * @readonly * @enum {string} */ -export type ExpandTypesForGetVMScaleSets = "userData"; +export type ExpandTypesForGetVMScaleSets = 'userData'; /** * Defines values for SelectPermissions. @@ -11045,7 +11213,7 @@ export type ExpandTypesForGetVMScaleSets = "userData"; * @readonly * @enum {string} */ -export type SelectPermissions = "Permissions"; +export type SelectPermissions = 'Permissions'; /** * Defines values for ReplicationStatusTypes. @@ -11053,7 +11221,7 @@ export type SelectPermissions = "Permissions"; * @readonly * @enum {string} */ -export type ReplicationStatusTypes = "ReplicationStatus"; +export type ReplicationStatusTypes = 'ReplicationStatus'; /** * Defines values for SharedToValues. @@ -11061,7 +11229,7 @@ export type ReplicationStatusTypes = "ReplicationStatus"; * @readonly * @enum {string} */ -export type SharedToValues = "tenant"; +export type SharedToValues = 'tenant'; /** * Defines values for ProvisioningState. @@ -11069,13 +11237,7 @@ export type SharedToValues = "tenant"; * @readonly * @enum {string} */ -export type ProvisioningState = - | "Creating" - | "Updating" - | "Failed" - | "Succeeded" - | "Deleting" - | "Migrating"; +export type ProvisioningState = 'Creating' | 'Updating' | 'Failed' | 'Succeeded' | 'Deleting' | 'Migrating'; /** * Defines values for ProvisioningState1. @@ -11083,13 +11245,7 @@ export type ProvisioningState = * @readonly * @enum {string} */ -export type ProvisioningState1 = - | "Creating" - | "Updating" - | "Failed" - | "Succeeded" - | "Deleting" - | "Migrating"; +export type ProvisioningState1 = 'Creating' | 'Updating' | 'Failed' | 'Succeeded' | 'Deleting' | 'Migrating'; /** * Defines values for ProvisioningState2. @@ -11097,13 +11253,7 @@ export type ProvisioningState1 = * @readonly * @enum {string} */ -export type ProvisioningState2 = - | "Creating" - | "Updating" - | "Failed" - | "Succeeded" - | "Deleting" - | "Migrating"; +export type ProvisioningState2 = 'Creating' | 'Updating' | 'Failed' | 'Succeeded' | 'Deleting' | 'Migrating'; /** * Defines values for ProvisioningState3. @@ -11111,13 +11261,7 @@ export type ProvisioningState2 = * @readonly * @enum {string} */ -export type ProvisioningState3 = - | "Creating" - | "Updating" - | "Failed" - | "Succeeded" - | "Deleting" - | "Migrating"; +export type ProvisioningState3 = 'Creating' | 'Updating' | 'Failed' | 'Succeeded' | 'Deleting' | 'Migrating'; /** * Contains response data for the list operation. @@ -11127,16 +11271,16 @@ export type OperationsListResponse = ComputeOperationListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ComputeOperationListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComputeOperationListResult; + }; }; /** @@ -11147,16 +11291,16 @@ export type AvailabilitySetsCreateOrUpdateResponse = AvailabilitySet & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: AvailabilitySet; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AvailabilitySet; + }; }; /** @@ -11167,16 +11311,16 @@ export type AvailabilitySetsUpdateResponse = AvailabilitySet & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: AvailabilitySet; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AvailabilitySet; + }; }; /** @@ -11187,16 +11331,16 @@ export type AvailabilitySetsGetResponse = AvailabilitySet & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: AvailabilitySet; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AvailabilitySet; + }; }; /** @@ -11207,16 +11351,16 @@ export type AvailabilitySetsListBySubscriptionResponse = AvailabilitySetListResu * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: AvailabilitySetListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AvailabilitySetListResult; + }; }; /** @@ -11227,16 +11371,16 @@ export type AvailabilitySetsListResponse = AvailabilitySetListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: AvailabilitySetListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AvailabilitySetListResult; + }; }; /** @@ -11247,16 +11391,16 @@ export type AvailabilitySetsListAvailableSizesResponse = VirtualMachineSizeListR * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualMachineSizeListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualMachineSizeListResult; + }; }; /** @@ -11267,16 +11411,16 @@ export type AvailabilitySetsListBySubscriptionNextResponse = AvailabilitySetList * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: AvailabilitySetListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AvailabilitySetListResult; + }; }; /** @@ -11287,16 +11431,16 @@ export type AvailabilitySetsListNextResponse = AvailabilitySetListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: AvailabilitySetListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AvailabilitySetListResult; + }; }; /** @@ -11307,16 +11451,16 @@ export type ProximityPlacementGroupsCreateOrUpdateResponse = ProximityPlacementG * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ProximityPlacementGroup; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProximityPlacementGroup; + }; }; /** @@ -11327,16 +11471,16 @@ export type ProximityPlacementGroupsUpdateResponse = ProximityPlacementGroup & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ProximityPlacementGroup; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProximityPlacementGroup; + }; }; /** @@ -11347,16 +11491,16 @@ export type ProximityPlacementGroupsGetResponse = ProximityPlacementGroup & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ProximityPlacementGroup; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProximityPlacementGroup; + }; }; /** @@ -11367,16 +11511,16 @@ export type ProximityPlacementGroupsListBySubscriptionResponse = ProximityPlacem * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ProximityPlacementGroupListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProximityPlacementGroupListResult; + }; }; /** @@ -11387,16 +11531,16 @@ export type ProximityPlacementGroupsListByResourceGroupResponse = ProximityPlace * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ProximityPlacementGroupListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProximityPlacementGroupListResult; + }; }; /** @@ -11407,16 +11551,16 @@ export type ProximityPlacementGroupsListBySubscriptionNextResponse = ProximityPl * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ProximityPlacementGroupListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProximityPlacementGroupListResult; + }; }; /** @@ -11427,16 +11571,16 @@ export type ProximityPlacementGroupsListByResourceGroupNextResponse = ProximityP * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ProximityPlacementGroupListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProximityPlacementGroupListResult; + }; }; /** @@ -11447,16 +11591,16 @@ export type DedicatedHostGroupsCreateOrUpdateResponse = DedicatedHostGroup & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DedicatedHostGroup; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroup; + }; }; /** @@ -11467,16 +11611,16 @@ export type DedicatedHostGroupsUpdateResponse = DedicatedHostGroup & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DedicatedHostGroup; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroup; + }; }; /** @@ -11487,16 +11631,16 @@ export type DedicatedHostGroupsGetResponse = DedicatedHostGroup & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DedicatedHostGroup; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroup; + }; }; /** @@ -11507,16 +11651,16 @@ export type DedicatedHostGroupsListByResourceGroupResponse = DedicatedHostGroupL * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DedicatedHostGroupListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroupListResult; + }; }; /** @@ -11527,16 +11671,16 @@ export type DedicatedHostGroupsListBySubscriptionResponse = DedicatedHostGroupLi * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DedicatedHostGroupListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroupListResult; + }; }; /** @@ -11547,16 +11691,16 @@ export type DedicatedHostGroupsListByResourceGroupNextResponse = DedicatedHostGr * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DedicatedHostGroupListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroupListResult; + }; }; /** @@ -11567,16 +11711,16 @@ export type DedicatedHostGroupsListBySubscriptionNextResponse = DedicatedHostGro * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DedicatedHostGroupListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroupListResult; + }; }; /** @@ -11587,16 +11731,16 @@ export type DedicatedHostsCreateOrUpdateResponse = DedicatedHost & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DedicatedHost; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHost; + }; }; /** @@ -11607,16 +11751,16 @@ export type DedicatedHostsUpdateResponse = DedicatedHost & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DedicatedHost; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHost; + }; }; /** @@ -11627,16 +11771,16 @@ export type DedicatedHostsGetResponse = DedicatedHost & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DedicatedHost; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHost; + }; }; /** @@ -11647,16 +11791,16 @@ export type DedicatedHostsListByHostGroupResponse = DedicatedHostListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DedicatedHostListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostListResult; + }; }; /** @@ -11667,16 +11811,16 @@ export type DedicatedHostsBeginCreateOrUpdateResponse = DedicatedHost & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DedicatedHost; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHost; + }; }; /** @@ -11687,16 +11831,16 @@ export type DedicatedHostsBeginUpdateResponse = DedicatedHost & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DedicatedHost; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHost; + }; }; /** @@ -11707,16 +11851,16 @@ export type DedicatedHostsListByHostGroupNextResponse = DedicatedHostListResult * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DedicatedHostListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostListResult; + }; }; /** @@ -11727,16 +11871,16 @@ export type SshPublicKeysListBySubscriptionResponse = SshPublicKeysGroupListResu * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SshPublicKeysGroupListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SshPublicKeysGroupListResult; + }; }; /** @@ -11747,16 +11891,16 @@ export type SshPublicKeysListByResourceGroupResponse = SshPublicKeysGroupListRes * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SshPublicKeysGroupListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SshPublicKeysGroupListResult; + }; }; /** @@ -11767,16 +11911,16 @@ export type SshPublicKeysCreateResponse = SshPublicKeyResource & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SshPublicKeyResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SshPublicKeyResource; + }; }; /** @@ -11787,16 +11931,16 @@ export type SshPublicKeysUpdateResponse = SshPublicKeyResource & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SshPublicKeyResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SshPublicKeyResource; + }; }; /** @@ -11807,16 +11951,16 @@ export type SshPublicKeysGetResponse = SshPublicKeyResource & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SshPublicKeyResource; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SshPublicKeyResource; + }; }; /** @@ -11827,16 +11971,16 @@ export type SshPublicKeysGenerateKeyPairResponse = SshPublicKeyGenerateKeyPairRe * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SshPublicKeyGenerateKeyPairResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SshPublicKeyGenerateKeyPairResult; + }; }; /** @@ -11847,16 +11991,16 @@ export type SshPublicKeysListBySubscriptionNextResponse = SshPublicKeysGroupList * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SshPublicKeysGroupListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SshPublicKeysGroupListResult; + }; }; /** @@ -11867,16 +12011,16 @@ export type SshPublicKeysListByResourceGroupNextResponse = SshPublicKeysGroupLis * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SshPublicKeysGroupListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SshPublicKeysGroupListResult; + }; }; /** @@ -11887,16 +12031,16 @@ export type VirtualMachineExtensionImagesGetResponse = VirtualMachineExtensionIm * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualMachineExtensionImage; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualMachineExtensionImage; + }; }; /** @@ -11907,38 +12051,36 @@ export type VirtualMachineExtensionImagesListTypesResponse = Array & { +export type VirtualMachineExtensionImagesListVersionsResponse = Array & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualMachineExtensionImage[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualMachineExtensionImage[]; + }; }; /** @@ -11949,16 +12091,16 @@ export type VirtualMachineExtensionsCreateOrUpdateResponse = VirtualMachineExten * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualMachineExtension; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualMachineExtension; + }; }; /** @@ -11969,16 +12111,16 @@ export type VirtualMachineExtensionsUpdateResponse = VirtualMachineExtension & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualMachineExtension; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualMachineExtension; + }; }; /** @@ -11989,16 +12131,16 @@ export type VirtualMachineExtensionsGetResponse = VirtualMachineExtension & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualMachineExtension; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualMachineExtension; + }; }; /** @@ -12009,16 +12151,16 @@ export type VirtualMachineExtensionsListResponse = VirtualMachineExtensionsListR * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualMachineExtensionsListResult; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualMachineExtensionsListResult; + }; }; /** @@ -12029,16 +12171,16 @@ export type VirtualMachineExtensionsBeginCreateOrUpdateResponse = VirtualMachine * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualMachineExtension; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualMachineExtension; + }; }; /** @@ -12049,16 +12191,16 @@ export type VirtualMachineExtensionsBeginUpdateResponse = VirtualMachineExtensio * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualMachineExtension; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualMachineExtension; + }; }; /** @@ -12069,16 +12211,16 @@ export type VirtualMachineImagesGetResponse = VirtualMachineImage & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualMachineImage; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualMachineImage; + }; }; /** @@ -12089,16 +12231,16 @@ export type VirtualMachineImagesListResponse = Array & { +export type VirtualMachineImagesEdgeZoneListPublishersResponse = Array & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + /** + * The response body as text (string format) + */ + bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualMachineImageResource[]; - }; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualMachineImageResource[]; + }; }; /** @@ -12251,16 +12391,16 @@ export type VirtualMachineImagesEdgeZoneListSkusResponse = Array + */ + createOrUpdate(resourceGroupName: string, capacityReservationGroupName: string, parameters: Models.CapacityReservationGroup, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param parameters Parameters supplied to the Create capacity reservation Group. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, capacityReservationGroupName: string, parameters: Models.CapacityReservationGroup, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param parameters Parameters supplied to the Create capacity reservation Group. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, capacityReservationGroupName: string, parameters: Models.CapacityReservationGroup, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, capacityReservationGroupName: string, parameters: Models.CapacityReservationGroup, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + capacityReservationGroupName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * The operation to update a capacity reservation group. When updating a capacity reservation + * group, only tags may be modified. + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param parameters Parameters supplied to the Update capacity reservation Group operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, capacityReservationGroupName: string, parameters: Models.CapacityReservationGroupUpdate, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param parameters Parameters supplied to the Update capacity reservation Group operation. + * @param callback The callback + */ + update(resourceGroupName: string, capacityReservationGroupName: string, parameters: Models.CapacityReservationGroupUpdate, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param parameters Parameters supplied to the Update capacity reservation Group operation. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, capacityReservationGroupName: string, parameters: Models.CapacityReservationGroupUpdate, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, capacityReservationGroupName: string, parameters: Models.CapacityReservationGroupUpdate, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + capacityReservationGroupName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * The operation to delete a capacity reservation group. This operation is allowed only if all the + * associated resources are disassociated from the reservation group and all capacity reservations + * under the reservation group have also been deleted. Please refer to + * https://aka.ms/CapacityReservation for more details. + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, capacityReservationGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, capacityReservationGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, capacityReservationGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, capacityReservationGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + capacityReservationGroupName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * The operation that retrieves information about a capacity reservation group. + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, capacityReservationGroupName: string, options?: Models.CapacityReservationGroupsGetOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param callback The callback + */ + get(resourceGroupName: string, capacityReservationGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, capacityReservationGroupName: string, options: Models.CapacityReservationGroupsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, capacityReservationGroupName: string, options?: Models.CapacityReservationGroupsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + capacityReservationGroupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the capacity reservation groups in the specified resource group. Use the nextLink + * property in the response to get the next page of capacity reservation groups. + * @param resourceGroupName The name of the resource group. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: Models.CapacityReservationGroupsListByResourceGroupOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: Models.CapacityReservationGroupsListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: Models.CapacityReservationGroupsListByResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the capacity reservation groups in the subscription. Use the nextLink property in + * the response to get the next page of capacity reservation groups. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(options?: Models.CapacityReservationGroupsListBySubscriptionOptionalParams): Promise; + /** + * @param callback The callback + */ + listBySubscription(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listBySubscription(options: Models.CapacityReservationGroupsListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscription(options?: Models.CapacityReservationGroupsListBySubscriptionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listBySubscriptionOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the capacity reservation groups in the specified resource group. Use the nextLink + * property in the response to get the next page of capacity reservation groups. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: Models.CapacityReservationGroupsListByResourceGroupNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: Models.CapacityReservationGroupsListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.CapacityReservationGroupsListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the capacity reservation groups in the subscription. Use the nextLink property in + * the response to get the next page of capacity reservation groups. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscriptionNext(nextPageLink: string, options?: Models.CapacityReservationGroupsListBySubscriptionNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, options: Models.CapacityReservationGroupsListBySubscriptionNextOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: Models.CapacityReservationGroupsListBySubscriptionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySubscriptionNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.capacityReservationGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CapacityReservationGroup, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CapacityReservationGroup + }, + 201: { + bodyMapper: Mappers.CapacityReservationGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.capacityReservationGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CapacityReservationGroupUpdate, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CapacityReservationGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.capacityReservationGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.capacityReservationGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand2, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CapacityReservationGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.expand3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CapacityReservationGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.expand3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CapacityReservationGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.expand3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CapacityReservationGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.expand3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CapacityReservationGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/capacityReservations.ts b/sdk/compute/arm-compute/src/operations/capacityReservations.ts new file mode 100644 index 000000000000..215e7635874e --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/capacityReservations.ts @@ -0,0 +1,413 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/capacityReservationsMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a CapacityReservations. */ +export class CapacityReservations { + private readonly client: ComputeManagementClientContext; + + /** + * Create a CapacityReservations. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * The operation to create or update a capacity reservation. Please note some properties can be set + * only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation + * for more details. + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param capacityReservationName The name of the capacity reservation. + * @param parameters Parameters supplied to the Create capacity reservation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, parameters: Models.CapacityReservation, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,capacityReservationGroupName,capacityReservationName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The operation to update a capacity reservation. + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param capacityReservationName The name of the capacity reservation. + * @param parameters Parameters supplied to the Update capacity reservation operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, parameters: Models.CapacityReservationUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,capacityReservationGroupName,capacityReservationName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The operation to delete a capacity reservation. This operation is allowed only when all the + * associated resources are disassociated from the capacity reservation. Please refer to + * https://aka.ms/CapacityReservation for more details. + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param capacityReservationName The name of the capacity reservation. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,capacityReservationGroupName,capacityReservationName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * The operation that retrieves information about the capacity reservation. + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param capacityReservationName The name of the capacity reservation. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, options?: Models.CapacityReservationsGetOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param capacityReservationName The name of the capacity reservation. + * @param callback The callback + */ + get(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param capacityReservationName The name of the capacity reservation. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, options: Models.CapacityReservationsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, options?: Models.CapacityReservationsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + capacityReservationGroupName, + capacityReservationName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the capacity reservations in the specified capacity reservation group. Use the + * nextLink property in the response to get the next page of capacity reservations. + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param [options] The optional parameters + * @returns Promise + */ + listByCapacityReservationGroup(resourceGroupName: string, capacityReservationGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param callback The callback + */ + listByCapacityReservationGroup(resourceGroupName: string, capacityReservationGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param options The optional parameters + * @param callback The callback + */ + listByCapacityReservationGroup(resourceGroupName: string, capacityReservationGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByCapacityReservationGroup(resourceGroupName: string, capacityReservationGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + capacityReservationGroupName, + options + }, + listByCapacityReservationGroupOperationSpec, + callback) as Promise; + } + + /** + * The operation to create or update a capacity reservation. Please note some properties can be set + * only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation + * for more details. + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param capacityReservationName The name of the capacity reservation. + * @param parameters Parameters supplied to the Create capacity reservation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, parameters: Models.CapacityReservation, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + capacityReservationGroupName, + capacityReservationName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * The operation to update a capacity reservation. + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param capacityReservationName The name of the capacity reservation. + * @param parameters Parameters supplied to the Update capacity reservation operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, parameters: Models.CapacityReservationUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + capacityReservationGroupName, + capacityReservationName, + parameters, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * The operation to delete a capacity reservation. This operation is allowed only when all the + * associated resources are disassociated from the capacity reservation. Please refer to + * https://aka.ms/CapacityReservation for more details. + * @param resourceGroupName The name of the resource group. + * @param capacityReservationGroupName The name of the capacity reservation group. + * @param capacityReservationName The name of the capacity reservation. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + capacityReservationGroupName, + capacityReservationName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Lists all of the capacity reservations in the specified capacity reservation group. Use the + * nextLink property in the response to get the next page of capacity reservations. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByCapacityReservationGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByCapacityReservationGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByCapacityReservationGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByCapacityReservationGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByCapacityReservationGroupNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.capacityReservationGroupName, + Parameters.capacityReservationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand2, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CapacityReservation + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByCapacityReservationGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.capacityReservationGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CapacityReservationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.capacityReservationGroupName, + Parameters.capacityReservationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CapacityReservation, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CapacityReservation + }, + 201: { + bodyMapper: Mappers.CapacityReservation + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.capacityReservationGroupName, + Parameters.capacityReservationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CapacityReservationUpdate, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CapacityReservation + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.capacityReservationGroupName, + Parameters.capacityReservationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByCapacityReservationGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CapacityReservationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts b/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts index b3911192d099..4ba1adb23801 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts @@ -33,39 +33,21 @@ export class CloudServiceOperatingSystems { * @param [options] The optional parameters * @returns Promise */ - getOSVersion( - location: string, - osVersionName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getOSVersion(location: string, osVersionName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location Name of the location that the OS version pertains to. * @param osVersionName Name of the OS version. * @param callback The callback */ - getOSVersion( - location: string, - osVersionName: string, - callback: msRest.ServiceCallback - ): void; + getOSVersion(location: string, osVersionName: string, callback: msRest.ServiceCallback): void; /** * @param location Name of the location that the OS version pertains to. * @param osVersionName Name of the OS version. * @param options The optional parameters * @param callback The callback */ - getOSVersion( - location: string, - osVersionName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getOSVersion( - location: string, - osVersionName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getOSVersion(location: string, osVersionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getOSVersion(location: string, osVersionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -73,8 +55,7 @@ export class CloudServiceOperatingSystems { options }, getOSVersionOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -85,41 +66,26 @@ export class CloudServiceOperatingSystems { * @param [options] The optional parameters * @returns Promise */ - listOSVersions( - location: string, - options?: msRest.RequestOptionsBase - ): Promise; + listOSVersions(location: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location Name of the location that the OS versions pertain to. * @param callback The callback */ - listOSVersions( - location: string, - callback: msRest.ServiceCallback - ): void; + listOSVersions(location: string, callback: msRest.ServiceCallback): void; /** * @param location Name of the location that the OS versions pertain to. * @param options The optional parameters * @param callback The callback */ - listOSVersions( - location: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listOSVersions( - location: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listOSVersions(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listOSVersions(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, options }, listOSVersionsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -130,39 +96,21 @@ export class CloudServiceOperatingSystems { * @param [options] The optional parameters * @returns Promise */ - getOSFamily( - location: string, - osFamilyName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getOSFamily(location: string, osFamilyName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location Name of the location that the OS family pertains to. * @param osFamilyName Name of the OS family. * @param callback The callback */ - getOSFamily( - location: string, - osFamilyName: string, - callback: msRest.ServiceCallback - ): void; + getOSFamily(location: string, osFamilyName: string, callback: msRest.ServiceCallback): void; /** * @param location Name of the location that the OS family pertains to. * @param osFamilyName Name of the OS family. * @param options The optional parameters * @param callback The callback */ - getOSFamily( - location: string, - osFamilyName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getOSFamily( - location: string, - osFamilyName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getOSFamily(location: string, osFamilyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getOSFamily(location: string, osFamilyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -170,8 +118,7 @@ export class CloudServiceOperatingSystems { options }, getOSFamilyOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -182,41 +129,26 @@ export class CloudServiceOperatingSystems { * @param [options] The optional parameters * @returns Promise */ - listOSFamilies( - location: string, - options?: msRest.RequestOptionsBase - ): Promise; + listOSFamilies(location: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location Name of the location that the OS families pertain to. * @param callback The callback */ - listOSFamilies( - location: string, - callback: msRest.ServiceCallback - ): void; + listOSFamilies(location: string, callback: msRest.ServiceCallback): void; /** * @param location Name of the location that the OS families pertain to. * @param options The optional parameters * @param callback The callback */ - listOSFamilies( - location: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listOSFamilies( - location: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listOSFamilies(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listOSFamilies(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, options }, listOSFamiliesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -227,41 +159,26 @@ export class CloudServiceOperatingSystems { * @param [options] The optional parameters * @returns Promise */ - listOSVersionsNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listOSVersionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listOSVersionsNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listOSVersionsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listOSVersionsNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listOSVersionsNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listOSVersionsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listOSVersionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listOSVersionsNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -272,41 +189,26 @@ export class CloudServiceOperatingSystems { * @param [options] The optional parameters * @returns Promise */ - listOSFamiliesNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listOSFamiliesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listOSFamiliesNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listOSFamiliesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listOSFamiliesNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listOSFamiliesNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listOSFamiliesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listOSFamiliesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listOSFamiliesNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -314,11 +216,18 @@ export class CloudServiceOperatingSystems { const serializer = new msRest.Serializer(Mappers); const getOSVersionOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions/{osVersionName}", - urlParameters: [Parameters.location0, Parameters.osVersionName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions/{osVersionName}", + urlParameters: [ + Parameters.location0, + Parameters.osVersionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.OSVersion @@ -332,11 +241,17 @@ const getOSVersionOperationSpec: msRest.OperationSpec = { const listOSVersionsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions", - urlParameters: [Parameters.location0, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions", + urlParameters: [ + Parameters.location0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.OSVersionListResult @@ -350,11 +265,18 @@ const listOSVersionsOperationSpec: msRest.OperationSpec = { const getOSFamilyOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}", - urlParameters: [Parameters.location0, Parameters.osFamilyName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}", + urlParameters: [ + Parameters.location0, + Parameters.osFamilyName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.OSFamily @@ -368,11 +290,17 @@ const getOSFamilyOperationSpec: msRest.OperationSpec = { const listOSFamiliesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies", - urlParameters: [Parameters.location0, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies", + urlParameters: [ + Parameters.location0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.OSFamilyListResult @@ -388,9 +316,15 @@ const listOSVersionsNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.OSVersionListResult @@ -406,9 +340,15 @@ const listOSFamiliesNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.OSFamilyListResult diff --git a/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts b/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts index baea34465d69..243cd59d84d6 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts @@ -34,18 +34,9 @@ export class CloudServiceRoleInstances { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - roleInstanceName: string, - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - roleInstanceName, - resourceGroupName, - cloudServiceName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMethod(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(roleInstanceName,resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -56,24 +47,14 @@ export class CloudServiceRoleInstances { * @param [options] The optional parameters * @returns Promise */ - get( - roleInstanceName: string, - resourceGroupName: string, - cloudServiceName: string, - options?: Models.CloudServiceRoleInstancesGetOptionalParams - ): Promise; + get(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServiceRoleInstancesGetOptionalParams): Promise; /** * @param roleInstanceName Name of the role instance. * @param resourceGroupName * @param cloudServiceName * @param callback The callback */ - get( - roleInstanceName: string, - resourceGroupName: string, - cloudServiceName: string, - callback: msRest.ServiceCallback - ): void; + get(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, callback: msRest.ServiceCallback): void; /** * @param roleInstanceName Name of the role instance. * @param resourceGroupName @@ -81,22 +62,8 @@ export class CloudServiceRoleInstances { * @param options The optional parameters * @param callback The callback */ - get( - roleInstanceName: string, - resourceGroupName: string, - cloudServiceName: string, - options: Models.CloudServiceRoleInstancesGetOptionalParams, - callback: msRest.ServiceCallback - ): void; - get( - roleInstanceName: string, - resourceGroupName: string, - cloudServiceName: string, - options?: - | Models.CloudServiceRoleInstancesGetOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options: Models.CloudServiceRoleInstancesGetOptionalParams, callback: msRest.ServiceCallback): void; + get(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServiceRoleInstancesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { roleInstanceName, @@ -105,8 +72,7 @@ export class CloudServiceRoleInstances { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -117,24 +83,14 @@ export class CloudServiceRoleInstances { * @param [options] The optional parameters * @returns Promise */ - getInstanceView( - roleInstanceName: string, - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getInstanceView(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param roleInstanceName Name of the role instance. * @param resourceGroupName * @param cloudServiceName * @param callback The callback */ - getInstanceView( - roleInstanceName: string, - resourceGroupName: string, - cloudServiceName: string, - callback: msRest.ServiceCallback - ): void; + getInstanceView(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, callback: msRest.ServiceCallback): void; /** * @param roleInstanceName Name of the role instance. * @param resourceGroupName @@ -142,20 +98,8 @@ export class CloudServiceRoleInstances { * @param options The optional parameters * @param callback The callback */ - getInstanceView( - roleInstanceName: string, - resourceGroupName: string, - cloudServiceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getInstanceView( - roleInstanceName: string, - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getInstanceView(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getInstanceView(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { roleInstanceName, @@ -164,8 +108,7 @@ export class CloudServiceRoleInstances { options }, getInstanceViewOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -177,41 +120,21 @@ export class CloudServiceRoleInstances { * @param [options] The optional parameters * @returns Promise */ - list( - resourceGroupName: string, - cloudServiceName: string, - options?: Models.CloudServiceRoleInstancesListOptionalParams - ): Promise; + list(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServiceRoleInstancesListOptionalParams): Promise; /** * @param resourceGroupName * @param cloudServiceName * @param callback The callback */ - list( - resourceGroupName: string, - cloudServiceName: string, - callback: msRest.ServiceCallback - ): void; + list(resourceGroupName: string, cloudServiceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName * @param cloudServiceName * @param options The optional parameters * @param callback The callback */ - list( - resourceGroupName: string, - cloudServiceName: string, - options: Models.CloudServiceRoleInstancesListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - resourceGroupName: string, - cloudServiceName: string, - options?: - | Models.CloudServiceRoleInstancesListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(resourceGroupName: string, cloudServiceName: string, options: Models.CloudServiceRoleInstancesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServiceRoleInstancesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -219,8 +142,7 @@ export class CloudServiceRoleInstances { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -232,18 +154,9 @@ export class CloudServiceRoleInstances { * @param [options] The optional parameters * @returns Promise */ - restart( - roleInstanceName: string, - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginRestart( - roleInstanceName, - resourceGroupName, - cloudServiceName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + restart(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRestart(roleInstanceName,resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -255,18 +168,9 @@ export class CloudServiceRoleInstances { * @param [options] The optional parameters * @returns Promise */ - reimage( - roleInstanceName: string, - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginReimage( - roleInstanceName, - resourceGroupName, - cloudServiceName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + reimage(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginReimage(roleInstanceName,resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -279,18 +183,9 @@ export class CloudServiceRoleInstances { * @param [options] The optional parameters * @returns Promise */ - rebuild( - roleInstanceName: string, - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginRebuild( - roleInstanceName, - resourceGroupName, - cloudServiceName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + rebuild(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRebuild(roleInstanceName,resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -301,24 +196,14 @@ export class CloudServiceRoleInstances { * @param [options] The optional parameters * @returns Promise */ - getRemoteDesktopFile( - roleInstanceName: string, - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getRemoteDesktopFile(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param roleInstanceName Name of the role instance. * @param resourceGroupName * @param cloudServiceName * @param callback The callback */ - getRemoteDesktopFile( - roleInstanceName: string, - resourceGroupName: string, - cloudServiceName: string, - callback: msRest.ServiceCallback - ): void; + getRemoteDesktopFile(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, callback: msRest.ServiceCallback): void; /** * @param roleInstanceName Name of the role instance. * @param resourceGroupName @@ -326,20 +211,8 @@ export class CloudServiceRoleInstances { * @param options The optional parameters * @param callback The callback */ - getRemoteDesktopFile( - roleInstanceName: string, - resourceGroupName: string, - cloudServiceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getRemoteDesktopFile( - roleInstanceName: string, - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getRemoteDesktopFile(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getRemoteDesktopFile(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { roleInstanceName, @@ -348,8 +221,7 @@ export class CloudServiceRoleInstances { options }, getRemoteDesktopFileOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -360,12 +232,7 @@ export class CloudServiceRoleInstances { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - roleInstanceName: string, - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { roleInstanceName, @@ -374,8 +241,7 @@ export class CloudServiceRoleInstances { options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -387,12 +253,7 @@ export class CloudServiceRoleInstances { * @param [options] The optional parameters * @returns Promise */ - beginRestart( - roleInstanceName: string, - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginRestart(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { roleInstanceName, @@ -401,8 +262,7 @@ export class CloudServiceRoleInstances { options }, beginRestartOperationSpec, - options - ); + options); } /** @@ -414,12 +274,7 @@ export class CloudServiceRoleInstances { * @param [options] The optional parameters * @returns Promise */ - beginReimage( - roleInstanceName: string, - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginReimage(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { roleInstanceName, @@ -428,8 +283,7 @@ export class CloudServiceRoleInstances { options }, beginReimageOperationSpec, - options - ); + options); } /** @@ -442,12 +296,7 @@ export class CloudServiceRoleInstances { * @param [options] The optional parameters * @returns Promise */ - beginRebuild( - roleInstanceName: string, - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginRebuild(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { roleInstanceName, @@ -456,8 +305,7 @@ export class CloudServiceRoleInstances { options }, beginRebuildOperationSpec, - options - ); + options); } /** @@ -468,43 +316,26 @@ export class CloudServiceRoleInstances { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: Models.CloudServiceRoleInstancesListNextOptionalParams - ): Promise; + listNext(nextPageLink: string, options?: Models.CloudServiceRoleInstancesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: Models.CloudServiceRoleInstancesListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.CloudServiceRoleInstancesListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: Models.CloudServiceRoleInstancesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.CloudServiceRoleInstancesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -512,16 +343,20 @@ export class CloudServiceRoleInstances { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", urlParameters: [ Parameters.roleInstanceName, Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0, Parameters.expand1], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2, + Parameters.expand1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RoleInstance @@ -535,16 +370,19 @@ const getOperationSpec: msRest.OperationSpec = { const getInstanceViewOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - 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", urlParameters: [ Parameters.roleInstanceName, Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RoleInstanceInstanceView @@ -558,15 +396,19 @@ const getInstanceViewOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances", urlParameters: [ Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0, Parameters.expand1], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2, + Parameters.expand1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RoleInstanceListResult @@ -580,16 +422,19 @@ const listOperationSpec: msRest.OperationSpec = { const getRemoteDesktopFileOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - 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", urlParameters: [ Parameters.roleInstanceName, Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: { @@ -608,16 +453,19 @@ const getRemoteDesktopFileOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", urlParameters: [ Parameters.roleInstanceName, Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -631,16 +479,19 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { const beginRestartOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - 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", urlParameters: [ Parameters.roleInstanceName, Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -653,16 +504,19 @@ const beginRestartOperationSpec: msRest.OperationSpec = { const beginReimageOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - 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", urlParameters: [ Parameters.roleInstanceName, Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -675,16 +529,19 @@ const beginReimageOperationSpec: msRest.OperationSpec = { const beginRebuildOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - 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", urlParameters: [ Parameters.roleInstanceName, Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -699,9 +556,16 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0, Parameters.expand1], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2, + Parameters.expand1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RoleInstanceListResult diff --git a/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts b/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts index 73eca8bd4d83..0f409ac33b27 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts @@ -33,24 +33,14 @@ export class CloudServiceRoles { * @param [options] The optional parameters * @returns Promise */ - get( - roleName: string, - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(roleName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param roleName Name of the role. * @param resourceGroupName * @param cloudServiceName * @param callback The callback */ - get( - roleName: string, - resourceGroupName: string, - cloudServiceName: string, - callback: msRest.ServiceCallback - ): void; + get(roleName: string, resourceGroupName: string, cloudServiceName: string, callback: msRest.ServiceCallback): void; /** * @param roleName Name of the role. * @param resourceGroupName @@ -58,20 +48,8 @@ export class CloudServiceRoles { * @param options The optional parameters * @param callback The callback */ - get( - roleName: string, - resourceGroupName: string, - cloudServiceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - roleName: string, - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(roleName: string, resourceGroupName: string, cloudServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(roleName: string, resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { roleName, @@ -80,8 +58,7 @@ export class CloudServiceRoles { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -92,39 +69,21 @@ export class CloudServiceRoles { * @param [options] The optional parameters * @returns Promise */ - list( - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + list(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName * @param cloudServiceName * @param callback The callback */ - list( - resourceGroupName: string, - cloudServiceName: string, - callback: msRest.ServiceCallback - ): void; + list(resourceGroupName: string, cloudServiceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName * @param cloudServiceName * @param options The optional parameters * @param callback The callback */ - list( - resourceGroupName: string, - cloudServiceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(resourceGroupName: string, cloudServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -132,8 +91,7 @@ export class CloudServiceRoles { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -143,41 +101,26 @@ export class CloudServiceRoles { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -185,16 +128,19 @@ export class CloudServiceRoles { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles/{roleName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles/{roleName}", urlParameters: [ Parameters.roleName, Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CloudServiceRole @@ -208,15 +154,18 @@ const getOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles", urlParameters: [ Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CloudServiceRoleListResult @@ -232,9 +181,15 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CloudServiceRoleListResult diff --git a/sdk/compute/arm-compute/src/operations/cloudServices.ts b/sdk/compute/arm-compute/src/operations/cloudServices.ts index f126fbe8fc33..0a5884204d1c 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServices.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServices.ts @@ -34,18 +34,9 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - resourceGroupName: string, - cloudServiceName: string, - options?: Models.CloudServicesCreateOrUpdateOptionalParams - ): Promise { - return this.beginCreateOrUpdate( - resourceGroupName, - cloudServiceName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.CloudServicesCreateOrUpdateResponse - >; + createOrUpdate(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesCreateOrUpdateOptionalParams): Promise { + return this.beginCreateOrUpdate(resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -55,14 +46,9 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - cloudServiceName: string, - options?: Models.CloudServicesUpdateOptionalParams - ): Promise { - return this.beginUpdate(resourceGroupName, cloudServiceName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; + update(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesUpdateOptionalParams): Promise { + return this.beginUpdate(resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -72,14 +58,9 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod(resourceGroupName, cloudServiceName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + deleteMethod(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -89,39 +70,21 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the resource group. * @param cloudServiceName Name of the cloud service. * @param callback The callback */ - get( - resourceGroupName: string, - cloudServiceName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, cloudServiceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the resource group. * @param cloudServiceName Name of the cloud service. * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - cloudServiceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, cloudServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -129,8 +92,7 @@ export class CloudServices { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -140,39 +102,21 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - getInstanceView( - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getInstanceView(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the resource group. * @param cloudServiceName Name of the cloud service. * @param callback The callback */ - getInstanceView( - resourceGroupName: string, - cloudServiceName: string, - callback: msRest.ServiceCallback - ): void; + getInstanceView(resourceGroupName: string, cloudServiceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the resource group. * @param cloudServiceName Name of the cloud service. * @param options The optional parameters * @param callback The callback */ - getInstanceView( - resourceGroupName: string, - cloudServiceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getInstanceView( - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getInstanceView(resourceGroupName: string, cloudServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getInstanceView(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -180,8 +124,7 @@ export class CloudServices { options }, getInstanceViewOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -200,21 +143,14 @@ export class CloudServices { * @param options The optional parameters * @param callback The callback */ - listAll( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listAll( - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAll(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAll(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listAllOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -225,41 +161,26 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - list( - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the resource group. * @param callback The callback */ - list( - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + list(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the resource group. * @param options The optional parameters * @param callback The callback */ - list( - resourceGroupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - resourceGroupName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -269,14 +190,9 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - start( - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginStart(resourceGroupName, cloudServiceName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + start(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginStart(resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -287,14 +203,9 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - powerOff( - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginPowerOff(resourceGroupName, cloudServiceName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + powerOff(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginPowerOff(resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -304,14 +215,9 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - restart( - resourceGroupName: string, - cloudServiceName: string, - options?: Models.CloudServicesRestartOptionalParams - ): Promise { - return this.beginRestart(resourceGroupName, cloudServiceName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + restart(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesRestartOptionalParams): Promise { + return this.beginRestart(resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -322,14 +228,9 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - reimage( - resourceGroupName: string, - cloudServiceName: string, - options?: Models.CloudServicesReimageOptionalParams - ): Promise { - return this.beginReimage(resourceGroupName, cloudServiceName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + reimage(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesReimageOptionalParams): Promise { + return this.beginReimage(resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -341,14 +242,9 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - rebuild( - resourceGroupName: string, - cloudServiceName: string, - options?: Models.CloudServicesRebuildOptionalParams - ): Promise { - return this.beginRebuild(resourceGroupName, cloudServiceName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + rebuild(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesRebuildOptionalParams): Promise { + return this.beginRebuild(resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -358,16 +254,9 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - deleteInstances( - resourceGroupName: string, - cloudServiceName: string, - options?: Models.CloudServicesDeleteInstancesOptionalParams - ): Promise { - return this.beginDeleteInstances( - resourceGroupName, - cloudServiceName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteInstances(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesDeleteInstancesOptionalParams): Promise { + return this.beginDeleteInstances(resourceGroupName,cloudServiceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -378,11 +267,7 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate( - resourceGroupName: string, - cloudServiceName: string, - options?: Models.CloudServicesBeginCreateOrUpdateOptionalParams - ): Promise { + beginCreateOrUpdate(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesBeginCreateOrUpdateOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -390,8 +275,7 @@ export class CloudServices { options }, beginCreateOrUpdateOperationSpec, - options - ); + options); } /** @@ -401,11 +285,7 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - beginUpdate( - resourceGroupName: string, - cloudServiceName: string, - options?: Models.CloudServicesBeginUpdateOptionalParams - ): Promise { + beginUpdate(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesBeginUpdateOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -413,8 +293,7 @@ export class CloudServices { options }, beginUpdateOperationSpec, - options - ); + options); } /** @@ -424,11 +303,7 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -436,8 +311,7 @@ export class CloudServices { options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -447,11 +321,7 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - beginStart( - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginStart(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -459,8 +329,7 @@ export class CloudServices { options }, beginStartOperationSpec, - options - ); + options); } /** @@ -471,11 +340,7 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - beginPowerOff( - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginPowerOff(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -483,8 +348,7 @@ export class CloudServices { options }, beginPowerOffOperationSpec, - options - ); + options); } /** @@ -494,11 +358,7 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - beginRestart( - resourceGroupName: string, - cloudServiceName: string, - options?: Models.CloudServicesBeginRestartOptionalParams - ): Promise { + beginRestart(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesBeginRestartOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -506,8 +366,7 @@ export class CloudServices { options }, beginRestartOperationSpec, - options - ); + options); } /** @@ -518,11 +377,7 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - beginReimage( - resourceGroupName: string, - cloudServiceName: string, - options?: Models.CloudServicesBeginReimageOptionalParams - ): Promise { + beginReimage(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesBeginReimageOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -530,8 +385,7 @@ export class CloudServices { options }, beginReimageOperationSpec, - options - ); + options); } /** @@ -543,11 +397,7 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - beginRebuild( - resourceGroupName: string, - cloudServiceName: string, - options?: Models.CloudServicesBeginRebuildOptionalParams - ): Promise { + beginRebuild(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesBeginRebuildOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -555,8 +405,7 @@ export class CloudServices { options }, beginRebuildOperationSpec, - options - ); + options); } /** @@ -566,11 +415,7 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - beginDeleteInstances( - resourceGroupName: string, - cloudServiceName: string, - options?: Models.CloudServicesBeginDeleteInstancesOptionalParams - ): Promise { + beginDeleteInstances(resourceGroupName: string, cloudServiceName: string, options?: Models.CloudServicesBeginDeleteInstancesOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -578,8 +423,7 @@ export class CloudServices { options }, beginDeleteInstancesOperationSpec, - options - ); + options); } /** @@ -590,41 +434,26 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - listAllNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listAllNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listAllNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listAllNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listAllNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAllNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listAllNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -635,41 +464,26 @@ export class CloudServices { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -677,15 +491,18 @@ export class CloudServices { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", urlParameters: [ Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CloudService @@ -699,15 +516,18 @@ const getOperationSpec: msRest.OperationSpec = { const getInstanceViewOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView", urlParameters: [ Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CloudServiceInstanceView @@ -722,9 +542,15 @@ const getInstanceViewOperationSpec: msRest.OperationSpec = { const listAllOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/cloudServices", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CloudServiceListResult @@ -738,11 +564,17 @@ const listAllOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices", - urlParameters: [Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CloudServiceListResult @@ -756,17 +588,23 @@ const listOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", urlParameters: [ Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { - parameterPath: ["options", "parameters"], + parameterPath: [ + "options", + "parameters" + ], mapper: Mappers.CloudService }, responses: { @@ -785,17 +623,23 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", urlParameters: [ Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { - parameterPath: ["options", "parameters"], + parameterPath: [ + "options", + "parameters" + ], mapper: Mappers.CloudServiceUpdate }, responses: { @@ -811,15 +655,18 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", urlParameters: [ Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -833,15 +680,18 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { const beginStartOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/start", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/start", urlParameters: [ Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -854,15 +704,18 @@ const beginStartOperationSpec: msRest.OperationSpec = { const beginPowerOffOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/poweroff", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/poweroff", urlParameters: [ Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -875,17 +728,23 @@ const beginPowerOffOperationSpec: msRest.OperationSpec = { const beginRestartOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/restart", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/restart", urlParameters: [ Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { - parameterPath: ["options", "parameters"], + parameterPath: [ + "options", + "parameters" + ], mapper: Mappers.RoleInstances }, responses: { @@ -900,17 +759,23 @@ const beginRestartOperationSpec: msRest.OperationSpec = { const beginReimageOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/reimage", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/reimage", urlParameters: [ Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { - parameterPath: ["options", "parameters"], + parameterPath: [ + "options", + "parameters" + ], mapper: Mappers.RoleInstances }, responses: { @@ -925,17 +790,23 @@ const beginReimageOperationSpec: msRest.OperationSpec = { const beginRebuildOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/rebuild", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/rebuild", urlParameters: [ Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { - parameterPath: ["options", "parameters"], + parameterPath: [ + "options", + "parameters" + ], mapper: Mappers.RoleInstances }, responses: { @@ -950,17 +821,23 @@ const beginRebuildOperationSpec: msRest.OperationSpec = { const beginDeleteInstancesOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/delete", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/delete", urlParameters: [ Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { - parameterPath: ["options", "parameters"], + parameterPath: [ + "options", + "parameters" + ], mapper: Mappers.RoleInstances }, responses: { @@ -977,9 +854,15 @@ const listAllNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CloudServiceListResult @@ -995,9 +878,15 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CloudServiceListResult diff --git a/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts b/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts index cc3f67d276aa..13164ea9fb45 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts @@ -36,18 +36,9 @@ export class CloudServicesUpdateDomain { * @param [options] The optional parameters * @returns Promise */ - walkUpdateDomain( - resourceGroupName: string, - cloudServiceName: string, - updateDomain: number, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginWalkUpdateDomain( - resourceGroupName, - cloudServiceName, - updateDomain, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + walkUpdateDomain(resourceGroupName: string, cloudServiceName: string, updateDomain: number, options?: msRest.RequestOptionsBase): Promise { + return this.beginWalkUpdateDomain(resourceGroupName,cloudServiceName,updateDomain,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -62,12 +53,7 @@ export class CloudServicesUpdateDomain { * @param [options] The optional parameters * @returns Promise */ - getUpdateDomain( - resourceGroupName: string, - cloudServiceName: string, - updateDomain: number, - options?: msRest.RequestOptionsBase - ): Promise; + getUpdateDomain(resourceGroupName: string, cloudServiceName: string, updateDomain: number, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the resource group. * @param cloudServiceName Name of the cloud service. @@ -76,12 +62,7 @@ export class CloudServicesUpdateDomain { * an ID of 1, and so on. * @param callback The callback */ - getUpdateDomain( - resourceGroupName: string, - cloudServiceName: string, - updateDomain: number, - callback: msRest.ServiceCallback - ): void; + getUpdateDomain(resourceGroupName: string, cloudServiceName: string, updateDomain: number, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the resource group. * @param cloudServiceName Name of the cloud service. @@ -91,20 +72,8 @@ export class CloudServicesUpdateDomain { * @param options The optional parameters * @param callback The callback */ - getUpdateDomain( - resourceGroupName: string, - cloudServiceName: string, - updateDomain: number, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getUpdateDomain( - resourceGroupName: string, - cloudServiceName: string, - updateDomain: number, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getUpdateDomain(resourceGroupName: string, cloudServiceName: string, updateDomain: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getUpdateDomain(resourceGroupName: string, cloudServiceName: string, updateDomain: number, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -113,8 +82,7 @@ export class CloudServicesUpdateDomain { options }, getUpdateDomainOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -124,39 +92,21 @@ export class CloudServicesUpdateDomain { * @param [options] The optional parameters * @returns Promise */ - listUpdateDomains( - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listUpdateDomains(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the resource group. * @param cloudServiceName Name of the cloud service. * @param callback The callback */ - listUpdateDomains( - resourceGroupName: string, - cloudServiceName: string, - callback: msRest.ServiceCallback - ): void; + listUpdateDomains(resourceGroupName: string, cloudServiceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the resource group. * @param cloudServiceName Name of the cloud service. * @param options The optional parameters * @param callback The callback */ - listUpdateDomains( - resourceGroupName: string, - cloudServiceName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listUpdateDomains( - resourceGroupName: string, - cloudServiceName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listUpdateDomains(resourceGroupName: string, cloudServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listUpdateDomains(resourceGroupName: string, cloudServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -164,8 +114,7 @@ export class CloudServicesUpdateDomain { options }, listUpdateDomainsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -178,12 +127,7 @@ export class CloudServicesUpdateDomain { * @param [options] The optional parameters * @returns Promise */ - beginWalkUpdateDomain( - resourceGroupName: string, - cloudServiceName: string, - updateDomain: number, - options?: msRest.RequestOptionsBase - ): Promise { + beginWalkUpdateDomain(resourceGroupName: string, cloudServiceName: string, updateDomain: number, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -192,8 +136,7 @@ export class CloudServicesUpdateDomain { options }, beginWalkUpdateDomainOperationSpec, - options - ); + options); } /** @@ -202,41 +145,26 @@ export class CloudServicesUpdateDomain { * @param [options] The optional parameters * @returns Promise */ - listUpdateDomainsNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listUpdateDomainsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listUpdateDomainsNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listUpdateDomainsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listUpdateDomainsNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listUpdateDomainsNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listUpdateDomainsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listUpdateDomainsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listUpdateDomainsNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -244,16 +172,19 @@ export class CloudServicesUpdateDomain { const serializer = new msRest.Serializer(Mappers); const getUpdateDomainOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", urlParameters: [ Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.updateDomain, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.UpdateDomain @@ -267,15 +198,18 @@ const getUpdateDomainOperationSpec: msRest.OperationSpec = { const listUpdateDomainsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains", urlParameters: [ Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.UpdateDomainListResult @@ -289,18 +223,24 @@ const listUpdateDomainsOperationSpec: msRest.OperationSpec = { const beginWalkUpdateDomainOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", urlParameters: [ Parameters.resourceGroupName, Parameters.cloudServiceName, Parameters.updateDomain, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { - parameterPath: ["options", "parameters"], + parameterPath: [ + "options", + "parameters" + ], mapper: Mappers.UpdateDomain }, responses: { @@ -317,9 +257,15 @@ const listUpdateDomainsNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.UpdateDomainListResult diff --git a/sdk/compute/arm-compute/src/operations/diskAccesses.ts b/sdk/compute/arm-compute/src/operations/diskAccesses.ts index e3c113656c1b..1c693b70fb00 100644 --- a/sdk/compute/arm-compute/src/operations/diskAccesses.ts +++ b/sdk/compute/arm-compute/src/operations/diskAccesses.ts @@ -36,20 +36,9 @@ export class DiskAccesses { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - resourceGroupName: string, - diskAccessName: string, - diskAccess: Models.DiskAccess, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateOrUpdate( - resourceGroupName, - diskAccessName, - diskAccess, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.DiskAccessesCreateOrUpdateResponse - >; + createOrUpdate(resourceGroupName: string, diskAccessName: string, diskAccess: Models.DiskAccess, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,diskAccessName,diskAccess,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -62,20 +51,9 @@ export class DiskAccesses { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - diskAccessName: string, - diskAccess: Models.DiskAccessUpdate, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdate( - resourceGroupName, - diskAccessName, - diskAccess, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.DiskAccessesUpdateResponse - >; + update(resourceGroupName: string, diskAccessName: string, diskAccess: Models.DiskAccessUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,diskAccessName,diskAccess,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -87,11 +65,7 @@ export class DiskAccesses { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - diskAccessName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, diskAccessName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param diskAccessName The name of the disk access resource that is being created. The name can't @@ -99,11 +73,7 @@ export class DiskAccesses { * A-Z, 0-9 and _. The maximum name length is 80 characters. * @param callback The callback */ - get( - resourceGroupName: string, - diskAccessName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, diskAccessName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param diskAccessName The name of the disk access resource that is being created. The name can't @@ -112,18 +82,8 @@ export class DiskAccesses { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - diskAccessName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - diskAccessName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, diskAccessName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, diskAccessName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -131,8 +91,7 @@ export class DiskAccesses { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -144,14 +103,9 @@ export class DiskAccesses { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - diskAccessName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod(resourceGroupName, diskAccessName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + deleteMethod(resourceGroupName: string, diskAccessName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,diskAccessName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -160,41 +114,26 @@ export class DiskAccesses { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroup( - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param callback The callback */ - listByResourceGroup( - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param options The optional parameters * @param callback The callback */ - listByResourceGroup( - resourceGroupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByResourceGroup( - resourceGroupName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, listByResourceGroupOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -211,21 +150,14 @@ export class DiskAccesses { * @param options The optional parameters * @param callback The callback */ - list( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -237,11 +169,7 @@ export class DiskAccesses { * @param [options] The optional parameters * @returns Promise */ - getPrivateLinkResources( - resourceGroupName: string, - diskAccessName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getPrivateLinkResources(resourceGroupName: string, diskAccessName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param diskAccessName The name of the disk access resource that is being created. The name can't @@ -249,11 +177,7 @@ export class DiskAccesses { * A-Z, 0-9 and _. The maximum name length is 80 characters. * @param callback The callback */ - getPrivateLinkResources( - resourceGroupName: string, - diskAccessName: string, - callback: msRest.ServiceCallback - ): void; + getPrivateLinkResources(resourceGroupName: string, diskAccessName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param diskAccessName The name of the disk access resource that is being created. The name can't @@ -262,20 +186,8 @@ export class DiskAccesses { * @param options The optional parameters * @param callback The callback */ - getPrivateLinkResources( - resourceGroupName: string, - diskAccessName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getPrivateLinkResources( - resourceGroupName: string, - diskAccessName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getPrivateLinkResources(resourceGroupName: string, diskAccessName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getPrivateLinkResources(resourceGroupName: string, diskAccessName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -283,8 +195,7 @@ export class DiskAccesses { options }, getPrivateLinkResourcesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -300,22 +211,9 @@ export class DiskAccesses { * @param [options] The optional parameters * @returns Promise */ - updateAPrivateEndpointConnection( - resourceGroupName: string, - diskAccessName: string, - privateEndpointConnectionName: string, - privateEndpointConnection: Models.PrivateEndpointConnection, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateAPrivateEndpointConnection( - resourceGroupName, - diskAccessName, - privateEndpointConnectionName, - privateEndpointConnection, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.DiskAccessesUpdateAPrivateEndpointConnectionResponse - >; + updateAPrivateEndpointConnection(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, privateEndpointConnection: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateAPrivateEndpointConnection(resourceGroupName,diskAccessName,privateEndpointConnectionName,privateEndpointConnection,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -328,12 +226,7 @@ export class DiskAccesses { * @param [options] The optional parameters * @returns Promise */ - getAPrivateEndpointConnection( - resourceGroupName: string, - diskAccessName: string, - privateEndpointConnectionName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAPrivateEndpointConnection(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param diskAccessName The name of the disk access resource that is being created. The name can't @@ -342,12 +235,7 @@ export class DiskAccesses { * @param privateEndpointConnectionName The name of the private endpoint connection * @param callback The callback */ - getAPrivateEndpointConnection( - resourceGroupName: string, - diskAccessName: string, - privateEndpointConnectionName: string, - callback: msRest.ServiceCallback - ): void; + getAPrivateEndpointConnection(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param diskAccessName The name of the disk access resource that is being created. The name can't @@ -357,20 +245,8 @@ export class DiskAccesses { * @param options The optional parameters * @param callback The callback */ - getAPrivateEndpointConnection( - resourceGroupName: string, - diskAccessName: string, - privateEndpointConnectionName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAPrivateEndpointConnection( - resourceGroupName: string, - diskAccessName: string, - privateEndpointConnectionName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAPrivateEndpointConnection(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAPrivateEndpointConnection(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -379,8 +255,7 @@ export class DiskAccesses { options }, getAPrivateEndpointConnectionOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -393,18 +268,9 @@ export class DiskAccesses { * @param [options] The optional parameters * @returns Promise */ - deleteAPrivateEndpointConnection( - resourceGroupName: string, - diskAccessName: string, - privateEndpointConnectionName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteAPrivateEndpointConnection( - resourceGroupName, - diskAccessName, - privateEndpointConnectionName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteAPrivateEndpointConnection(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteAPrivateEndpointConnection(resourceGroupName,diskAccessName,privateEndpointConnectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -416,11 +282,7 @@ export class DiskAccesses { * @param [options] The optional parameters * @returns Promise */ - listPrivateEndpointConnections( - resourceGroupName: string, - diskAccessName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listPrivateEndpointConnections(resourceGroupName: string, diskAccessName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param diskAccessName The name of the disk access resource that is being created. The name can't @@ -428,11 +290,7 @@ export class DiskAccesses { * A-Z, 0-9 and _. The maximum name length is 80 characters. * @param callback The callback */ - listPrivateEndpointConnections( - resourceGroupName: string, - diskAccessName: string, - callback: msRest.ServiceCallback - ): void; + listPrivateEndpointConnections(resourceGroupName: string, diskAccessName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param diskAccessName The name of the disk access resource that is being created. The name can't @@ -441,20 +299,8 @@ export class DiskAccesses { * @param options The optional parameters * @param callback The callback */ - listPrivateEndpointConnections( - resourceGroupName: string, - diskAccessName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listPrivateEndpointConnections( - resourceGroupName: string, - diskAccessName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listPrivateEndpointConnections(resourceGroupName: string, diskAccessName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPrivateEndpointConnections(resourceGroupName: string, diskAccessName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -462,8 +308,7 @@ export class DiskAccesses { options }, listPrivateEndpointConnectionsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -476,12 +321,7 @@ export class DiskAccesses { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate( - resourceGroupName: string, - diskAccessName: string, - diskAccess: Models.DiskAccess, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateOrUpdate(resourceGroupName: string, diskAccessName: string, diskAccess: Models.DiskAccess, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -490,8 +330,7 @@ export class DiskAccesses { options }, beginCreateOrUpdateOperationSpec, - options - ); + options); } /** @@ -504,12 +343,7 @@ export class DiskAccesses { * @param [options] The optional parameters * @returns Promise */ - beginUpdate( - resourceGroupName: string, - diskAccessName: string, - diskAccess: Models.DiskAccessUpdate, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdate(resourceGroupName: string, diskAccessName: string, diskAccess: Models.DiskAccessUpdate, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -518,8 +352,7 @@ export class DiskAccesses { options }, beginUpdateOperationSpec, - options - ); + options); } /** @@ -531,11 +364,7 @@ export class DiskAccesses { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - diskAccessName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, diskAccessName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -543,8 +372,7 @@ export class DiskAccesses { options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -560,13 +388,7 @@ export class DiskAccesses { * @param [options] The optional parameters * @returns Promise */ - beginUpdateAPrivateEndpointConnection( - resourceGroupName: string, - diskAccessName: string, - privateEndpointConnectionName: string, - privateEndpointConnection: Models.PrivateEndpointConnection, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateAPrivateEndpointConnection(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, privateEndpointConnection: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -576,8 +398,7 @@ export class DiskAccesses { options }, beginUpdateAPrivateEndpointConnectionOperationSpec, - options - ); + options); } /** @@ -590,12 +411,7 @@ export class DiskAccesses { * @param [options] The optional parameters * @returns Promise */ - beginDeleteAPrivateEndpointConnection( - resourceGroupName: string, - diskAccessName: string, - privateEndpointConnectionName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteAPrivateEndpointConnection(resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -604,8 +420,7 @@ export class DiskAccesses { options }, beginDeleteAPrivateEndpointConnectionOperationSpec, - options - ); + options); } /** @@ -614,41 +429,26 @@ export class DiskAccesses { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByResourceGroupNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByResourceGroupNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByResourceGroupNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByResourceGroupNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -657,10 +457,7 @@ export class DiskAccesses { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -671,24 +468,15 @@ export class DiskAccesses { * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -697,43 +485,26 @@ export class DiskAccesses { * @param [options] The optional parameters * @returns Promise */ - listPrivateEndpointConnectionsNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listPrivateEndpointConnectionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listPrivateEndpointConnectionsNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listPrivateEndpointConnectionsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listPrivateEndpointConnectionsNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listPrivateEndpointConnectionsNext( - nextPageLink: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listPrivateEndpointConnectionsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPrivateEndpointConnectionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listPrivateEndpointConnectionsNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -741,15 +512,18 @@ export class DiskAccesses { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskAccessName ], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DiskAccess @@ -763,11 +537,17 @@ const getOperationSpec: msRest.OperationSpec = { const listByResourceGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DiskAccessList @@ -782,9 +562,15 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskAccesses", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DiskAccessList @@ -798,15 +584,18 @@ const listOperationSpec: msRest.OperationSpec = { const getPrivateLinkResourcesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateLinkResources", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateLinkResources", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskAccessName ], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.PrivateLinkResourceListResult @@ -820,16 +609,19 @@ const getPrivateLinkResourcesOperationSpec: msRest.OperationSpec = { const getAPrivateEndpointConnectionOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskAccessName, Parameters.privateEndpointConnectionName ], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.PrivateEndpointConnection @@ -843,15 +635,18 @@ const getAPrivateEndpointConnectionOperationSpec: msRest.OperationSpec = { const listPrivateEndpointConnectionsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskAccessName ], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.PrivateEndpointConnectionListResult @@ -865,15 +660,18 @@ const listPrivateEndpointConnectionsOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskAccessName ], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "diskAccess", mapper: { @@ -897,15 +695,18 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskAccessName ], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "diskAccess", mapper: { @@ -929,15 +730,18 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskAccessName ], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -951,16 +755,19 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { const beginUpdateAPrivateEndpointConnectionOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskAccessName, Parameters.privateEndpointConnectionName ], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "privateEndpointConnection", mapper: { @@ -984,16 +791,19 @@ const beginUpdateAPrivateEndpointConnectionOperationSpec: msRest.OperationSpec = const beginDeleteAPrivateEndpointConnectionOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskAccessName, Parameters.privateEndpointConnectionName ], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -1009,9 +819,15 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DiskAccessList @@ -1027,9 +843,15 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DiskAccessList @@ -1045,9 +867,15 @@ const listPrivateEndpointConnectionsNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.PrivateEndpointConnectionListResult diff --git a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts index 3c2b3fddb72d..4a5c73087535 100644 --- a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts +++ b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts @@ -37,20 +37,9 @@ export class DiskEncryptionSets { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - resourceGroupName: string, - diskEncryptionSetName: string, - diskEncryptionSet: Models.DiskEncryptionSet, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateOrUpdate( - resourceGroupName, - diskEncryptionSetName, - diskEncryptionSet, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.DiskEncryptionSetsCreateOrUpdateResponse - >; + createOrUpdate(resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: Models.DiskEncryptionSet, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,diskEncryptionSetName,diskEncryptionSet,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -64,20 +53,9 @@ export class DiskEncryptionSets { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - diskEncryptionSetName: string, - diskEncryptionSet: Models.DiskEncryptionSetUpdate, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdate( - resourceGroupName, - diskEncryptionSetName, - diskEncryptionSet, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.DiskEncryptionSetsUpdateResponse - >; + update(resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: Models.DiskEncryptionSetUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,diskEncryptionSetName,diskEncryptionSet,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -89,11 +67,7 @@ export class DiskEncryptionSets { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - diskEncryptionSetName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, diskEncryptionSetName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name @@ -101,11 +75,7 @@ export class DiskEncryptionSets { * a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. * @param callback The callback */ - get( - resourceGroupName: string, - diskEncryptionSetName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, diskEncryptionSetName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name @@ -114,18 +84,8 @@ export class DiskEncryptionSets { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - diskEncryptionSetName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - diskEncryptionSetName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, diskEncryptionSetName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, diskEncryptionSetName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -133,8 +93,7 @@ export class DiskEncryptionSets { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -146,16 +105,9 @@ export class DiskEncryptionSets { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - diskEncryptionSetName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - resourceGroupName, - diskEncryptionSetName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMethod(resourceGroupName: string, diskEncryptionSetName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,diskEncryptionSetName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -164,41 +116,26 @@ export class DiskEncryptionSets { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroup( - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param callback The callback */ - listByResourceGroup( - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param options The optional parameters * @param callback The callback */ - listByResourceGroup( - resourceGroupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByResourceGroup( - resourceGroupName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, listByResourceGroupOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -215,21 +152,14 @@ export class DiskEncryptionSets { * @param options The optional parameters * @param callback The callback */ - list( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -241,11 +171,7 @@ export class DiskEncryptionSets { * @param [options] The optional parameters * @returns Promise */ - listAssociatedResources( - resourceGroupName: string, - diskEncryptionSetName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listAssociatedResources(resourceGroupName: string, diskEncryptionSetName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name @@ -253,11 +179,7 @@ export class DiskEncryptionSets { * a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. * @param callback The callback */ - listAssociatedResources( - resourceGroupName: string, - diskEncryptionSetName: string, - callback: msRest.ServiceCallback - ): void; + listAssociatedResources(resourceGroupName: string, diskEncryptionSetName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name @@ -266,18 +188,8 @@ export class DiskEncryptionSets { * @param options The optional parameters * @param callback The callback */ - listAssociatedResources( - resourceGroupName: string, - diskEncryptionSetName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listAssociatedResources( - resourceGroupName: string, - diskEncryptionSetName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAssociatedResources(resourceGroupName: string, diskEncryptionSetName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAssociatedResources(resourceGroupName: string, diskEncryptionSetName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -285,8 +197,7 @@ export class DiskEncryptionSets { options }, listAssociatedResourcesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -300,12 +211,7 @@ export class DiskEncryptionSets { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate( - resourceGroupName: string, - diskEncryptionSetName: string, - diskEncryptionSet: Models.DiskEncryptionSet, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateOrUpdate(resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: Models.DiskEncryptionSet, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -314,8 +220,7 @@ export class DiskEncryptionSets { options }, beginCreateOrUpdateOperationSpec, - options - ); + options); } /** @@ -329,12 +234,7 @@ export class DiskEncryptionSets { * @param [options] The optional parameters * @returns Promise */ - beginUpdate( - resourceGroupName: string, - diskEncryptionSetName: string, - diskEncryptionSet: Models.DiskEncryptionSetUpdate, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdate(resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: Models.DiskEncryptionSetUpdate, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -343,8 +243,7 @@ export class DiskEncryptionSets { options }, beginUpdateOperationSpec, - options - ); + options); } /** @@ -356,11 +255,7 @@ export class DiskEncryptionSets { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - diskEncryptionSetName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, diskEncryptionSetName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -368,8 +263,7 @@ export class DiskEncryptionSets { options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -378,41 +272,26 @@ export class DiskEncryptionSets { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByResourceGroupNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByResourceGroupNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByResourceGroupNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByResourceGroupNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -421,41 +300,26 @@ export class DiskEncryptionSets { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -464,41 +328,26 @@ export class DiskEncryptionSets { * @param [options] The optional parameters * @returns Promise */ - listAssociatedResourcesNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listAssociatedResourcesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listAssociatedResourcesNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listAssociatedResourcesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listAssociatedResourcesNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listAssociatedResourcesNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAssociatedResourcesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAssociatedResourcesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listAssociatedResourcesNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -506,15 +355,18 @@ export class DiskEncryptionSets { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskEncryptionSetName ], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DiskEncryptionSet @@ -528,11 +380,17 @@ const getOperationSpec: msRest.OperationSpec = { const listByResourceGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DiskEncryptionSetList @@ -547,9 +405,15 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskEncryptionSets", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DiskEncryptionSetList @@ -563,15 +427,18 @@ const listOperationSpec: msRest.OperationSpec = { const listAssociatedResourcesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}/associatedResources", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}/associatedResources", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskEncryptionSetName ], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ResourceUriList @@ -585,15 +452,18 @@ const listAssociatedResourcesOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskEncryptionSetName ], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "diskEncryptionSet", mapper: { @@ -617,15 +487,18 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskEncryptionSetName ], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "diskEncryptionSet", mapper: { @@ -649,15 +522,18 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskEncryptionSetName ], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -673,9 +549,15 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DiskEncryptionSetList @@ -691,9 +573,15 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DiskEncryptionSetList @@ -709,9 +597,15 @@ const listAssociatedResourcesNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ResourceUriList diff --git a/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts b/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts index 79e31f1f2a0c..6172ed88710f 100644 --- a/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts +++ b/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/diskRestorePointOperationsMappers"; import * as Parameters from "../models/parameters"; @@ -39,13 +40,7 @@ export class DiskRestorePointOperations { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - restorePointCollectionName: string, - vmRestorePointName: string, - diskRestorePointName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param restorePointCollectionName The name of the restore point collection that the disk restore @@ -58,13 +53,7 @@ export class DiskRestorePointOperations { * the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. * @param callback The callback */ - get( - resourceGroupName: string, - restorePointCollectionName: string, - vmRestorePointName: string, - diskRestorePointName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param restorePointCollectionName The name of the restore point collection that the disk restore @@ -78,22 +67,8 @@ export class DiskRestorePointOperations { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - restorePointCollectionName: string, - vmRestorePointName: string, - diskRestorePointName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - restorePointCollectionName: string, - vmRestorePointName: string, - diskRestorePointName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -103,8 +78,7 @@ export class DiskRestorePointOperations { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -119,12 +93,7 @@ export class DiskRestorePointOperations { * @param [options] The optional parameters * @returns Promise */ - listByRestorePoint( - resourceGroupName: string, - restorePointCollectionName: string, - vmRestorePointName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByRestorePoint(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param restorePointCollectionName The name of the restore point collection that the disk restore @@ -135,12 +104,7 @@ export class DiskRestorePointOperations { * 80 characters. * @param callback The callback */ - listByRestorePoint( - resourceGroupName: string, - restorePointCollectionName: string, - vmRestorePointName: string, - callback: msRest.ServiceCallback - ): void; + listByRestorePoint(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param restorePointCollectionName The name of the restore point collection that the disk restore @@ -152,20 +116,8 @@ export class DiskRestorePointOperations { * @param options The optional parameters * @param callback The callback */ - listByRestorePoint( - resourceGroupName: string, - restorePointCollectionName: string, - vmRestorePointName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByRestorePoint( - resourceGroupName: string, - restorePointCollectionName: string, - vmRestorePointName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByRestorePoint(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByRestorePoint(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -174,8 +126,102 @@ export class DiskRestorePointOperations { options }, listByRestorePointOperationSpec, - callback - ) as Promise; + callback) as Promise; + } + + /** + * Grants access to a diskRestorePoint. + * @param resourceGroupName The name of the resource group. + * @param restorePointCollectionName The name of the restore point collection that the disk restore + * point belongs. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name + * length is 80 characters. + * @param vmRestorePointName The name of the vm restore point that the disk disk restore point + * belongs. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is + * 80 characters. + * @param diskRestorePointName The name of the disk restore point created. Supported characters for + * the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param grantAccessData Access data object supplied in the body of the get disk access operation. + * @param [options] The optional parameters + * @returns Promise + */ + grantAccess(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, grantAccessData: Models.GrantAccessData, options?: msRest.RequestOptionsBase): Promise { + return this.beginGrantAccess(resourceGroupName,restorePointCollectionName,vmRestorePointName,diskRestorePointName,grantAccessData,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Revokes access to a diskRestorePoint. + * @param resourceGroupName The name of the resource group. + * @param restorePointCollectionName The name of the restore point collection that the disk restore + * point belongs. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name + * length is 80 characters. + * @param vmRestorePointName The name of the vm restore point that the disk disk restore point + * belongs. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is + * 80 characters. + * @param diskRestorePointName The name of the disk restore point created. Supported characters for + * the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param [options] The optional parameters + * @returns Promise + */ + revokeAccess(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRevokeAccess(resourceGroupName,restorePointCollectionName,vmRestorePointName,diskRestorePointName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Grants access to a diskRestorePoint. + * @param resourceGroupName The name of the resource group. + * @param restorePointCollectionName The name of the restore point collection that the disk restore + * point belongs. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name + * length is 80 characters. + * @param vmRestorePointName The name of the vm restore point that the disk disk restore point + * belongs. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is + * 80 characters. + * @param diskRestorePointName The name of the disk restore point created. Supported characters for + * the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param grantAccessData Access data object supplied in the body of the get disk access operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginGrantAccess(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, grantAccessData: Models.GrantAccessData, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + restorePointCollectionName, + vmRestorePointName, + diskRestorePointName, + grantAccessData, + options + }, + beginGrantAccessOperationSpec, + options); + } + + /** + * Revokes access to a diskRestorePoint. + * @param resourceGroupName The name of the resource group. + * @param restorePointCollectionName The name of the restore point collection that the disk restore + * point belongs. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name + * length is 80 characters. + * @param vmRestorePointName The name of the vm restore point that the disk disk restore point + * belongs. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is + * 80 characters. + * @param diskRestorePointName The name of the disk restore point created. Supported characters for + * the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param [options] The optional parameters + * @returns Promise + */ + beginRevokeAccess(resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + restorePointCollectionName, + vmRestorePointName, + diskRestorePointName, + options + }, + beginRevokeAccessOperationSpec, + options); } /** @@ -184,41 +230,26 @@ export class DiskRestorePointOperations { * @param [options] The optional parameters * @returns Promise */ - listByRestorePointNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByRestorePointNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByRestorePointNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listByRestorePointNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByRestorePointNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByRestorePointNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByRestorePointNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByRestorePointNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByRestorePointNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -226,8 +257,7 @@ export class DiskRestorePointOperations { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - 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}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -235,8 +265,12 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.vmRestorePointName, Parameters.diskRestorePointName ], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DiskRestorePoint @@ -250,16 +284,19 @@ const getOperationSpec: msRest.OperationSpec = { const listByRestorePointOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - 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", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.vmRestorePointName ], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DiskRestorePointList @@ -271,13 +308,80 @@ const listByRestorePointOperationSpec: msRest.OperationSpec = { serializer }; +const beginGrantAccessOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/beginGetAccess", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.restorePointCollectionName, + Parameters.vmRestorePointName, + Parameters.diskRestorePointName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "grantAccessData", + mapper: { + ...Mappers.GrantAccessData, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AccessUri + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginRevokeAccessOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/endGetAccess", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.restorePointCollectionName, + Parameters.vmRestorePointName, + Parameters.diskRestorePointName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listByRestorePointNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DiskRestorePointList diff --git a/sdk/compute/arm-compute/src/operations/disks.ts b/sdk/compute/arm-compute/src/operations/disks.ts index b1cf7a7f6776..80711287a9a8 100644 --- a/sdk/compute/arm-compute/src/operations/disks.ts +++ b/sdk/compute/arm-compute/src/operations/disks.ts @@ -36,15 +36,9 @@ export class Disks { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - resourceGroupName: string, - diskName: string, - disk: Models.Disk, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateOrUpdate(resourceGroupName, diskName, disk, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; + createOrUpdate(resourceGroupName: string, diskName: string, disk: Models.Disk, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,diskName,disk,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -57,15 +51,9 @@ export class Disks { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - diskName: string, - disk: Models.DiskUpdate, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdate(resourceGroupName, diskName, disk, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; + update(resourceGroupName: string, diskName: string, disk: Models.DiskUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,diskName,disk,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -77,11 +65,7 @@ export class Disks { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - diskName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, diskName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param diskName The name of the managed disk that is being created. The name can't be changed @@ -89,11 +73,7 @@ export class Disks { * maximum name length is 80 characters. * @param callback The callback */ - get( - resourceGroupName: string, - diskName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, diskName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param diskName The name of the managed disk that is being created. The name can't be changed @@ -102,18 +82,8 @@ export class Disks { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - diskName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - diskName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, diskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, diskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -121,8 +91,7 @@ export class Disks { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -134,14 +103,9 @@ export class Disks { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - diskName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod(resourceGroupName, diskName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + deleteMethod(resourceGroupName: string, diskName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,diskName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -150,41 +114,26 @@ export class Disks { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroup( - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param callback The callback */ - listByResourceGroup( - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param options The optional parameters * @param callback The callback */ - listByResourceGroup( - resourceGroupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByResourceGroup( - resourceGroupName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, listByResourceGroupOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -202,17 +151,13 @@ export class Disks { * @param callback The callback */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list( - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -225,20 +170,9 @@ export class Disks { * @param [options] The optional parameters * @returns Promise */ - grantAccess( - resourceGroupName: string, - diskName: string, - grantAccessData: Models.GrantAccessData, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginGrantAccess( - resourceGroupName, - diskName, - grantAccessData, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.DisksGrantAccessResponse - >; + grantAccess(resourceGroupName: string, diskName: string, grantAccessData: Models.GrantAccessData, options?: msRest.RequestOptionsBase): Promise { + return this.beginGrantAccess(resourceGroupName,diskName,grantAccessData,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -250,14 +184,9 @@ export class Disks { * @param [options] The optional parameters * @returns Promise */ - revokeAccess( - resourceGroupName: string, - diskName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginRevokeAccess(resourceGroupName, diskName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + revokeAccess(resourceGroupName: string, diskName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRevokeAccess(resourceGroupName,diskName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -270,12 +199,7 @@ export class Disks { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate( - resourceGroupName: string, - diskName: string, - disk: Models.Disk, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateOrUpdate(resourceGroupName: string, diskName: string, disk: Models.Disk, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -284,8 +208,7 @@ export class Disks { options }, beginCreateOrUpdateOperationSpec, - options - ); + options); } /** @@ -298,12 +221,7 @@ export class Disks { * @param [options] The optional parameters * @returns Promise */ - beginUpdate( - resourceGroupName: string, - diskName: string, - disk: Models.DiskUpdate, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdate(resourceGroupName: string, diskName: string, disk: Models.DiskUpdate, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -312,8 +230,7 @@ export class Disks { options }, beginUpdateOperationSpec, - options - ); + options); } /** @@ -325,11 +242,7 @@ export class Disks { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - diskName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, diskName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -337,8 +250,7 @@ export class Disks { options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -351,12 +263,7 @@ export class Disks { * @param [options] The optional parameters * @returns Promise */ - beginGrantAccess( - resourceGroupName: string, - diskName: string, - grantAccessData: Models.GrantAccessData, - options?: msRest.RequestOptionsBase - ): Promise { + beginGrantAccess(resourceGroupName: string, diskName: string, grantAccessData: Models.GrantAccessData, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -365,8 +272,7 @@ export class Disks { options }, beginGrantAccessOperationSpec, - options - ); + options); } /** @@ -378,11 +284,7 @@ export class Disks { * @param [options] The optional parameters * @returns Promise */ - beginRevokeAccess( - resourceGroupName: string, - diskName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginRevokeAccess(resourceGroupName: string, diskName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -390,8 +292,7 @@ export class Disks { options }, beginRevokeAccessOperationSpec, - options - ); + options); } /** @@ -400,41 +301,26 @@ export class Disks { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByResourceGroupNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByResourceGroupNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByResourceGroupNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByResourceGroupNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -443,10 +329,7 @@ export class Disks { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -457,24 +340,15 @@ export class Disks { * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -482,11 +356,18 @@ export class Disks { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskName], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.diskName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.Disk @@ -500,11 +381,17 @@ const getOperationSpec: msRest.OperationSpec = { const listByResourceGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DiskList @@ -519,9 +406,15 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/disks", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DiskList @@ -535,11 +428,18 @@ const listOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskName], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.diskName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "disk", mapper: { @@ -563,11 +463,18 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskName], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.diskName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "disk", mapper: { @@ -591,11 +498,18 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskName], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.diskName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -609,11 +523,18 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { const beginGrantAccessOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/beginGetAccess", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskName], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/beginGetAccess", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.diskName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "grantAccessData", mapper: { @@ -635,11 +556,18 @@ const beginGrantAccessOperationSpec: msRest.OperationSpec = { const beginRevokeAccessOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/endGetAccess", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskName], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/endGetAccess", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.diskName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -654,9 +582,15 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DiskList @@ -672,9 +606,15 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.DiskList diff --git a/sdk/compute/arm-compute/src/operations/galleries.ts b/sdk/compute/arm-compute/src/operations/galleries.ts index 2328f28c4569..362ae0c26b7d 100644 --- a/sdk/compute/arm-compute/src/operations/galleries.ts +++ b/sdk/compute/arm-compute/src/operations/galleries.ts @@ -35,20 +35,9 @@ export class Galleries { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - resourceGroupName: string, - galleryName: string, - gallery: Models.Gallery, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateOrUpdate( - resourceGroupName, - galleryName, - gallery, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GalleriesCreateOrUpdateResponse - >; + createOrUpdate(resourceGroupName: string, galleryName: string, gallery: Models.Gallery, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,galleryName,gallery,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -60,15 +49,9 @@ export class Galleries { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - galleryName: string, - gallery: Models.GalleryUpdate, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdate(resourceGroupName, galleryName, gallery, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; + update(resourceGroupName: string, galleryName: string, gallery: Models.GalleryUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,galleryName,gallery,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -78,39 +61,21 @@ export class Galleries { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - galleryName: string, - options?: Models.GalleriesGetOptionalParams - ): Promise; + get(resourceGroupName: string, galleryName: string, options?: Models.GalleriesGetOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery. * @param callback The callback */ - get( - resourceGroupName: string, - galleryName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, galleryName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery. * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - galleryName: string, - options: Models.GalleriesGetOptionalParams, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - galleryName: string, - options?: Models.GalleriesGetOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, galleryName: string, options: Models.GalleriesGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, galleryName: string, options?: Models.GalleriesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -118,8 +83,7 @@ export class Galleries { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -129,14 +93,9 @@ export class Galleries { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - galleryName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod(resourceGroupName, galleryName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + deleteMethod(resourceGroupName: string, galleryName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,galleryName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -145,41 +104,26 @@ export class Galleries { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroup( - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param callback The callback */ - listByResourceGroup( - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param options The optional parameters * @param callback The callback */ - listByResourceGroup( - resourceGroupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByResourceGroup( - resourceGroupName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, listByResourceGroupOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -196,21 +140,14 @@ export class Galleries { * @param options The optional parameters * @param callback The callback */ - list( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -222,12 +159,7 @@ export class Galleries { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate( - resourceGroupName: string, - galleryName: string, - gallery: Models.Gallery, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateOrUpdate(resourceGroupName: string, galleryName: string, gallery: Models.Gallery, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -236,8 +168,7 @@ export class Galleries { options }, beginCreateOrUpdateOperationSpec, - options - ); + options); } /** @@ -249,12 +180,7 @@ export class Galleries { * @param [options] The optional parameters * @returns Promise */ - beginUpdate( - resourceGroupName: string, - galleryName: string, - gallery: Models.GalleryUpdate, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdate(resourceGroupName: string, galleryName: string, gallery: Models.GalleryUpdate, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -263,8 +189,7 @@ export class Galleries { options }, beginUpdateOperationSpec, - options - ); + options); } /** @@ -274,11 +199,7 @@ export class Galleries { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - galleryName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, galleryName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -286,8 +207,7 @@ export class Galleries { options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -296,41 +216,26 @@ export class Galleries { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByResourceGroupNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByResourceGroupNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByResourceGroupNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByResourceGroupNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -339,10 +244,7 @@ export class Galleries { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -353,24 +255,15 @@ export class Galleries { * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -378,11 +271,19 @@ export class Galleries { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName], - queryParameters: [Parameters.apiVersion3, Parameters.select], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryName + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.select + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.Gallery @@ -396,11 +297,17 @@ const getOperationSpec: msRest.OperationSpec = { const listByResourceGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GalleryList @@ -415,9 +322,15 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GalleryList @@ -431,11 +344,18 @@ const listOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "gallery", mapper: { @@ -462,11 +382,18 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "gallery", mapper: { @@ -487,11 +414,18 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -507,9 +441,15 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GalleryList @@ -525,9 +465,15 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GalleryList diff --git a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts index 8e270dd24cc2..3fddfe854298 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts @@ -42,24 +42,9 @@ export class GalleryApplicationVersions { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - galleryApplicationVersionName: string, - galleryApplicationVersion: Models.GalleryApplicationVersion, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateOrUpdate( - resourceGroupName, - galleryName, - galleryApplicationName, - galleryApplicationVersionName, - galleryApplicationVersion, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GalleryApplicationVersionsCreateOrUpdateResponse - >; + createOrUpdate(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: Models.GalleryApplicationVersion, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,galleryName,galleryApplicationName,galleryApplicationVersionName,galleryApplicationVersion,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -78,24 +63,9 @@ export class GalleryApplicationVersions { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - galleryApplicationVersionName: string, - galleryApplicationVersion: Models.GalleryApplicationVersionUpdate, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdate( - resourceGroupName, - galleryName, - galleryApplicationName, - galleryApplicationVersionName, - galleryApplicationVersion, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GalleryApplicationVersionsUpdateResponse - >; + update(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: Models.GalleryApplicationVersionUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,galleryName,galleryApplicationName,galleryApplicationVersionName,galleryApplicationVersion,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -110,13 +80,7 @@ export class GalleryApplicationVersions { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - galleryApplicationVersionName: string, - options?: Models.GalleryApplicationVersionsGetOptionalParams - ): Promise; + get(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, options?: Models.GalleryApplicationVersionsGetOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Application Gallery in which the Application @@ -127,13 +91,7 @@ export class GalleryApplicationVersions { * retrieved. * @param callback The callback */ - get( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - galleryApplicationVersionName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Application Gallery in which the Application @@ -145,24 +103,8 @@ export class GalleryApplicationVersions { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - galleryApplicationVersionName: string, - options: Models.GalleryApplicationVersionsGetOptionalParams, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - galleryApplicationVersionName: string, - options?: - | Models.GalleryApplicationVersionsGetOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, options: Models.GalleryApplicationVersionsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, options?: Models.GalleryApplicationVersionsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -172,8 +114,7 @@ export class GalleryApplicationVersions { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -187,20 +128,9 @@ export class GalleryApplicationVersions { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - galleryApplicationVersionName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - resourceGroupName, - galleryName, - galleryApplicationName, - galleryApplicationVersionName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMethod(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,galleryName,galleryApplicationName,galleryApplicationVersionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -213,12 +143,7 @@ export class GalleryApplicationVersions { * @param [options] The optional parameters * @returns Promise */ - listByGalleryApplication( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByGalleryApplication(resourceGroupName: string, galleryName: string, galleryApplicationName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Application Gallery in which the Application @@ -227,12 +152,7 @@ export class GalleryApplicationVersions { * from which the Application Versions are to be listed. * @param callback The callback */ - listByGalleryApplication( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - callback: msRest.ServiceCallback - ): void; + listByGalleryApplication(resourceGroupName: string, galleryName: string, galleryApplicationName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Application Gallery in which the Application @@ -242,22 +162,8 @@ export class GalleryApplicationVersions { * @param options The optional parameters * @param callback The callback */ - listByGalleryApplication( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByGalleryApplication( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByGalleryApplication(resourceGroupName: string, galleryName: string, galleryApplicationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByGalleryApplication(resourceGroupName: string, galleryName: string, galleryApplicationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -266,8 +172,7 @@ export class GalleryApplicationVersions { options }, listByGalleryApplicationOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -286,14 +191,7 @@ export class GalleryApplicationVersions { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - galleryApplicationVersionName: string, - galleryApplicationVersion: Models.GalleryApplicationVersion, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateOrUpdate(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: Models.GalleryApplicationVersion, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -304,8 +202,7 @@ export class GalleryApplicationVersions { options }, beginCreateOrUpdateOperationSpec, - options - ); + options); } /** @@ -324,14 +221,7 @@ export class GalleryApplicationVersions { * @param [options] The optional parameters * @returns Promise */ - beginUpdate( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - galleryApplicationVersionName: string, - galleryApplicationVersion: Models.GalleryApplicationVersionUpdate, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdate(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: Models.GalleryApplicationVersionUpdate, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -342,8 +232,7 @@ export class GalleryApplicationVersions { options }, beginUpdateOperationSpec, - options - ); + options); } /** @@ -357,13 +246,7 @@ export class GalleryApplicationVersions { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - galleryApplicationVersionName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -373,8 +256,7 @@ export class GalleryApplicationVersions { options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -383,43 +265,26 @@ export class GalleryApplicationVersions { * @param [options] The optional parameters * @returns Promise */ - listByGalleryApplicationNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByGalleryApplicationNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByGalleryApplicationNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listByGalleryApplicationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByGalleryApplicationNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByGalleryApplicationNext( - nextPageLink: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByGalleryApplicationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByGalleryApplicationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByGalleryApplicationNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -427,8 +292,7 @@ export class GalleryApplicationVersions { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - 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}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -436,8 +300,13 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.galleryApplicationName, Parameters.galleryApplicationVersionName ], - queryParameters: [Parameters.expand0, Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.expand0, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GalleryApplicationVersion @@ -451,16 +320,19 @@ const getOperationSpec: msRest.OperationSpec = { const listByGalleryApplicationOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - 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", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName ], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GalleryApplicationVersionList @@ -474,8 +346,7 @@ const listByGalleryApplicationOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - 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}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -483,8 +354,12 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryApplicationName, Parameters.galleryApplicationVersionName ], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "galleryApplicationVersion", mapper: { @@ -511,8 +386,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - 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}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -520,8 +394,12 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryApplicationName, Parameters.galleryApplicationVersionName ], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "galleryApplicationVersion", mapper: { @@ -542,8 +420,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - 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}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -551,8 +428,12 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.galleryApplicationName, Parameters.galleryApplicationVersionName ], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -568,9 +449,15 @@ const listByGalleryApplicationNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GalleryApplicationVersionList diff --git a/sdk/compute/arm-compute/src/operations/galleryApplications.ts b/sdk/compute/arm-compute/src/operations/galleryApplications.ts index 5f097d15483b..855e0f7a16e3 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplications.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplications.ts @@ -39,22 +39,9 @@ export class GalleryApplications { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - galleryApplication: Models.GalleryApplication, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateOrUpdate( - resourceGroupName, - galleryName, - galleryApplicationName, - galleryApplication, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GalleryApplicationsCreateOrUpdateResponse - >; + createOrUpdate(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplication: Models.GalleryApplication, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,galleryName,galleryApplicationName,galleryApplication,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -69,22 +56,9 @@ export class GalleryApplications { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - galleryApplication: Models.GalleryApplicationUpdate, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdate( - resourceGroupName, - galleryName, - galleryApplicationName, - galleryApplication, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GalleryApplicationsUpdateResponse - >; + update(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplication: Models.GalleryApplicationUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,galleryName,galleryApplicationName,galleryApplication,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -96,12 +70,7 @@ export class GalleryApplications { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, galleryName: string, galleryApplicationName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Application Gallery from which the Application @@ -109,12 +78,7 @@ export class GalleryApplications { * @param galleryApplicationName The name of the gallery Application Definition to be retrieved. * @param callback The callback */ - get( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, galleryName: string, galleryApplicationName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Application Gallery from which the Application @@ -123,20 +87,8 @@ export class GalleryApplications { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, galleryName: string, galleryApplicationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, galleryName: string, galleryApplicationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -145,8 +97,7 @@ export class GalleryApplications { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -158,18 +109,9 @@ export class GalleryApplications { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - resourceGroupName, - galleryName, - galleryApplicationName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMethod(resourceGroupName: string, galleryName: string, galleryApplicationName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,galleryName,galleryApplicationName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -180,22 +122,14 @@ export class GalleryApplications { * @param [options] The optional parameters * @returns Promise */ - listByGallery( - resourceGroupName: string, - galleryName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByGallery(resourceGroupName: string, galleryName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Application Gallery from which Application Definitions * are to be listed. * @param callback The callback */ - listByGallery( - resourceGroupName: string, - galleryName: string, - callback: msRest.ServiceCallback - ): void; + listByGallery(resourceGroupName: string, galleryName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Application Gallery from which Application Definitions @@ -203,18 +137,8 @@ export class GalleryApplications { * @param options The optional parameters * @param callback The callback */ - listByGallery( - resourceGroupName: string, - galleryName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByGallery( - resourceGroupName: string, - galleryName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByGallery(resourceGroupName: string, galleryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByGallery(resourceGroupName: string, galleryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -222,8 +146,7 @@ export class GalleryApplications { options }, listByGalleryOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -239,13 +162,7 @@ export class GalleryApplications { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - galleryApplication: Models.GalleryApplication, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateOrUpdate(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplication: Models.GalleryApplication, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -255,8 +172,7 @@ export class GalleryApplications { options }, beginCreateOrUpdateOperationSpec, - options - ); + options); } /** @@ -271,13 +187,7 @@ export class GalleryApplications { * @param [options] The optional parameters * @returns Promise */ - beginUpdate( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - galleryApplication: Models.GalleryApplicationUpdate, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdate(resourceGroupName: string, galleryName: string, galleryApplicationName: string, galleryApplication: Models.GalleryApplicationUpdate, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -287,8 +197,7 @@ export class GalleryApplications { options }, beginUpdateOperationSpec, - options - ); + options); } /** @@ -300,12 +209,7 @@ export class GalleryApplications { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - galleryName: string, - galleryApplicationName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, galleryName: string, galleryApplicationName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -314,8 +218,7 @@ export class GalleryApplications { options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -324,41 +227,26 @@ export class GalleryApplications { * @param [options] The optional parameters * @returns Promise */ - listByGalleryNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByGalleryNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByGalleryNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listByGalleryNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByGalleryNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByGalleryNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByGalleryNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByGalleryNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByGalleryNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -366,16 +254,19 @@ export class GalleryApplications { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName ], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GalleryApplication @@ -389,11 +280,18 @@ const getOperationSpec: msRest.OperationSpec = { const listByGalleryOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GalleryApplicationList @@ -407,16 +305,19 @@ const listByGalleryOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName ], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "galleryApplication", mapper: { @@ -443,16 +344,19 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName ], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "galleryApplication", mapper: { @@ -473,16 +377,19 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName ], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -498,9 +405,15 @@ const listByGalleryNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GalleryApplicationList diff --git a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts index 850d3961b245..03345034e715 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts @@ -40,24 +40,9 @@ export class GalleryImageVersions { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - galleryImageVersionName: string, - galleryImageVersion: Models.GalleryImageVersion, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateOrUpdate( - resourceGroupName, - galleryName, - galleryImageName, - galleryImageVersionName, - galleryImageVersion, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GalleryImageVersionsCreateOrUpdateResponse - >; + createOrUpdate(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: Models.GalleryImageVersion, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,galleryName,galleryImageName,galleryImageVersionName,galleryImageVersion,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -73,24 +58,9 @@ export class GalleryImageVersions { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - galleryImageVersionName: string, - galleryImageVersion: Models.GalleryImageVersionUpdate, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdate( - resourceGroupName, - galleryName, - galleryImageName, - galleryImageVersionName, - galleryImageVersion, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GalleryImageVersionsUpdateResponse - >; + update(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: Models.GalleryImageVersionUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,galleryName,galleryImageName,galleryImageVersionName,galleryImageVersion,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -103,13 +73,7 @@ export class GalleryImageVersions { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - galleryImageVersionName: string, - options?: Models.GalleryImageVersionsGetOptionalParams - ): Promise; + get(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, options?: Models.GalleryImageVersionsGetOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. @@ -118,13 +82,7 @@ export class GalleryImageVersions { * @param galleryImageVersionName The name of the gallery image version to be retrieved. * @param callback The callback */ - get( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - galleryImageVersionName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. @@ -134,24 +92,8 @@ export class GalleryImageVersions { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - galleryImageVersionName: string, - options: Models.GalleryImageVersionsGetOptionalParams, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - galleryImageVersionName: string, - options?: - | Models.GalleryImageVersionsGetOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, options: Models.GalleryImageVersionsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, options?: Models.GalleryImageVersionsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -161,8 +103,7 @@ export class GalleryImageVersions { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -175,20 +116,9 @@ export class GalleryImageVersions { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - galleryImageVersionName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - resourceGroupName, - galleryName, - galleryImageName, - galleryImageVersionName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMethod(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,galleryName,galleryImageName,galleryImageVersionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -200,12 +130,7 @@ export class GalleryImageVersions { * @param [options] The optional parameters * @returns Promise */ - listByGalleryImage( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByGalleryImage(resourceGroupName: string, galleryName: string, galleryImageName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. @@ -213,12 +138,7 @@ export class GalleryImageVersions { * Image Versions are to be listed. * @param callback The callback */ - listByGalleryImage( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - callback: msRest.ServiceCallback - ): void; + listByGalleryImage(resourceGroupName: string, galleryName: string, galleryImageName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides. @@ -227,20 +147,8 @@ export class GalleryImageVersions { * @param options The optional parameters * @param callback The callback */ - listByGalleryImage( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByGalleryImage( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByGalleryImage(resourceGroupName: string, galleryName: string, galleryImageName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByGalleryImage(resourceGroupName: string, galleryName: string, galleryImageName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -249,8 +157,7 @@ export class GalleryImageVersions { options }, listByGalleryImageOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -267,14 +174,7 @@ export class GalleryImageVersions { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - galleryImageVersionName: string, - galleryImageVersion: Models.GalleryImageVersion, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateOrUpdate(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: Models.GalleryImageVersion, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -285,8 +185,7 @@ export class GalleryImageVersions { options }, beginCreateOrUpdateOperationSpec, - options - ); + options); } /** @@ -302,14 +201,7 @@ export class GalleryImageVersions { * @param [options] The optional parameters * @returns Promise */ - beginUpdate( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - galleryImageVersionName: string, - galleryImageVersion: Models.GalleryImageVersionUpdate, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdate(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: Models.GalleryImageVersionUpdate, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -320,8 +212,7 @@ export class GalleryImageVersions { options }, beginUpdateOperationSpec, - options - ); + options); } /** @@ -334,13 +225,7 @@ export class GalleryImageVersions { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - galleryImageVersionName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImageVersionName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -350,8 +235,7 @@ export class GalleryImageVersions { options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -360,41 +244,26 @@ export class GalleryImageVersions { * @param [options] The optional parameters * @returns Promise */ - listByGalleryImageNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByGalleryImageNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByGalleryImageNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listByGalleryImageNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByGalleryImageNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByGalleryImageNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByGalleryImageNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByGalleryImageNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByGalleryImageNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -402,8 +271,7 @@ export class GalleryImageVersions { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - 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}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -411,8 +279,13 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.galleryImageName, Parameters.galleryImageVersionName ], - queryParameters: [Parameters.expand0, Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.expand0, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GalleryImageVersion @@ -426,16 +299,19 @@ const getOperationSpec: msRest.OperationSpec = { const listByGalleryImageOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - 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", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName ], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GalleryImageVersionList @@ -449,8 +325,7 @@ const listByGalleryImageOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - 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}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -458,8 +333,12 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryImageName, Parameters.galleryImageVersionName ], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "galleryImageVersion", mapper: { @@ -486,8 +365,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - 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}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -495,8 +373,12 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryImageName, Parameters.galleryImageVersionName ], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "galleryImageVersion", mapper: { @@ -517,8 +399,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - 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}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -526,8 +407,12 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.galleryImageName, Parameters.galleryImageVersionName ], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -543,9 +428,15 @@ const listByGalleryImageNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GalleryImageVersionList diff --git a/sdk/compute/arm-compute/src/operations/galleryImages.ts b/sdk/compute/arm-compute/src/operations/galleryImages.ts index 80fe688c6874..0e021fcc33c9 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImages.ts @@ -38,22 +38,9 @@ export class GalleryImages { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - galleryImage: Models.GalleryImage, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateOrUpdate( - resourceGroupName, - galleryName, - galleryImageName, - galleryImage, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GalleryImagesCreateOrUpdateResponse - >; + createOrUpdate(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImage: Models.GalleryImage, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,galleryName,galleryImageName,galleryImage,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -68,22 +55,9 @@ export class GalleryImages { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - galleryImage: Models.GalleryImageUpdate, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdate( - resourceGroupName, - galleryName, - galleryImageName, - galleryImage, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GalleryImagesUpdateResponse - >; + update(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImage: Models.GalleryImageUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,galleryName,galleryImageName,galleryImage,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -95,12 +69,7 @@ export class GalleryImages { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, galleryName: string, galleryImageName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery from which the Image Definitions are to @@ -108,12 +77,7 @@ export class GalleryImages { * @param galleryImageName The name of the gallery image definition to be retrieved. * @param callback The callback */ - get( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, galleryName: string, galleryImageName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery from which the Image Definitions are to @@ -122,20 +86,8 @@ export class GalleryImages { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, galleryName: string, galleryImageName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, galleryName: string, galleryImageName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -144,8 +96,7 @@ export class GalleryImages { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -157,18 +108,9 @@ export class GalleryImages { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - resourceGroupName, - galleryName, - galleryImageName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMethod(resourceGroupName: string, galleryName: string, galleryImageName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,galleryName,galleryImageName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -179,22 +121,14 @@ export class GalleryImages { * @param [options] The optional parameters * @returns Promise */ - listByGallery( - resourceGroupName: string, - galleryName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByGallery(resourceGroupName: string, galleryName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery from which Image Definitions are to be * listed. * @param callback The callback */ - listByGallery( - resourceGroupName: string, - galleryName: string, - callback: msRest.ServiceCallback - ): void; + listByGallery(resourceGroupName: string, galleryName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery from which Image Definitions are to be @@ -202,18 +136,8 @@ export class GalleryImages { * @param options The optional parameters * @param callback The callback */ - listByGallery( - resourceGroupName: string, - galleryName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByGallery( - resourceGroupName: string, - galleryName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByGallery(resourceGroupName: string, galleryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByGallery(resourceGroupName: string, galleryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -221,8 +145,7 @@ export class GalleryImages { options }, listByGalleryOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -237,13 +160,7 @@ export class GalleryImages { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - galleryImage: Models.GalleryImage, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateOrUpdate(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImage: Models.GalleryImage, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -253,8 +170,7 @@ export class GalleryImages { options }, beginCreateOrUpdateOperationSpec, - options - ); + options); } /** @@ -269,13 +185,7 @@ export class GalleryImages { * @param [options] The optional parameters * @returns Promise */ - beginUpdate( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - galleryImage: Models.GalleryImageUpdate, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdate(resourceGroupName: string, galleryName: string, galleryImageName: string, galleryImage: Models.GalleryImageUpdate, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -285,8 +195,7 @@ export class GalleryImages { options }, beginUpdateOperationSpec, - options - ); + options); } /** @@ -298,12 +207,7 @@ export class GalleryImages { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - galleryName: string, - galleryImageName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, galleryName: string, galleryImageName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -312,8 +216,7 @@ export class GalleryImages { options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -322,41 +225,26 @@ export class GalleryImages { * @param [options] The optional parameters * @returns Promise */ - listByGalleryNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByGalleryNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByGalleryNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listByGalleryNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByGalleryNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByGalleryNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByGalleryNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByGalleryNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByGalleryNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -364,16 +252,19 @@ export class GalleryImages { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName ], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GalleryImage @@ -387,11 +278,18 @@ const getOperationSpec: msRest.OperationSpec = { const listByGalleryOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GalleryImageList @@ -405,16 +303,19 @@ const listByGalleryOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName ], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "galleryImage", mapper: { @@ -441,16 +342,19 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName ], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "galleryImage", mapper: { @@ -471,16 +375,19 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName ], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -496,9 +403,15 @@ const listByGalleryNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GalleryImageList diff --git a/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts index be248c81d161..fd48a678a3b1 100644 --- a/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts +++ b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts @@ -34,20 +34,9 @@ export class GallerySharingProfile { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - galleryName: string, - sharingUpdate: Models.SharingUpdate, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdate( - resourceGroupName, - galleryName, - sharingUpdate, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.GallerySharingProfileUpdateResponse - >; + update(resourceGroupName: string, galleryName: string, sharingUpdate: Models.SharingUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,galleryName,sharingUpdate,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -58,12 +47,7 @@ export class GallerySharingProfile { * @param [options] The optional parameters * @returns Promise */ - beginUpdate( - resourceGroupName: string, - galleryName: string, - sharingUpdate: Models.SharingUpdate, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdate(resourceGroupName: string, galleryName: string, sharingUpdate: Models.SharingUpdate, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -72,8 +56,7 @@ export class GallerySharingProfile { options }, beginUpdateOperationSpec, - options - ); + options); } } @@ -81,11 +64,18 @@ export class GallerySharingProfile { const serializer = new msRest.Serializer(Mappers); const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "sharingUpdate", mapper: { diff --git a/sdk/compute/arm-compute/src/operations/index.ts b/sdk/compute/arm-compute/src/operations/index.ts index e77575004756..a1f70e2520e4 100644 --- a/sdk/compute/arm-compute/src/operations/index.ts +++ b/sdk/compute/arm-compute/src/operations/index.ts @@ -24,6 +24,8 @@ export * from "./virtualMachineSizes"; export * from "./images"; export * from "./restorePointCollections"; export * from "./restorePoints"; +export * from "./capacityReservationGroups"; +export * from "./capacityReservations"; export * from "./virtualMachineScaleSetExtensions"; export * from "./virtualMachineScaleSetRollingUpgrades"; export * from "./virtualMachineScaleSetVMExtensions"; diff --git a/sdk/compute/arm-compute/src/operations/resourceSkus.ts b/sdk/compute/arm-compute/src/operations/resourceSkus.ts index 7cf76612ac89..584cf72eeddb 100644 --- a/sdk/compute/arm-compute/src/operations/resourceSkus.ts +++ b/sdk/compute/arm-compute/src/operations/resourceSkus.ts @@ -87,8 +87,9 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1, - Parameters.filter + Parameters.apiVersion0, + Parameters.filter, + Parameters.includeExtendedLocations ], headerParameters: [ Parameters.acceptLanguage @@ -112,8 +113,9 @@ const listNextOperationSpec: msRest.OperationSpec = { Parameters.nextPageLink ], queryParameters: [ - Parameters.apiVersion1, - Parameters.filter + Parameters.apiVersion0, + Parameters.filter, + Parameters.includeExtendedLocations ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/compute/arm-compute/src/operations/restorePointCollections.ts b/sdk/compute/arm-compute/src/operations/restorePointCollections.ts index b0144dd12a53..c715e50cce16 100644 --- a/sdk/compute/arm-compute/src/operations/restorePointCollections.ts +++ b/sdk/compute/arm-compute/src/operations/restorePointCollections.ts @@ -37,12 +37,7 @@ export class RestorePointCollections { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - resourceGroupName: string, - restorePointCollectionName: string, - parameters: Models.RestorePointCollection, - options?: msRest.RequestOptionsBase - ): Promise; + createOrUpdate(resourceGroupName: string, restorePointCollectionName: string, parameters: Models.RestorePointCollection, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param restorePointCollectionName The name of the restore point collection. @@ -50,12 +45,7 @@ export class RestorePointCollections { * operation. * @param callback The callback */ - createOrUpdate( - resourceGroupName: string, - restorePointCollectionName: string, - parameters: Models.RestorePointCollection, - callback: msRest.ServiceCallback - ): void; + createOrUpdate(resourceGroupName: string, restorePointCollectionName: string, parameters: Models.RestorePointCollection, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param restorePointCollectionName The name of the restore point collection. @@ -64,20 +54,8 @@ export class RestorePointCollections { * @param options The optional parameters * @param callback The callback */ - createOrUpdate( - resourceGroupName: string, - restorePointCollectionName: string, - parameters: Models.RestorePointCollection, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - createOrUpdate( - resourceGroupName: string, - restorePointCollectionName: string, - parameters: Models.RestorePointCollection, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + createOrUpdate(resourceGroupName: string, restorePointCollectionName: string, parameters: Models.RestorePointCollection, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, restorePointCollectionName: string, parameters: Models.RestorePointCollection, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -86,8 +64,7 @@ export class RestorePointCollections { options }, createOrUpdateOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -98,24 +75,14 @@ export class RestorePointCollections { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - restorePointCollectionName: string, - parameters: Models.RestorePointCollectionUpdate, - options?: msRest.RequestOptionsBase - ): Promise; + update(resourceGroupName: string, restorePointCollectionName: string, parameters: Models.RestorePointCollectionUpdate, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param restorePointCollectionName The name of the restore point collection. * @param parameters Parameters supplied to the Update restore point collection operation. * @param callback The callback */ - update( - resourceGroupName: string, - restorePointCollectionName: string, - parameters: Models.RestorePointCollectionUpdate, - callback: msRest.ServiceCallback - ): void; + update(resourceGroupName: string, restorePointCollectionName: string, parameters: Models.RestorePointCollectionUpdate, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param restorePointCollectionName The name of the restore point collection. @@ -123,20 +90,8 @@ export class RestorePointCollections { * @param options The optional parameters * @param callback The callback */ - update( - resourceGroupName: string, - restorePointCollectionName: string, - parameters: Models.RestorePointCollectionUpdate, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - update( - resourceGroupName: string, - restorePointCollectionName: string, - parameters: Models.RestorePointCollectionUpdate, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + update(resourceGroupName: string, restorePointCollectionName: string, parameters: Models.RestorePointCollectionUpdate, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, restorePointCollectionName: string, parameters: Models.RestorePointCollectionUpdate, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -145,8 +100,7 @@ export class RestorePointCollections { options }, updateOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -157,16 +111,9 @@ export class RestorePointCollections { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - restorePointCollectionName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - resourceGroupName, - restorePointCollectionName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMethod(resourceGroupName: string, restorePointCollectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,restorePointCollectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -176,41 +123,21 @@ export class RestorePointCollections { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - restorePointCollectionName: string, - options?: Models.RestorePointCollectionsGetOptionalParams - ): Promise; + get(resourceGroupName: string, restorePointCollectionName: string, options?: Models.RestorePointCollectionsGetOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param restorePointCollectionName The name of the restore point collection. * @param callback The callback */ - get( - resourceGroupName: string, - restorePointCollectionName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, restorePointCollectionName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param restorePointCollectionName The name of the restore point collection. * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - restorePointCollectionName: string, - options: Models.RestorePointCollectionsGetOptionalParams, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - restorePointCollectionName: string, - options?: - | Models.RestorePointCollectionsGetOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, restorePointCollectionName: string, options: Models.RestorePointCollectionsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, restorePointCollectionName: string, options?: Models.RestorePointCollectionsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -218,8 +145,7 @@ export class RestorePointCollections { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -228,43 +154,26 @@ export class RestorePointCollections { * @param [options] The optional parameters * @returns Promise */ - list( - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param callback The callback */ - list( - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + list(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param options The optional parameters * @param callback The callback */ - list( - resourceGroupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - resourceGroupName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -274,9 +183,7 @@ export class RestorePointCollections { * @param [options] The optional parameters * @returns Promise */ - listAll( - options?: msRest.RequestOptionsBase - ): Promise; + listAll(options?: msRest.RequestOptionsBase): Promise; /** * @param callback The callback */ @@ -285,23 +192,14 @@ export class RestorePointCollections { * @param options The optional parameters * @param callback The callback */ - listAll( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listAll( - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAll(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAll(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listAllOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -312,11 +210,7 @@ export class RestorePointCollections { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - restorePointCollectionName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, restorePointCollectionName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -324,8 +218,7 @@ export class RestorePointCollections { options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -334,43 +227,26 @@ export class RestorePointCollections { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -381,43 +257,26 @@ export class RestorePointCollections { * @param [options] The optional parameters * @returns Promise */ - listAllNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listAllNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listAllNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listAllNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listAllNext( - nextPageLink: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAllNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listAllNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -425,15 +284,18 @@ export class RestorePointCollections { const serializer = new msRest.Serializer(Mappers); const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.restorePointCollectionName ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -457,15 +319,18 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.restorePointCollectionName ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -486,15 +351,19 @@ const updateOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.restorePointCollectionName ], - queryParameters: [Parameters.expand0, Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.expand0, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RestorePointCollection @@ -508,11 +377,17 @@ const getOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RestorePointCollectionListResult @@ -527,9 +402,15 @@ const listOperationSpec: msRest.OperationSpec = { const listAllOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/restorePointCollections", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RestorePointCollectionListResult @@ -543,15 +424,18 @@ const listAllOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.restorePointCollectionName ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -567,9 +451,15 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RestorePointCollectionListResult @@ -585,9 +475,15 @@ const listAllNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RestorePointCollectionListResult diff --git a/sdk/compute/arm-compute/src/operations/restorePoints.ts b/sdk/compute/arm-compute/src/operations/restorePoints.ts index 1bca47d99481..ae4dbbb49508 100644 --- a/sdk/compute/arm-compute/src/operations/restorePoints.ts +++ b/sdk/compute/arm-compute/src/operations/restorePoints.ts @@ -36,22 +36,9 @@ export class RestorePoints { * @param [options] The optional parameters * @returns Promise */ - create( - resourceGroupName: string, - restorePointCollectionName: string, - restorePointName: string, - parameters: Models.RestorePoint, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreate( - resourceGroupName, - restorePointCollectionName, - restorePointName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.RestorePointsCreateResponse - >; + create(resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, parameters: Models.RestorePoint, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,restorePointCollectionName,restorePointName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -62,18 +49,9 @@ export class RestorePoints { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - restorePointCollectionName: string, - restorePointName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - resourceGroupName, - restorePointCollectionName, - restorePointName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMethod(resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,restorePointCollectionName,restorePointName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -84,24 +62,14 @@ export class RestorePoints { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - restorePointCollectionName: string, - restorePointName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param restorePointCollectionName The name of the restore point collection. * @param restorePointName The name of the restore point. * @param callback The callback */ - get( - resourceGroupName: string, - restorePointCollectionName: string, - restorePointName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param restorePointCollectionName The name of the restore point collection. @@ -109,20 +77,8 @@ export class RestorePoints { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - restorePointCollectionName: string, - restorePointName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - restorePointCollectionName: string, - restorePointName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -131,8 +87,7 @@ export class RestorePoints { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -145,13 +100,7 @@ export class RestorePoints { * @param [options] The optional parameters * @returns Promise */ - beginCreate( - resourceGroupName: string, - restorePointCollectionName: string, - restorePointName: string, - parameters: Models.RestorePoint, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreate(resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, parameters: Models.RestorePoint, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -161,8 +110,7 @@ export class RestorePoints { options }, beginCreateOperationSpec, - options - ); + options); } /** @@ -173,12 +121,7 @@ export class RestorePoints { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - restorePointCollectionName: string, - restorePointName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -187,8 +130,7 @@ export class RestorePoints { options }, beginDeleteMethodOperationSpec, - options - ); + options); } } @@ -196,16 +138,19 @@ export class RestorePoints { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.restorePointName ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RestorePoint @@ -219,16 +164,19 @@ const getOperationSpec: msRest.OperationSpec = { const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.restorePointName ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -249,16 +197,19 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.restorePointName ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleries.ts b/sdk/compute/arm-compute/src/operations/sharedGalleries.ts index 9a5ea3090f4f..1218a879d6e5 100644 --- a/sdk/compute/arm-compute/src/operations/sharedGalleries.ts +++ b/sdk/compute/arm-compute/src/operations/sharedGalleries.ts @@ -31,10 +31,7 @@ export class SharedGalleries { * @param [options] The optional parameters * @returns Promise */ - list( - location: string, - options?: Models.SharedGalleriesListOptionalParams - ): Promise; + list(location: string, options?: Models.SharedGalleriesListOptionalParams): Promise; /** * @param location Resource location. * @param callback The callback @@ -45,26 +42,15 @@ export class SharedGalleries { * @param options The optional parameters * @param callback The callback */ - list( - location: string, - options: Models.SharedGalleriesListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - location: string, - options?: - | Models.SharedGalleriesListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(location: string, options: Models.SharedGalleriesListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, options?: Models.SharedGalleriesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -74,39 +60,21 @@ export class SharedGalleries { * @param [options] The optional parameters * @returns Promise */ - get( - location: string, - galleryUniqueName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(location: string, galleryUniqueName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location Resource location. * @param galleryUniqueName The unique name of the Shared Gallery. * @param callback The callback */ - get( - location: string, - galleryUniqueName: string, - callback: msRest.ServiceCallback - ): void; + get(location: string, galleryUniqueName: string, callback: msRest.ServiceCallback): void; /** * @param location Resource location. * @param galleryUniqueName The unique name of the Shared Gallery. * @param options The optional parameters * @param callback The callback */ - get( - location: string, - galleryUniqueName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - location: string, - galleryUniqueName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(location: string, galleryUniqueName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(location: string, galleryUniqueName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -114,8 +82,7 @@ export class SharedGalleries { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -124,10 +91,7 @@ export class SharedGalleries { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: Models.SharedGalleriesListNextOptionalParams - ): Promise; + listNext(nextPageLink: string, options?: Models.SharedGalleriesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -138,26 +102,15 @@ export class SharedGalleries { * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: Models.SharedGalleriesListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.SharedGalleriesListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: Models.SharedGalleriesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.SharedGalleriesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -165,11 +118,18 @@ export class SharedGalleries { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries", - urlParameters: [Parameters.subscriptionId, Parameters.location0], - queryParameters: [Parameters.apiVersion3, Parameters.sharedTo], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location0 + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.sharedTo + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SharedGalleryList @@ -183,11 +143,18 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}", - urlParameters: [Parameters.subscriptionId, Parameters.location0, Parameters.galleryUniqueName], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location0, + Parameters.galleryUniqueName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SharedGallery @@ -203,9 +170,16 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion3, Parameters.sharedTo], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.sharedTo + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SharedGalleryList diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts index ad0a6045ae77..bbf15a1ae517 100644 --- a/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts @@ -34,12 +34,7 @@ export class SharedGalleryImageVersions { * @param [options] The optional parameters * @returns Promise */ - list( - location: string, - galleryUniqueName: string, - galleryImageName: string, - options?: Models.SharedGalleryImageVersionsListOptionalParams - ): Promise; + list(location: string, galleryUniqueName: string, galleryImageName: string, options?: Models.SharedGalleryImageVersionsListOptionalParams): Promise; /** * @param location Resource location. * @param galleryUniqueName The unique name of the Shared Gallery. @@ -47,12 +42,7 @@ export class SharedGalleryImageVersions { * Versions are to be listed. * @param callback The callback */ - list( - location: string, - galleryUniqueName: string, - galleryImageName: string, - callback: msRest.ServiceCallback - ): void; + list(location: string, galleryUniqueName: string, galleryImageName: string, callback: msRest.ServiceCallback): void; /** * @param location Resource location. * @param galleryUniqueName The unique name of the Shared Gallery. @@ -61,22 +51,8 @@ export class SharedGalleryImageVersions { * @param options The optional parameters * @param callback The callback */ - list( - location: string, - galleryUniqueName: string, - galleryImageName: string, - options: Models.SharedGalleryImageVersionsListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - location: string, - galleryUniqueName: string, - galleryImageName: string, - options?: - | Models.SharedGalleryImageVersionsListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(location: string, galleryUniqueName: string, galleryImageName: string, options: Models.SharedGalleryImageVersionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, galleryUniqueName: string, galleryImageName: string, options?: Models.SharedGalleryImageVersionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -85,8 +61,7 @@ export class SharedGalleryImageVersions { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -101,13 +76,7 @@ export class SharedGalleryImageVersions { * @param [options] The optional parameters * @returns Promise */ - get( - location: string, - galleryUniqueName: string, - galleryImageName: string, - galleryImageVersionName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(location: string, galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location Resource location. * @param galleryUniqueName The unique name of the Shared Gallery. @@ -118,13 +87,7 @@ export class SharedGalleryImageVersions { * be within the range of a 32-bit integer. Format: .. * @param callback The callback */ - get( - location: string, - galleryUniqueName: string, - galleryImageName: string, - galleryImageVersionName: string, - callback: msRest.ServiceCallback - ): void; + get(location: string, galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, callback: msRest.ServiceCallback): void; /** * @param location Resource location. * @param galleryUniqueName The unique name of the Shared Gallery. @@ -136,22 +99,8 @@ export class SharedGalleryImageVersions { * @param options The optional parameters * @param callback The callback */ - get( - location: string, - galleryUniqueName: string, - galleryImageName: string, - galleryImageVersionName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - location: string, - galleryUniqueName: string, - galleryImageName: string, - galleryImageVersionName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(location: string, galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(location: string, galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -161,8 +110,7 @@ export class SharedGalleryImageVersions { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -171,43 +119,26 @@ export class SharedGalleryImageVersions { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: Models.SharedGalleryImageVersionsListNextOptionalParams - ): Promise; + listNext(nextPageLink: string, options?: Models.SharedGalleryImageVersionsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: Models.SharedGalleryImageVersionsListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.SharedGalleryImageVersionsListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: Models.SharedGalleryImageVersionsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.SharedGalleryImageVersionsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -215,16 +146,20 @@ export class SharedGalleryImageVersions { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - 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", urlParameters: [ Parameters.subscriptionId, Parameters.location0, Parameters.galleryUniqueName, Parameters.galleryImageName ], - queryParameters: [Parameters.apiVersion3, Parameters.sharedTo], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0, + Parameters.sharedTo + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SharedGalleryImageVersionList @@ -238,8 +173,7 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - 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}", urlParameters: [ Parameters.subscriptionId, Parameters.location0, @@ -247,8 +181,12 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.galleryImageName, Parameters.galleryImageVersionName ], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SharedGalleryImageVersion @@ -264,9 +202,16 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion3, Parameters.sharedTo], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.sharedTo + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SharedGalleryImageVersionList diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts b/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts index 3cf630668f12..21cc53cbd39c 100644 --- a/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts @@ -32,41 +32,21 @@ export class SharedGalleryImages { * @param [options] The optional parameters * @returns Promise */ - list( - location: string, - galleryUniqueName: string, - options?: Models.SharedGalleryImagesListOptionalParams - ): Promise; + list(location: string, galleryUniqueName: string, options?: Models.SharedGalleryImagesListOptionalParams): Promise; /** * @param location Resource location. * @param galleryUniqueName The unique name of the Shared Gallery. * @param callback The callback */ - list( - location: string, - galleryUniqueName: string, - callback: msRest.ServiceCallback - ): void; + list(location: string, galleryUniqueName: string, callback: msRest.ServiceCallback): void; /** * @param location Resource location. * @param galleryUniqueName The unique name of the Shared Gallery. * @param options The optional parameters * @param callback The callback */ - list( - location: string, - galleryUniqueName: string, - options: Models.SharedGalleryImagesListOptionalParams, - callback: msRest.ServiceCallback - ): void; - list( - location: string, - galleryUniqueName: string, - options?: - | Models.SharedGalleryImagesListOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(location: string, galleryUniqueName: string, options: Models.SharedGalleryImagesListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, galleryUniqueName: string, options?: Models.SharedGalleryImagesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -74,8 +54,7 @@ export class SharedGalleryImages { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -87,12 +66,7 @@ export class SharedGalleryImages { * @param [options] The optional parameters * @returns Promise */ - get( - location: string, - galleryUniqueName: string, - galleryImageName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(location: string, galleryUniqueName: string, galleryImageName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location Resource location. * @param galleryUniqueName The unique name of the Shared Gallery. @@ -100,12 +74,7 @@ export class SharedGalleryImages { * Versions are to be listed. * @param callback The callback */ - get( - location: string, - galleryUniqueName: string, - galleryImageName: string, - callback: msRest.ServiceCallback - ): void; + get(location: string, galleryUniqueName: string, galleryImageName: string, callback: msRest.ServiceCallback): void; /** * @param location Resource location. * @param galleryUniqueName The unique name of the Shared Gallery. @@ -114,20 +83,8 @@ export class SharedGalleryImages { * @param options The optional parameters * @param callback The callback */ - get( - location: string, - galleryUniqueName: string, - galleryImageName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - location: string, - galleryUniqueName: string, - galleryImageName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(location: string, galleryUniqueName: string, galleryImageName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(location: string, galleryUniqueName: string, galleryImageName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -136,8 +93,7 @@ export class SharedGalleryImages { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -146,43 +102,26 @@ export class SharedGalleryImages { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: Models.SharedGalleryImagesListNextOptionalParams - ): Promise; + listNext(nextPageLink: string, options?: Models.SharedGalleryImagesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: Models.SharedGalleryImagesListNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | Models.SharedGalleryImagesListNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: Models.SharedGalleryImagesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.SharedGalleryImagesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -190,11 +129,19 @@ export class SharedGalleryImages { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images", - urlParameters: [Parameters.subscriptionId, Parameters.location0, Parameters.galleryUniqueName], - queryParameters: [Parameters.apiVersion3, Parameters.sharedTo], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location0, + Parameters.galleryUniqueName + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.sharedTo + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SharedGalleryImageList @@ -208,16 +155,19 @@ const listOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}", urlParameters: [ Parameters.subscriptionId, Parameters.location0, Parameters.galleryUniqueName, Parameters.galleryImageName ], - queryParameters: [Parameters.apiVersion3], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SharedGalleryImage @@ -233,9 +183,16 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion3, Parameters.sharedTo], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.sharedTo + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SharedGalleryImageList diff --git a/sdk/compute/arm-compute/src/operations/snapshots.ts b/sdk/compute/arm-compute/src/operations/snapshots.ts index cccd18645cf9..31d5c37daf71 100644 --- a/sdk/compute/arm-compute/src/operations/snapshots.ts +++ b/sdk/compute/arm-compute/src/operations/snapshots.ts @@ -36,20 +36,9 @@ export class Snapshots { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - resourceGroupName: string, - snapshotName: string, - snapshot: Models.Snapshot, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateOrUpdate( - resourceGroupName, - snapshotName, - snapshot, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SnapshotsCreateOrUpdateResponse - >; + createOrUpdate(resourceGroupName: string, snapshotName: string, snapshot: Models.Snapshot, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,snapshotName,snapshot,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -62,15 +51,9 @@ export class Snapshots { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - snapshotName: string, - snapshot: Models.SnapshotUpdate, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdate(resourceGroupName, snapshotName, snapshot, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; + update(resourceGroupName: string, snapshotName: string, snapshot: Models.SnapshotUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,snapshotName,snapshot,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -82,11 +65,7 @@ export class Snapshots { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - snapshotName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, snapshotName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param snapshotName The name of the snapshot that is being created. The name can't be changed @@ -94,11 +73,7 @@ export class Snapshots { * max name length is 80 characters. * @param callback The callback */ - get( - resourceGroupName: string, - snapshotName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, snapshotName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param snapshotName The name of the snapshot that is being created. The name can't be changed @@ -107,18 +82,8 @@ export class Snapshots { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - snapshotName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - snapshotName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, snapshotName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, snapshotName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -126,8 +91,7 @@ export class Snapshots { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -139,14 +103,9 @@ export class Snapshots { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - snapshotName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod(resourceGroupName, snapshotName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + deleteMethod(resourceGroupName: string, snapshotName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,snapshotName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -155,41 +114,26 @@ export class Snapshots { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroup( - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param callback The callback */ - listByResourceGroup( - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param options The optional parameters * @param callback The callback */ - listByResourceGroup( - resourceGroupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByResourceGroup( - resourceGroupName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, listByResourceGroupOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -206,21 +150,14 @@ export class Snapshots { * @param options The optional parameters * @param callback The callback */ - list( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -234,20 +171,9 @@ export class Snapshots { * @param [options] The optional parameters * @returns Promise */ - grantAccess( - resourceGroupName: string, - snapshotName: string, - grantAccessData: Models.GrantAccessData, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginGrantAccess( - resourceGroupName, - snapshotName, - grantAccessData, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.SnapshotsGrantAccessResponse - >; + grantAccess(resourceGroupName: string, snapshotName: string, grantAccessData: Models.GrantAccessData, options?: msRest.RequestOptionsBase): Promise { + return this.beginGrantAccess(resourceGroupName,snapshotName,grantAccessData,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -259,14 +185,9 @@ export class Snapshots { * @param [options] The optional parameters * @returns Promise */ - revokeAccess( - resourceGroupName: string, - snapshotName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginRevokeAccess(resourceGroupName, snapshotName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + revokeAccess(resourceGroupName: string, snapshotName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRevokeAccess(resourceGroupName,snapshotName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -279,12 +200,7 @@ export class Snapshots { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate( - resourceGroupName: string, - snapshotName: string, - snapshot: Models.Snapshot, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateOrUpdate(resourceGroupName: string, snapshotName: string, snapshot: Models.Snapshot, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -293,8 +209,7 @@ export class Snapshots { options }, beginCreateOrUpdateOperationSpec, - options - ); + options); } /** @@ -307,12 +222,7 @@ export class Snapshots { * @param [options] The optional parameters * @returns Promise */ - beginUpdate( - resourceGroupName: string, - snapshotName: string, - snapshot: Models.SnapshotUpdate, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdate(resourceGroupName: string, snapshotName: string, snapshot: Models.SnapshotUpdate, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -321,8 +231,7 @@ export class Snapshots { options }, beginUpdateOperationSpec, - options - ); + options); } /** @@ -334,11 +243,7 @@ export class Snapshots { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - snapshotName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, snapshotName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -346,8 +251,7 @@ export class Snapshots { options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -361,12 +265,7 @@ export class Snapshots { * @param [options] The optional parameters * @returns Promise */ - beginGrantAccess( - resourceGroupName: string, - snapshotName: string, - grantAccessData: Models.GrantAccessData, - options?: msRest.RequestOptionsBase - ): Promise { + beginGrantAccess(resourceGroupName: string, snapshotName: string, grantAccessData: Models.GrantAccessData, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -375,8 +274,7 @@ export class Snapshots { options }, beginGrantAccessOperationSpec, - options - ); + options); } /** @@ -388,11 +286,7 @@ export class Snapshots { * @param [options] The optional parameters * @returns Promise */ - beginRevokeAccess( - resourceGroupName: string, - snapshotName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginRevokeAccess(resourceGroupName: string, snapshotName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -400,8 +294,7 @@ export class Snapshots { options }, beginRevokeAccessOperationSpec, - options - ); + options); } /** @@ -410,41 +303,26 @@ export class Snapshots { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByResourceGroupNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByResourceGroupNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByResourceGroupNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByResourceGroupNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -453,10 +331,7 @@ export class Snapshots { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -467,24 +342,15 @@ export class Snapshots { * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -492,11 +358,18 @@ export class Snapshots { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.snapshotName], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.snapshotName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.Snapshot @@ -510,11 +383,17 @@ const getOperationSpec: msRest.OperationSpec = { const listByResourceGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SnapshotList @@ -529,9 +408,15 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/snapshots", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SnapshotList @@ -545,11 +430,18 @@ const listOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.snapshotName], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.snapshotName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "snapshot", mapper: { @@ -573,11 +465,18 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.snapshotName], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.snapshotName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "snapshot", mapper: { @@ -601,11 +500,18 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.snapshotName], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.snapshotName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -619,11 +525,18 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { const beginGrantAccessOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/beginGetAccess", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.snapshotName], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/beginGetAccess", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.snapshotName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "grantAccessData", mapper: { @@ -645,11 +558,18 @@ const beginGrantAccessOperationSpec: msRest.OperationSpec = { const beginRevokeAccessOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/endGetAccess", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.snapshotName], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/endGetAccess", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.snapshotName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -664,9 +584,15 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SnapshotList @@ -682,9 +608,15 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion2], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.SnapshotList diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts index b1c14ece4fd4..4741a68b0333 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts @@ -32,43 +32,26 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - listByLocation( - location: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByLocation(location: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location The location for which VM scale sets under the subscription are queried. * @param callback The callback */ - listByLocation( - location: string, - callback: msRest.ServiceCallback - ): void; + listByLocation(location: string, callback: msRest.ServiceCallback): void; /** * @param location The location for which VM scale sets under the subscription are queried. * @param options The optional parameters * @param callback The callback */ - listByLocation( - location: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByLocation( - location: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByLocation(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByLocation(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, options }, listByLocationOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -79,20 +62,9 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - resourceGroupName: string, - vmScaleSetName: string, - parameters: Models.VirtualMachineScaleSet, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateOrUpdate( - resourceGroupName, - vmScaleSetName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.VirtualMachineScaleSetsCreateOrUpdateResponse - >; + createOrUpdate(resourceGroupName: string, vmScaleSetName: string, parameters: Models.VirtualMachineScaleSet, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,vmScaleSetName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -103,20 +75,9 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - vmScaleSetName: string, - parameters: Models.VirtualMachineScaleSetUpdate, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdate( - resourceGroupName, - vmScaleSetName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.VirtualMachineScaleSetsUpdateResponse - >; + update(resourceGroupName: string, vmScaleSetName: string, parameters: Models.VirtualMachineScaleSetUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,vmScaleSetName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -126,14 +87,9 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - vmScaleSetName: string, - options?: Models.VirtualMachineScaleSetsDeleteMethodOptionalParams - ): Promise { - return this.beginDeleteMethod(resourceGroupName, vmScaleSetName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + deleteMethod(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsDeleteMethodOptionalParams): Promise { + return this.beginDeleteMethod(resourceGroupName,vmScaleSetName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -143,41 +99,21 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - vmScaleSetName: string, - options?: Models.VirtualMachineScaleSetsGetOptionalParams - ): Promise; + get(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsGetOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param callback The callback */ - get( - resourceGroupName: string, - vmScaleSetName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, vmScaleSetName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - vmScaleSetName: string, - options: Models.VirtualMachineScaleSetsGetOptionalParams, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - vmScaleSetName: string, - options?: - | Models.VirtualMachineScaleSetsGetOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, vmScaleSetName: string, options: Models.VirtualMachineScaleSetsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -185,8 +121,7 @@ export class VirtualMachineScaleSets { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -198,14 +133,9 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - deallocate( - resourceGroupName: string, - vmScaleSetName: string, - options?: Models.VirtualMachineScaleSetsDeallocateOptionalParams - ): Promise { - return this.beginDeallocate(resourceGroupName, vmScaleSetName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + deallocate(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsDeallocateOptionalParams): Promise { + return this.beginDeallocate(resourceGroupName,vmScaleSetName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -216,18 +146,9 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - deleteInstances( - resourceGroupName: string, - vmScaleSetName: string, - vmInstanceIDs: Models.VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: Models.VirtualMachineScaleSetsDeleteInstancesOptionalParams - ): Promise { - return this.beginDeleteInstances( - resourceGroupName, - vmScaleSetName, - vmInstanceIDs, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteInstances(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: Models.VirtualMachineScaleSetVMInstanceRequiredIDs, options?: Models.VirtualMachineScaleSetsDeleteInstancesOptionalParams): Promise { + return this.beginDeleteInstances(resourceGroupName,vmScaleSetName,vmInstanceIDs,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -237,41 +158,21 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - getInstanceView( - resourceGroupName: string, - vmScaleSetName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getInstanceView(resourceGroupName: string, vmScaleSetName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param callback The callback */ - getInstanceView( - resourceGroupName: string, - vmScaleSetName: string, - callback: msRest.ServiceCallback - ): void; + getInstanceView(resourceGroupName: string, vmScaleSetName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param options The optional parameters * @param callback The callback */ - getInstanceView( - resourceGroupName: string, - vmScaleSetName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getInstanceView( - resourceGroupName: string, - vmScaleSetName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getInstanceView(resourceGroupName: string, vmScaleSetName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getInstanceView(resourceGroupName: string, vmScaleSetName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -279,8 +180,7 @@ export class VirtualMachineScaleSets { options }, getInstanceViewOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -289,43 +189,26 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - list( - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param callback The callback */ - list( - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + list(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param options The optional parameters * @param callback The callback */ - list( - resourceGroupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - resourceGroupName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -335,9 +218,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - listAll( - options?: msRest.RequestOptionsBase - ): Promise; + listAll(options?: msRest.RequestOptionsBase): Promise; /** * @param callback The callback */ @@ -346,23 +227,14 @@ export class VirtualMachineScaleSets { * @param options The optional parameters * @param callback The callback */ - listAll( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listAll( - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAll(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAll(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listAllOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -373,41 +245,21 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - listSkus( - resourceGroupName: string, - vmScaleSetName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listSkus(resourceGroupName: string, vmScaleSetName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param callback The callback */ - listSkus( - resourceGroupName: string, - vmScaleSetName: string, - callback: msRest.ServiceCallback - ): void; + listSkus(resourceGroupName: string, vmScaleSetName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param options The optional parameters * @param callback The callback */ - listSkus( - resourceGroupName: string, - vmScaleSetName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listSkus( - resourceGroupName: string, - vmScaleSetName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listSkus(resourceGroupName: string, vmScaleSetName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSkus(resourceGroupName: string, vmScaleSetName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -415,8 +267,7 @@ export class VirtualMachineScaleSets { options }, listSkusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -426,41 +277,21 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - getOSUpgradeHistory( - resourceGroupName: string, - vmScaleSetName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getOSUpgradeHistory(resourceGroupName: string, vmScaleSetName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param callback The callback */ - getOSUpgradeHistory( - resourceGroupName: string, - vmScaleSetName: string, - callback: msRest.ServiceCallback - ): void; + getOSUpgradeHistory(resourceGroupName: string, vmScaleSetName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. * @param options The optional parameters * @param callback The callback */ - getOSUpgradeHistory( - resourceGroupName: string, - vmScaleSetName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getOSUpgradeHistory( - resourceGroupName: string, - vmScaleSetName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getOSUpgradeHistory(resourceGroupName: string, vmScaleSetName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getOSUpgradeHistory(resourceGroupName: string, vmScaleSetName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -468,8 +299,7 @@ export class VirtualMachineScaleSets { options }, getOSUpgradeHistoryOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -481,14 +311,9 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - powerOff( - resourceGroupName: string, - vmScaleSetName: string, - options?: Models.VirtualMachineScaleSetsPowerOffOptionalParams - ): Promise { - return this.beginPowerOff(resourceGroupName, vmScaleSetName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + powerOff(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsPowerOffOptionalParams): Promise { + return this.beginPowerOff(resourceGroupName,vmScaleSetName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -498,14 +323,9 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - restart( - resourceGroupName: string, - vmScaleSetName: string, - options?: Models.VirtualMachineScaleSetsRestartOptionalParams - ): Promise { - return this.beginRestart(resourceGroupName, vmScaleSetName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + restart(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsRestartOptionalParams): Promise { + return this.beginRestart(resourceGroupName,vmScaleSetName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -515,14 +335,9 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - start( - resourceGroupName: string, - vmScaleSetName: string, - options?: Models.VirtualMachineScaleSetsStartOptionalParams - ): Promise { - return this.beginStart(resourceGroupName, vmScaleSetName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + start(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsStartOptionalParams): Promise { + return this.beginStart(resourceGroupName,vmScaleSetName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -533,14 +348,9 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - redeploy( - resourceGroupName: string, - vmScaleSetName: string, - options?: Models.VirtualMachineScaleSetsRedeployOptionalParams - ): Promise { - return this.beginRedeploy(resourceGroupName, vmScaleSetName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + redeploy(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsRedeployOptionalParams): Promise { + return this.beginRedeploy(resourceGroupName,vmScaleSetName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -553,16 +363,9 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - performMaintenance( - resourceGroupName: string, - vmScaleSetName: string, - options?: Models.VirtualMachineScaleSetsPerformMaintenanceOptionalParams - ): Promise { - return this.beginPerformMaintenance( - resourceGroupName, - vmScaleSetName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + performMaintenance(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsPerformMaintenanceOptionalParams): Promise { + return this.beginPerformMaintenance(resourceGroupName,vmScaleSetName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -573,18 +376,9 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - updateInstances( - resourceGroupName: string, - vmScaleSetName: string, - vmInstanceIDs: Models.VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateInstances( - resourceGroupName, - vmScaleSetName, - vmInstanceIDs, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + updateInstances(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: Models.VirtualMachineScaleSetVMInstanceRequiredIDs, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateInstances(resourceGroupName,vmScaleSetName,vmInstanceIDs,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -596,14 +390,9 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - reimage( - resourceGroupName: string, - vmScaleSetName: string, - options?: Models.VirtualMachineScaleSetsReimageOptionalParams - ): Promise { - return this.beginReimage(resourceGroupName, vmScaleSetName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + reimage(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsReimageOptionalParams): Promise { + return this.beginReimage(resourceGroupName,vmScaleSetName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -614,14 +403,9 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - reimageAll( - resourceGroupName: string, - vmScaleSetName: string, - options?: Models.VirtualMachineScaleSetsReimageAllOptionalParams - ): Promise { - return this.beginReimageAll(resourceGroupName, vmScaleSetName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + reimageAll(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsReimageAllOptionalParams): Promise { + return this.beginReimageAll(resourceGroupName,vmScaleSetName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -635,14 +419,7 @@ export class VirtualMachineScaleSets { * @returns * Promise */ - forceRecoveryServiceFabricPlatformUpdateDomainWalk( - resourceGroupName: string, - vmScaleSetName: string, - platformUpdateDomain: number, - options?: msRest.RequestOptionsBase - ): Promise< - Models.VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse - >; + forceRecoveryServiceFabricPlatformUpdateDomainWalk(resourceGroupName: string, vmScaleSetName: string, platformUpdateDomain: number, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. @@ -650,12 +427,7 @@ export class VirtualMachineScaleSets { * requested * @param callback The callback */ - forceRecoveryServiceFabricPlatformUpdateDomainWalk( - resourceGroupName: string, - vmScaleSetName: string, - platformUpdateDomain: number, - callback: msRest.ServiceCallback - ): void; + forceRecoveryServiceFabricPlatformUpdateDomainWalk(resourceGroupName: string, vmScaleSetName: string, platformUpdateDomain: number, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. @@ -664,22 +436,8 @@ export class VirtualMachineScaleSets { * @param options The optional parameters * @param callback The callback */ - forceRecoveryServiceFabricPlatformUpdateDomainWalk( - resourceGroupName: string, - vmScaleSetName: string, - platformUpdateDomain: number, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - forceRecoveryServiceFabricPlatformUpdateDomainWalk( - resourceGroupName: string, - vmScaleSetName: string, - platformUpdateDomain: number, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise< - Models.VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse - > { + forceRecoveryServiceFabricPlatformUpdateDomainWalk(resourceGroupName: string, vmScaleSetName: string, platformUpdateDomain: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + forceRecoveryServiceFabricPlatformUpdateDomainWalk(resourceGroupName: string, vmScaleSetName: string, platformUpdateDomain: number, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -688,10 +446,7 @@ export class VirtualMachineScaleSets { options }, forceRecoveryServiceFabricPlatformUpdateDomainWalkOperationSpec, - callback - ) as Promise< - Models.VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse - >; + callback) as Promise; } /** @@ -702,24 +457,14 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - convertToSinglePlacementGroup( - resourceGroupName: string, - vmScaleSetName: string, - parameters: Models.VMScaleSetConvertToSinglePlacementGroupInput, - options?: msRest.RequestOptionsBase - ): Promise; + convertToSinglePlacementGroup(resourceGroupName: string, vmScaleSetName: string, parameters: Models.VMScaleSetConvertToSinglePlacementGroupInput, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the virtual machine scale set to create or update. * @param parameters The input object for ConvertToSinglePlacementGroup API. * @param callback The callback */ - convertToSinglePlacementGroup( - resourceGroupName: string, - vmScaleSetName: string, - parameters: Models.VMScaleSetConvertToSinglePlacementGroupInput, - callback: msRest.ServiceCallback - ): void; + convertToSinglePlacementGroup(resourceGroupName: string, vmScaleSetName: string, parameters: Models.VMScaleSetConvertToSinglePlacementGroupInput, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the virtual machine scale set to create or update. @@ -727,20 +472,8 @@ export class VirtualMachineScaleSets { * @param options The optional parameters * @param callback The callback */ - convertToSinglePlacementGroup( - resourceGroupName: string, - vmScaleSetName: string, - parameters: Models.VMScaleSetConvertToSinglePlacementGroupInput, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - convertToSinglePlacementGroup( - resourceGroupName: string, - vmScaleSetName: string, - parameters: Models.VMScaleSetConvertToSinglePlacementGroupInput, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + convertToSinglePlacementGroup(resourceGroupName: string, vmScaleSetName: string, parameters: Models.VMScaleSetConvertToSinglePlacementGroupInput, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + convertToSinglePlacementGroup(resourceGroupName: string, vmScaleSetName: string, parameters: Models.VMScaleSetConvertToSinglePlacementGroupInput, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -749,8 +482,7 @@ export class VirtualMachineScaleSets { options }, convertToSinglePlacementGroupOperationSpec, - callback - ); + callback); } /** @@ -761,18 +493,9 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - setOrchestrationServiceState( - resourceGroupName: string, - vmScaleSetName: string, - parameters: Models.OrchestrationServiceStateInput, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginSetOrchestrationServiceState( - resourceGroupName, - vmScaleSetName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + setOrchestrationServiceState(resourceGroupName: string, vmScaleSetName: string, parameters: Models.OrchestrationServiceStateInput, options?: msRest.RequestOptionsBase): Promise { + return this.beginSetOrchestrationServiceState(resourceGroupName,vmScaleSetName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -783,12 +506,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate( - resourceGroupName: string, - vmScaleSetName: string, - parameters: Models.VirtualMachineScaleSet, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateOrUpdate(resourceGroupName: string, vmScaleSetName: string, parameters: Models.VirtualMachineScaleSet, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -797,8 +515,7 @@ export class VirtualMachineScaleSets { options }, beginCreateOrUpdateOperationSpec, - options - ); + options); } /** @@ -809,12 +526,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - beginUpdate( - resourceGroupName: string, - vmScaleSetName: string, - parameters: Models.VirtualMachineScaleSetUpdate, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdate(resourceGroupName: string, vmScaleSetName: string, parameters: Models.VirtualMachineScaleSetUpdate, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -823,8 +535,7 @@ export class VirtualMachineScaleSets { options }, beginUpdateOperationSpec, - options - ); + options); } /** @@ -834,11 +545,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - vmScaleSetName: string, - options?: Models.VirtualMachineScaleSetsBeginDeleteMethodOptionalParams - ): Promise { + beginDeleteMethod(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsBeginDeleteMethodOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -846,8 +553,7 @@ export class VirtualMachineScaleSets { options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -859,11 +565,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - beginDeallocate( - resourceGroupName: string, - vmScaleSetName: string, - options?: Models.VirtualMachineScaleSetsBeginDeallocateOptionalParams - ): Promise { + beginDeallocate(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsBeginDeallocateOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -871,8 +573,7 @@ export class VirtualMachineScaleSets { options }, beginDeallocateOperationSpec, - options - ); + options); } /** @@ -883,12 +584,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - beginDeleteInstances( - resourceGroupName: string, - vmScaleSetName: string, - vmInstanceIDs: Models.VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: Models.VirtualMachineScaleSetsBeginDeleteInstancesOptionalParams - ): Promise { + beginDeleteInstances(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: Models.VirtualMachineScaleSetVMInstanceRequiredIDs, options?: Models.VirtualMachineScaleSetsBeginDeleteInstancesOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -897,8 +593,7 @@ export class VirtualMachineScaleSets { options }, beginDeleteInstancesOperationSpec, - options - ); + options); } /** @@ -910,11 +605,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - beginPowerOff( - resourceGroupName: string, - vmScaleSetName: string, - options?: Models.VirtualMachineScaleSetsBeginPowerOffOptionalParams - ): Promise { + beginPowerOff(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsBeginPowerOffOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -922,8 +613,7 @@ export class VirtualMachineScaleSets { options }, beginPowerOffOperationSpec, - options - ); + options); } /** @@ -933,11 +623,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - beginRestart( - resourceGroupName: string, - vmScaleSetName: string, - options?: Models.VirtualMachineScaleSetsBeginRestartOptionalParams - ): Promise { + beginRestart(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsBeginRestartOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -945,8 +631,7 @@ export class VirtualMachineScaleSets { options }, beginRestartOperationSpec, - options - ); + options); } /** @@ -956,11 +641,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - beginStart( - resourceGroupName: string, - vmScaleSetName: string, - options?: Models.VirtualMachineScaleSetsBeginStartOptionalParams - ): Promise { + beginStart(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsBeginStartOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -968,8 +649,7 @@ export class VirtualMachineScaleSets { options }, beginStartOperationSpec, - options - ); + options); } /** @@ -980,11 +660,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - beginRedeploy( - resourceGroupName: string, - vmScaleSetName: string, - options?: Models.VirtualMachineScaleSetsBeginRedeployOptionalParams - ): Promise { + beginRedeploy(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsBeginRedeployOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -992,8 +668,7 @@ export class VirtualMachineScaleSets { options }, beginRedeployOperationSpec, - options - ); + options); } /** @@ -1006,11 +681,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - beginPerformMaintenance( - resourceGroupName: string, - vmScaleSetName: string, - options?: Models.VirtualMachineScaleSetsBeginPerformMaintenanceOptionalParams - ): Promise { + beginPerformMaintenance(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsBeginPerformMaintenanceOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1018,8 +689,7 @@ export class VirtualMachineScaleSets { options }, beginPerformMaintenanceOperationSpec, - options - ); + options); } /** @@ -1030,12 +700,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - beginUpdateInstances( - resourceGroupName: string, - vmScaleSetName: string, - vmInstanceIDs: Models.VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateInstances(resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: Models.VirtualMachineScaleSetVMInstanceRequiredIDs, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1044,8 +709,7 @@ export class VirtualMachineScaleSets { options }, beginUpdateInstancesOperationSpec, - options - ); + options); } /** @@ -1057,11 +721,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - beginReimage( - resourceGroupName: string, - vmScaleSetName: string, - options?: Models.VirtualMachineScaleSetsBeginReimageOptionalParams - ): Promise { + beginReimage(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsBeginReimageOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1069,8 +729,7 @@ export class VirtualMachineScaleSets { options }, beginReimageOperationSpec, - options - ); + options); } /** @@ -1081,11 +740,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - beginReimageAll( - resourceGroupName: string, - vmScaleSetName: string, - options?: Models.VirtualMachineScaleSetsBeginReimageAllOptionalParams - ): Promise { + beginReimageAll(resourceGroupName: string, vmScaleSetName: string, options?: Models.VirtualMachineScaleSetsBeginReimageAllOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1093,8 +748,7 @@ export class VirtualMachineScaleSets { options }, beginReimageAllOperationSpec, - options - ); + options); } /** @@ -1105,12 +759,7 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - beginSetOrchestrationServiceState( - resourceGroupName: string, - vmScaleSetName: string, - parameters: Models.OrchestrationServiceStateInput, - options?: msRest.RequestOptionsBase - ): Promise { + beginSetOrchestrationServiceState(resourceGroupName: string, vmScaleSetName: string, parameters: Models.OrchestrationServiceStateInput, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1119,8 +768,7 @@ export class VirtualMachineScaleSets { options }, beginSetOrchestrationServiceStateOperationSpec, - options - ); + options); } /** @@ -1129,43 +777,26 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - listByLocationNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByLocationNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listByLocationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByLocationNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByLocationNext( - nextPageLink: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByLocationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByLocationNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1174,43 +805,26 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1221,43 +835,26 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - listAllNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listAllNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listAllNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listAllNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listAllNext( - nextPageLink: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAllNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listAllNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1267,43 +864,26 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - listSkusNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listSkusNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listSkusNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listSkusNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listSkusNext( - nextPageLink: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listSkusNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1312,43 +892,26 @@ export class VirtualMachineScaleSets { * @param [options] The optional parameters * @returns Promise */ - getOSUpgradeHistoryNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + getOSUpgradeHistoryNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - getOSUpgradeHistoryNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + getOSUpgradeHistoryNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - getOSUpgradeHistoryNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getOSUpgradeHistoryNext( - nextPageLink: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getOSUpgradeHistoryNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getOSUpgradeHistoryNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, getOSUpgradeHistoryNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -1356,11 +919,17 @@ export class VirtualMachineScaleSets { const serializer = new msRest.Serializer(Mappers); const listByLocationOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachineScaleSets", - urlParameters: [Parameters.location1, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachineScaleSets", + urlParameters: [ + Parameters.location1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineScaleSetListResult @@ -1374,15 +943,19 @@ const listByLocationOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", urlParameters: [ Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0, Parameters.expand0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0, + Parameters.expand0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineScaleSet @@ -1396,15 +969,18 @@ const getOperationSpec: msRest.OperationSpec = { const getInstanceViewOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView", urlParameters: [ Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineScaleSetInstanceView @@ -1418,11 +994,17 @@ const getInstanceViewOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets", - urlParameters: [Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineScaleSetListResult @@ -1437,9 +1019,15 @@ const listOperationSpec: msRest.OperationSpec = { const listAllOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachineScaleSets", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineScaleSetListWithLinkResult @@ -1453,15 +1041,18 @@ const listAllOperationSpec: msRest.OperationSpec = { const listSkusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/skus", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/skus", urlParameters: [ Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineScaleSetListSkusResult @@ -1475,15 +1066,18 @@ const listSkusOperationSpec: msRest.OperationSpec = { const getOSUpgradeHistoryOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osUpgradeHistory", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osUpgradeHistory", urlParameters: [ Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineScaleSetListOSUpgradeHistory @@ -1497,15 +1091,19 @@ const getOSUpgradeHistoryOperationSpec: msRest.OperationSpec = { const forceRecoveryServiceFabricPlatformUpdateDomainWalkOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk", urlParameters: [ Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0, Parameters.platformUpdateDomain], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0, + Parameters.platformUpdateDomain + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RecoveryWalkResponse @@ -1519,15 +1117,18 @@ const forceRecoveryServiceFabricPlatformUpdateDomainWalkOperationSpec: msRest.Op const convertToSinglePlacementGroupOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup", urlParameters: [ Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1546,15 +1147,18 @@ const convertToSinglePlacementGroupOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", urlParameters: [ Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1578,15 +1182,18 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", urlParameters: [ Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1607,15 +1214,19 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", urlParameters: [ Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.subscriptionId ], - queryParameters: [Parameters.forceDeletion, Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.forceDeletion, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -1629,17 +1240,23 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { const beginDeallocateOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate", urlParameters: [ Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { - parameterPath: ["options", "vmInstanceIDs"], + parameterPath: [ + "options", + "vmInstanceIDs" + ], mapper: Mappers.VirtualMachineScaleSetVMInstanceIDs }, responses: { @@ -1654,15 +1271,19 @@ const beginDeallocateOperationSpec: msRest.OperationSpec = { const beginDeleteInstancesOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete", urlParameters: [ Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.subscriptionId ], - queryParameters: [Parameters.forceDeletion, Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.forceDeletion, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "vmInstanceIDs", mapper: { @@ -1682,17 +1303,24 @@ const beginDeleteInstancesOperationSpec: msRest.OperationSpec = { const beginPowerOffOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff", urlParameters: [ Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.subscriptionId ], - queryParameters: [Parameters.skipShutdown, Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.skipShutdown, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { - parameterPath: ["options", "vmInstanceIDs"], + parameterPath: [ + "options", + "vmInstanceIDs" + ], mapper: Mappers.VirtualMachineScaleSetVMInstanceIDs }, responses: { @@ -1707,17 +1335,23 @@ const beginPowerOffOperationSpec: msRest.OperationSpec = { const beginRestartOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart", urlParameters: [ Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { - parameterPath: ["options", "vmInstanceIDs"], + parameterPath: [ + "options", + "vmInstanceIDs" + ], mapper: Mappers.VirtualMachineScaleSetVMInstanceIDs }, responses: { @@ -1732,17 +1366,23 @@ const beginRestartOperationSpec: msRest.OperationSpec = { const beginStartOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start", urlParameters: [ Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { - parameterPath: ["options", "vmInstanceIDs"], + parameterPath: [ + "options", + "vmInstanceIDs" + ], mapper: Mappers.VirtualMachineScaleSetVMInstanceIDs }, responses: { @@ -1757,17 +1397,23 @@ const beginStartOperationSpec: msRest.OperationSpec = { const beginRedeployOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy", urlParameters: [ Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { - parameterPath: ["options", "vmInstanceIDs"], + parameterPath: [ + "options", + "vmInstanceIDs" + ], mapper: Mappers.VirtualMachineScaleSetVMInstanceIDs }, responses: { @@ -1782,17 +1428,23 @@ const beginRedeployOperationSpec: msRest.OperationSpec = { const beginPerformMaintenanceOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance", urlParameters: [ Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { - parameterPath: ["options", "vmInstanceIDs"], + parameterPath: [ + "options", + "vmInstanceIDs" + ], mapper: Mappers.VirtualMachineScaleSetVMInstanceIDs }, responses: { @@ -1807,15 +1459,18 @@ const beginPerformMaintenanceOperationSpec: msRest.OperationSpec = { const beginUpdateInstancesOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade", urlParameters: [ Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "vmInstanceIDs", mapper: { @@ -1835,17 +1490,23 @@ const beginUpdateInstancesOperationSpec: msRest.OperationSpec = { const beginReimageOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage", urlParameters: [ Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { - parameterPath: ["options", "vmScaleSetReimageInput"], + parameterPath: [ + "options", + "vmScaleSetReimageInput" + ], mapper: Mappers.VirtualMachineScaleSetReimageParameters }, responses: { @@ -1860,17 +1521,23 @@ const beginReimageOperationSpec: msRest.OperationSpec = { const beginReimageAllOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall", urlParameters: [ Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { - parameterPath: ["options", "vmInstanceIDs"], + parameterPath: [ + "options", + "vmInstanceIDs" + ], mapper: Mappers.VirtualMachineScaleSetVMInstanceIDs }, responses: { @@ -1885,15 +1552,18 @@ const beginReimageAllOperationSpec: msRest.OperationSpec = { const beginSetOrchestrationServiceStateOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState", urlParameters: [ Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.subscriptionId ], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1915,9 +1585,15 @@ const listByLocationNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineScaleSetListResult @@ -1933,9 +1609,15 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineScaleSetListResult @@ -1951,9 +1633,15 @@ const listAllNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineScaleSetListWithLinkResult @@ -1969,9 +1657,15 @@ const listSkusNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineScaleSetListSkusResult @@ -1987,9 +1681,15 @@ const getOSUpgradeHistoryNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineScaleSetListOSUpgradeHistory diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts b/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts index 73616c70c339..60886d0629e6 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts @@ -32,43 +32,26 @@ export class VirtualMachineSizes { * @param [options] The optional parameters * @returns Promise */ - list( - location: string, - options?: msRest.RequestOptionsBase - ): Promise; + list(location: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location The location upon which virtual-machine-sizes is queried. * @param callback The callback */ - list( - location: string, - callback: msRest.ServiceCallback - ): void; + list(location: string, callback: msRest.ServiceCallback): void; /** * @param location The location upon which virtual-machine-sizes is queried. * @param options The optional parameters * @param callback The callback */ - list( - location: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - location: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -77,9 +60,16 @@ const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/vmSizes", - urlParameters: [Parameters.location1, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.location1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineSizeListResult diff --git a/sdk/compute/arm-compute/src/operations/virtualMachines.ts b/sdk/compute/arm-compute/src/operations/virtualMachines.ts index 95c56556c7f2..f97553a4782d 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachines.ts @@ -32,41 +32,26 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - listByLocation( - location: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByLocation(location: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location The location for which virtual machines under the subscription are queried. * @param callback The callback */ - listByLocation( - location: string, - callback: msRest.ServiceCallback - ): void; + listByLocation(location: string, callback: msRest.ServiceCallback): void; /** * @param location The location for which virtual machines under the subscription are queried. * @param options The optional parameters * @param callback The callback */ - listByLocation( - location: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByLocation( - location: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByLocation(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByLocation(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, options }, listByLocationOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -78,15 +63,9 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - capture( - resourceGroupName: string, - vmName: string, - parameters: Models.VirtualMachineCaptureParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCapture(resourceGroupName, vmName, parameters, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; + capture(resourceGroupName: string, vmName: string, parameters: Models.VirtualMachineCaptureParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCapture(resourceGroupName,vmName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -98,20 +77,9 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate( - resourceGroupName: string, - vmName: string, - parameters: Models.VirtualMachine, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreateOrUpdate( - resourceGroupName, - vmName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.VirtualMachinesCreateOrUpdateResponse - >; + createOrUpdate(resourceGroupName: string, vmName: string, parameters: Models.VirtualMachine, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,vmName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -122,15 +90,9 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - vmName: string, - parameters: Models.VirtualMachineUpdate, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdate(resourceGroupName, vmName, parameters, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; + update(resourceGroupName: string, vmName: string, parameters: Models.VirtualMachineUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,vmName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -140,14 +102,9 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - vmName: string, - options?: Models.VirtualMachinesDeleteMethodOptionalParams - ): Promise { - return this.beginDeleteMethod(resourceGroupName, vmName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + deleteMethod(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesDeleteMethodOptionalParams): Promise { + return this.beginDeleteMethod(resourceGroupName,vmName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -157,41 +114,21 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - vmName: string, - options?: Models.VirtualMachinesGetOptionalParams - ): Promise; + get(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesGetOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @param callback The callback */ - get( - resourceGroupName: string, - vmName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, vmName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - vmName: string, - options: Models.VirtualMachinesGetOptionalParams, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - vmName: string, - options?: - | Models.VirtualMachinesGetOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, vmName: string, options: Models.VirtualMachinesGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -199,8 +136,7 @@ export class VirtualMachines { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -210,39 +146,21 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - instanceView( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase - ): Promise; + instanceView(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @param callback The callback */ - instanceView( - resourceGroupName: string, - vmName: string, - callback: msRest.ServiceCallback - ): void; + instanceView(resourceGroupName: string, vmName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @param options The optional parameters * @param callback The callback */ - instanceView( - resourceGroupName: string, - vmName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - instanceView( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + instanceView(resourceGroupName: string, vmName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + instanceView(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -250,8 +168,7 @@ export class VirtualMachines { options }, instanceViewOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -262,14 +179,9 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - convertToManagedDisks( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginConvertToManagedDisks(resourceGroupName, vmName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + convertToManagedDisks(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginConvertToManagedDisks(resourceGroupName,vmName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -280,14 +192,9 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - deallocate( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeallocate(resourceGroupName, vmName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + deallocate(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesDeallocateOptionalParams): Promise { + return this.beginDeallocate(resourceGroupName,vmName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -302,39 +209,21 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - generalize( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase - ): Promise; + generalize(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @param callback The callback */ - generalize( - resourceGroupName: string, - vmName: string, - callback: msRest.ServiceCallback - ): void; + generalize(resourceGroupName: string, vmName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @param options The optional parameters * @param callback The callback */ - generalize( - resourceGroupName: string, - vmName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - generalize( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + generalize(resourceGroupName: string, vmName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + generalize(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -342,8 +231,7 @@ export class VirtualMachines { options }, generalizeOperationSpec, - callback - ); + callback); } /** @@ -353,41 +241,26 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - list( - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param callback The callback */ - list( - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + list(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param options The optional parameters * @param callback The callback */ - list( - resourceGroupName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - resourceGroupName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, listOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -396,9 +269,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - listAll( - options?: Models.VirtualMachinesListAllOptionalParams - ): Promise; + listAll(options?: Models.VirtualMachinesListAllOptionalParams): Promise; /** * @param callback The callback */ @@ -407,23 +278,14 @@ export class VirtualMachines { * @param options The optional parameters * @param callback The callback */ - listAll( - options: Models.VirtualMachinesListAllOptionalParams, - callback: msRest.ServiceCallback - ): void; - listAll( - options?: - | Models.VirtualMachinesListAllOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAll(options: Models.VirtualMachinesListAllOptionalParams, callback: msRest.ServiceCallback): void; + listAll(options?: Models.VirtualMachinesListAllOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listAllOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -433,41 +295,21 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - listAvailableSizes( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listAvailableSizes(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @param callback The callback */ - listAvailableSizes( - resourceGroupName: string, - vmName: string, - callback: msRest.ServiceCallback - ): void; + listAvailableSizes(resourceGroupName: string, vmName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @param options The optional parameters * @param callback The callback */ - listAvailableSizes( - resourceGroupName: string, - vmName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listAvailableSizes( - resourceGroupName: string, - vmName: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAvailableSizes(resourceGroupName: string, vmName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAvailableSizes(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -475,8 +317,7 @@ export class VirtualMachines { options }, listAvailableSizesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -487,14 +328,9 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - powerOff( - resourceGroupName: string, - vmName: string, - options?: Models.VirtualMachinesPowerOffOptionalParams - ): Promise { - return this.beginPowerOff(resourceGroupName, vmName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + powerOff(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesPowerOffOptionalParams): Promise { + return this.beginPowerOff(resourceGroupName,vmName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -504,14 +340,9 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - reapply( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginReapply(resourceGroupName, vmName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + reapply(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginReapply(resourceGroupName,vmName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -521,14 +352,9 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - restart( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginRestart(resourceGroupName, vmName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + restart(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRestart(resourceGroupName,vmName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -538,14 +364,9 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - start( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginStart(resourceGroupName, vmName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + start(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginStart(resourceGroupName,vmName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -555,14 +376,9 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - redeploy( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginRedeploy(resourceGroupName, vmName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + redeploy(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRedeploy(resourceGroupName,vmName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -572,14 +388,9 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - reimage( - resourceGroupName: string, - vmName: string, - options?: Models.VirtualMachinesReimageOptionalParams - ): Promise { - return this.beginReimage(resourceGroupName, vmName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + reimage(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesReimageOptionalParams): Promise { + return this.beginReimage(resourceGroupName,vmName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -589,41 +400,21 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - retrieveBootDiagnosticsData( - resourceGroupName: string, - vmName: string, - options?: Models.VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams - ): Promise; + retrieveBootDiagnosticsData(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @param callback The callback */ - retrieveBootDiagnosticsData( - resourceGroupName: string, - vmName: string, - callback: msRest.ServiceCallback - ): void; + retrieveBootDiagnosticsData(resourceGroupName: string, vmName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @param options The optional parameters * @param callback The callback */ - retrieveBootDiagnosticsData( - resourceGroupName: string, - vmName: string, - options: Models.VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams, - callback: msRest.ServiceCallback - ): void; - retrieveBootDiagnosticsData( - resourceGroupName: string, - vmName: string, - options?: - | Models.VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + retrieveBootDiagnosticsData(resourceGroupName: string, vmName: string, options: Models.VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams, callback: msRest.ServiceCallback): void; + retrieveBootDiagnosticsData(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -631,8 +422,7 @@ export class VirtualMachines { options }, retrieveBootDiagnosticsDataOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -642,14 +432,9 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - performMaintenance( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginPerformMaintenance(resourceGroupName, vmName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + performMaintenance(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginPerformMaintenance(resourceGroupName,vmName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -659,39 +444,21 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - simulateEviction( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase - ): Promise; + simulateEviction(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @param callback The callback */ - simulateEviction( - resourceGroupName: string, - vmName: string, - callback: msRest.ServiceCallback - ): void; + simulateEviction(resourceGroupName: string, vmName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. * @param options The optional parameters * @param callback The callback */ - simulateEviction( - resourceGroupName: string, - vmName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - simulateEviction( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + simulateEviction(resourceGroupName: string, vmName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + simulateEviction(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -699,8 +466,7 @@ export class VirtualMachines { options }, simulateEvictionOperationSpec, - callback - ); + callback); } /** @@ -710,14 +476,9 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - assessPatches( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginAssessPatches(resourceGroupName, vmName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; + assessPatches(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginAssessPatches(resourceGroupName,vmName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -728,20 +489,9 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - installPatches( - resourceGroupName: string, - vmName: string, - installPatchesInput: Models.VirtualMachineInstallPatchesParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginInstallPatches( - resourceGroupName, - vmName, - installPatchesInput, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.VirtualMachinesInstallPatchesResponse - >; + installPatches(resourceGroupName: string, vmName: string, installPatchesInput: Models.VirtualMachineInstallPatchesParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginInstallPatches(resourceGroupName,vmName,installPatchesInput,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -752,15 +502,9 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - runCommand( - resourceGroupName: string, - vmName: string, - parameters: Models.RunCommandInput, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginRunCommand(resourceGroupName, vmName, parameters, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; + runCommand(resourceGroupName: string, vmName: string, parameters: Models.RunCommandInput, options?: msRest.RequestOptionsBase): Promise { + return this.beginRunCommand(resourceGroupName,vmName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -772,12 +516,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginCapture( - resourceGroupName: string, - vmName: string, - parameters: Models.VirtualMachineCaptureParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginCapture(resourceGroupName: string, vmName: string, parameters: Models.VirtualMachineCaptureParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -786,8 +525,7 @@ export class VirtualMachines { options }, beginCaptureOperationSpec, - options - ); + options); } /** @@ -799,12 +537,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate( - resourceGroupName: string, - vmName: string, - parameters: Models.VirtualMachine, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreateOrUpdate(resourceGroupName: string, vmName: string, parameters: Models.VirtualMachine, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -813,8 +546,7 @@ export class VirtualMachines { options }, beginCreateOrUpdateOperationSpec, - options - ); + options); } /** @@ -825,12 +557,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginUpdate( - resourceGroupName: string, - vmName: string, - parameters: Models.VirtualMachineUpdate, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdate(resourceGroupName: string, vmName: string, parameters: Models.VirtualMachineUpdate, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -839,8 +566,7 @@ export class VirtualMachines { options }, beginUpdateOperationSpec, - options - ); + options); } /** @@ -850,11 +576,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - vmName: string, - options?: Models.VirtualMachinesBeginDeleteMethodOptionalParams - ): Promise { + beginDeleteMethod(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesBeginDeleteMethodOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -862,8 +584,7 @@ export class VirtualMachines { options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -874,11 +595,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginConvertToManagedDisks( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginConvertToManagedDisks(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -886,8 +603,7 @@ export class VirtualMachines { options }, beginConvertToManagedDisksOperationSpec, - options - ); + options); } /** @@ -898,11 +614,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginDeallocate( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeallocate(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesBeginDeallocateOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -910,8 +622,7 @@ export class VirtualMachines { options }, beginDeallocateOperationSpec, - options - ); + options); } /** @@ -922,11 +633,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginPowerOff( - resourceGroupName: string, - vmName: string, - options?: Models.VirtualMachinesBeginPowerOffOptionalParams - ): Promise { + beginPowerOff(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesBeginPowerOffOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -934,8 +641,7 @@ export class VirtualMachines { options }, beginPowerOffOperationSpec, - options - ); + options); } /** @@ -945,11 +651,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginReapply( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginReapply(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -957,8 +659,7 @@ export class VirtualMachines { options }, beginReapplyOperationSpec, - options - ); + options); } /** @@ -968,11 +669,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginRestart( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginRestart(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -980,8 +677,7 @@ export class VirtualMachines { options }, beginRestartOperationSpec, - options - ); + options); } /** @@ -991,11 +687,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginStart( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginStart(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1003,8 +695,7 @@ export class VirtualMachines { options }, beginStartOperationSpec, - options - ); + options); } /** @@ -1014,11 +705,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginRedeploy( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginRedeploy(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1026,8 +713,7 @@ export class VirtualMachines { options }, beginRedeployOperationSpec, - options - ); + options); } /** @@ -1037,11 +723,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginReimage( - resourceGroupName: string, - vmName: string, - options?: Models.VirtualMachinesBeginReimageOptionalParams - ): Promise { + beginReimage(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesBeginReimageOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1049,8 +731,7 @@ export class VirtualMachines { options }, beginReimageOperationSpec, - options - ); + options); } /** @@ -1060,11 +741,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginPerformMaintenance( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginPerformMaintenance(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1072,8 +749,7 @@ export class VirtualMachines { options }, beginPerformMaintenanceOperationSpec, - options - ); + options); } /** @@ -1083,11 +759,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginAssessPatches( - resourceGroupName: string, - vmName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginAssessPatches(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1095,8 +767,7 @@ export class VirtualMachines { options }, beginAssessPatchesOperationSpec, - options - ); + options); } /** @@ -1107,12 +778,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginInstallPatches( - resourceGroupName: string, - vmName: string, - installPatchesInput: Models.VirtualMachineInstallPatchesParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginInstallPatches(resourceGroupName: string, vmName: string, installPatchesInput: Models.VirtualMachineInstallPatchesParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1121,8 +787,7 @@ export class VirtualMachines { options }, beginInstallPatchesOperationSpec, - options - ); + options); } /** @@ -1133,12 +798,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginRunCommand( - resourceGroupName: string, - vmName: string, - parameters: Models.RunCommandInput, - options?: msRest.RequestOptionsBase - ): Promise { + beginRunCommand(resourceGroupName: string, vmName: string, parameters: Models.RunCommandInput, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -1147,8 +807,7 @@ export class VirtualMachines { options }, beginRunCommandOperationSpec, - options - ); + options); } /** @@ -1157,41 +816,26 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - listByLocationNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByLocationNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listByLocationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByLocationNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByLocationNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByLocationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByLocationNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1201,41 +845,26 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -1245,43 +874,26 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - listAllNext( - nextPageLink: string, - options?: Models.VirtualMachinesListAllNextOptionalParams - ): Promise; + listAllNext(nextPageLink: string, options?: Models.VirtualMachinesListAllNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listAllNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listAllNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listAllNext( - nextPageLink: string, - options: Models.VirtualMachinesListAllNextOptionalParams, - callback: msRest.ServiceCallback - ): void; - listAllNext( - nextPageLink: string, - options?: - | Models.VirtualMachinesListAllNextOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listAllNext(nextPageLink: string, options: Models.VirtualMachinesListAllNextOptionalParams, callback: msRest.ServiceCallback): void; + listAllNext(nextPageLink: string, options?: Models.VirtualMachinesListAllNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listAllNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -1289,11 +901,17 @@ export class VirtualMachines { const serializer = new msRest.Serializer(Mappers); const listByLocationOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines", - urlParameters: [Parameters.location1, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines", + urlParameters: [ + Parameters.location1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineListResult @@ -1307,11 +925,19 @@ const listByLocationOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.expand1, Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand1, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachine @@ -1325,11 +951,18 @@ const getOperationSpec: msRest.OperationSpec = { const instanceViewOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineInstanceView @@ -1343,11 +976,18 @@ const instanceViewOperationSpec: msRest.OperationSpec = { const generalizeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/generalize", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/generalize", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, default: { @@ -1359,11 +999,17 @@ const generalizeOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines", - urlParameters: [Parameters.resourceGroupName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineListResult @@ -1378,9 +1024,16 @@ const listOperationSpec: msRest.OperationSpec = { const listAllOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0, Parameters.statusOnly], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.statusOnly + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineListResult @@ -1394,11 +1047,18 @@ const listAllOperationSpec: msRest.OperationSpec = { const listAvailableSizesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/vmSizes", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/vmSizes", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineSizeListResult @@ -1412,11 +1072,19 @@ const listAvailableSizesOperationSpec: msRest.OperationSpec = { const retrieveBootDiagnosticsDataOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/retrieveBootDiagnosticsData", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.sasUriExpirationTimeInMinutes, Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/retrieveBootDiagnosticsData", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.sasUriExpirationTimeInMinutes, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RetrieveBootDiagnosticsDataResult @@ -1430,11 +1098,18 @@ const retrieveBootDiagnosticsDataOperationSpec: msRest.OperationSpec = { const simulateEvictionOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 204: {}, default: { @@ -1446,11 +1121,18 @@ const simulateEvictionOperationSpec: msRest.OperationSpec = { const beginCaptureOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1472,11 +1154,18 @@ const beginCaptureOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1500,11 +1189,18 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1525,11 +1221,19 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.forceDeletion, Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.forceDeletion, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -1543,11 +1247,18 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { const beginConvertToManagedDisksOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -1560,11 +1271,19 @@ const beginConvertToManagedDisksOperationSpec: msRest.OperationSpec = { const beginDeallocateOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.hibernate, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -1577,11 +1296,19 @@ const beginDeallocateOperationSpec: msRest.OperationSpec = { const beginPowerOffOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.skipShutdown, Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.skipShutdown, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -1594,11 +1321,18 @@ const beginPowerOffOperationSpec: msRest.OperationSpec = { const beginReapplyOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -1611,11 +1345,18 @@ const beginReapplyOperationSpec: msRest.OperationSpec = { const beginRestartOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -1628,11 +1369,18 @@ const beginRestartOperationSpec: msRest.OperationSpec = { const beginStartOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -1645,11 +1393,18 @@ const beginStartOperationSpec: msRest.OperationSpec = { const beginRedeployOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -1662,13 +1417,23 @@ const beginRedeployOperationSpec: msRest.OperationSpec = { const beginReimageOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { - parameterPath: ["options", "parameters"], + parameterPath: [ + "options", + "parameters" + ], mapper: Mappers.VirtualMachineReimageParameters }, responses: { @@ -1683,11 +1448,18 @@ const beginReimageOperationSpec: msRest.OperationSpec = { const beginPerformMaintenanceOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -1700,11 +1472,18 @@ const beginPerformMaintenanceOperationSpec: msRest.OperationSpec = { const beginAssessPatchesOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/assessPatches", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/assessPatches", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineAssessPatchesResult @@ -1719,11 +1498,18 @@ const beginAssessPatchesOperationSpec: msRest.OperationSpec = { const beginInstallPatchesOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "installPatchesInput", mapper: { @@ -1745,11 +1531,18 @@ const beginInstallPatchesOperationSpec: msRest.OperationSpec = { const beginRunCommandOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand", - urlParameters: [Parameters.resourceGroupName, Parameters.vmName, Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1773,9 +1566,15 @@ const listByLocationNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineListResult @@ -1791,9 +1590,15 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineListResult @@ -1809,9 +1614,16 @@ const listAllNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion0, Parameters.statusOnly], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.statusOnly + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.VirtualMachineListResult