diff --git a/sdk/compute/arm-compute/README.md b/sdk/compute/arm-compute/README.md index cff2a236f79d..f781c80eaa28 100644 --- a/sdk/compute/arm-compute/README.md +++ b/sdk/compute/arm-compute/README.md @@ -95,5 +95,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/compute/arm-compute/README.png) diff --git a/sdk/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json index 9a2d123f805d..df8e0c31d07b 100644 --- a/sdk/compute/arm-compute/package.json +++ b/sdk/compute/arm-compute/package.json @@ -4,9 +4,9 @@ "description": "ComputeManagementClient Library with typescript type definitions for node.js and browser.", "version": "10.0.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.8.1", - "tslib": "^1.9.3" + "@azure/ms-rest-azure-js": "^2.0.0", + "@azure/ms-rest-js": "^2.0.3", + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -26,13 +26,13 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/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" + "url": "https://github.com/Azure/azure-sdk-for-js.git" }, "bugs": { - "url": "https://github.com/azure/azure-sdk-for-js/issues" + "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index 2a6a78e79ac0..aad1875795c6 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -19,6 +19,9 @@ class ComputeManagementClient extends ComputeManagementClientContext { // Operation groups operations: operations.Operations; availabilitySets: operations.AvailabilitySets; + proximityPlacementGroups: operations.ProximityPlacementGroups; + dedicatedHostGroups: operations.DedicatedHostGroups; + dedicatedHosts: operations.DedicatedHosts; virtualMachineExtensionImages: operations.VirtualMachineExtensionImages; virtualMachineExtensions: operations.VirtualMachineExtensions; virtualMachineImages: operations.VirtualMachineImages; @@ -29,7 +32,6 @@ class ComputeManagementClient extends ComputeManagementClientContext { virtualMachineScaleSets: operations.VirtualMachineScaleSets; virtualMachineScaleSetExtensions: operations.VirtualMachineScaleSetExtensions; virtualMachineScaleSetRollingUpgrades: operations.VirtualMachineScaleSetRollingUpgrades; - virtualMachineScaleSet: operations.VirtualMachineScaleSetOperations; virtualMachineScaleSetVMs: operations.VirtualMachineScaleSetVMs; logAnalytics: operations.LogAnalytics; virtualMachineRunCommands: operations.VirtualMachineRunCommands; @@ -52,6 +54,9 @@ class ComputeManagementClient extends ComputeManagementClientContext { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.availabilitySets = new operations.AvailabilitySets(this); + this.proximityPlacementGroups = new operations.ProximityPlacementGroups(this); + this.dedicatedHostGroups = new operations.DedicatedHostGroups(this); + this.dedicatedHosts = new operations.DedicatedHosts(this); this.virtualMachineExtensionImages = new operations.VirtualMachineExtensionImages(this); this.virtualMachineExtensions = new operations.VirtualMachineExtensions(this); this.virtualMachineImages = new operations.VirtualMachineImages(this); @@ -62,7 +67,6 @@ class ComputeManagementClient extends ComputeManagementClientContext { this.virtualMachineScaleSets = new operations.VirtualMachineScaleSets(this); this.virtualMachineScaleSetExtensions = new operations.VirtualMachineScaleSetExtensions(this); this.virtualMachineScaleSetRollingUpgrades = new operations.VirtualMachineScaleSetRollingUpgrades(this); - this.virtualMachineScaleSet = new operations.VirtualMachineScaleSetOperations(this); this.virtualMachineScaleSetVMs = new operations.VirtualMachineScaleSetVMs(this); this.logAnalytics = new operations.LogAnalytics(this); this.virtualMachineRunCommands = new operations.VirtualMachineRunCommands(this); diff --git a/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts b/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts index fcf14403d584..c398b0cd0f9e 100644 --- a/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts @@ -36,6 +36,13 @@ export { CreationData, DataDisk, DataDiskImage, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, @@ -47,7 +54,7 @@ export { EncryptionSettingsElement, Gallery, GalleryArtifactPublishingProfileBase, - GalleryArtifactSource, + GalleryArtifactVersionSource, GalleryDataDiskImage, GalleryDiskImage, GalleryIdentifier, @@ -74,7 +81,6 @@ export { KeyVaultSecretReference, LinuxConfiguration, MaintenanceRedeployStatus, - ManagedArtifact, ManagedDiskParameters, NetworkInterfaceReference, NetworkProfile, @@ -82,6 +88,8 @@ export { OSDiskImage, OSProfile, Plan, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -92,6 +100,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + ScheduledEventsProfile, Sku, Snapshot, SnapshotSku, @@ -102,6 +111,7 @@ export { SubResource, SubResourceReadOnly, TargetRegion, + TerminateNotificationProfile, UpdateResource, UpgradePolicy, VaultCertificate, diff --git a/sdk/compute/arm-compute/src/models/containerServicesMappers.ts b/sdk/compute/arm-compute/src/models/containerServicesMappers.ts index a9f0f2c86211..12d67256a45d 100644 --- a/sdk/compute/arm-compute/src/models/containerServicesMappers.ts +++ b/sdk/compute/arm-compute/src/models/containerServicesMappers.ts @@ -36,6 +36,13 @@ export { CreationData, DataDisk, DataDiskImage, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, @@ -47,7 +54,7 @@ export { EncryptionSettingsElement, Gallery, GalleryArtifactPublishingProfileBase, - GalleryArtifactSource, + GalleryArtifactVersionSource, GalleryDataDiskImage, GalleryDiskImage, GalleryIdentifier, @@ -74,7 +81,6 @@ export { KeyVaultSecretReference, LinuxConfiguration, MaintenanceRedeployStatus, - ManagedArtifact, ManagedDiskParameters, NetworkInterfaceReference, NetworkProfile, @@ -82,6 +88,8 @@ export { OSDiskImage, OSProfile, Plan, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -92,6 +100,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + ScheduledEventsProfile, Sku, Snapshot, SnapshotSku, @@ -102,6 +111,7 @@ export { SubResource, SubResourceReadOnly, TargetRegion, + TerminateNotificationProfile, UpdateResource, UpgradePolicy, VaultCertificate, diff --git a/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts new file mode 100644 index 000000000000..0e28e914df7e --- /dev/null +++ b/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts @@ -0,0 +1,169 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * 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, + AvailabilitySet, + AvailabilitySetUpdate, + BaseResource, + BootDiagnostics, + BootDiagnosticsInstanceView, + CloudError, + ContainerService, + ContainerServiceAgentPoolProfile, + ContainerServiceCustomProfile, + ContainerServiceDiagnosticsProfile, + ContainerServiceLinuxProfile, + ContainerServiceMasterProfile, + ContainerServiceOrchestratorProfile, + ContainerServiceServicePrincipalProfile, + ContainerServiceSshConfiguration, + ContainerServiceSshPublicKey, + ContainerServiceVMDiagnostics, + ContainerServiceWindowsProfile, + CreationData, + DataDisk, + DataDiskImage, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupListResult, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostUpdate, + DiagnosticsProfile, + DiffDiskSettings, + Disallowed, + Disk, + DiskEncryptionSettings, + DiskInstanceView, + DiskSku, + EncryptionSettingsCollection, + EncryptionSettingsElement, + Gallery, + GalleryArtifactPublishingProfileBase, + GalleryArtifactVersionSource, + GalleryDataDiskImage, + GalleryDiskImage, + GalleryIdentifier, + GalleryImage, + GalleryImageIdentifier, + GalleryImageVersion, + GalleryImageVersionPublishingProfile, + GalleryImageVersionStorageProfile, + GalleryOSDiskImage, + HardwareProfile, + Image, + ImageDataDisk, + ImageDiskReference, + ImageOSDisk, + ImagePurchasePlan, + ImageReference, + ImageStorageProfile, + ImageUpdate, + InnerError, + InstanceViewStatus, + KeyVaultAndKeyReference, + KeyVaultAndSecretReference, + KeyVaultKeyReference, + KeyVaultSecretReference, + LinuxConfiguration, + MaintenanceRedeployStatus, + ManagedDiskParameters, + NetworkInterfaceReference, + NetworkProfile, + OSDisk, + OSDiskImage, + OSProfile, + Plan, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, + PurchasePlan, + RecommendedMachineConfiguration, + RegionalReplicationStatus, + ReplicationStatus, + Resource, + ResourceRange, + RollingUpgradePolicy, + RollingUpgradeProgressInfo, + RollingUpgradeRunningStatus, + RollingUpgradeStatusInfo, + ScheduledEventsProfile, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SshConfiguration, + SshPublicKey, + StorageProfile, + SubResource, + SubResourceReadOnly, + TargetRegion, + TerminateNotificationProfile, + UpdateResource, + UpgradePolicy, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineExtensionUpdate, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageResource, + VirtualMachineInstanceView, + VirtualMachineScaleSet, + VirtualMachineScaleSetDataDisk, + VirtualMachineScaleSetExtension, + VirtualMachineScaleSetExtensionProfile, + VirtualMachineScaleSetIdentity, + VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, + VirtualMachineScaleSetIPConfiguration, + VirtualMachineScaleSetIpTag, + VirtualMachineScaleSetManagedDiskParameters, + VirtualMachineScaleSetNetworkConfiguration, + VirtualMachineScaleSetNetworkConfigurationDnsSettings, + VirtualMachineScaleSetNetworkProfile, + VirtualMachineScaleSetOSDisk, + VirtualMachineScaleSetOSProfile, + VirtualMachineScaleSetPublicIPAddressConfiguration, + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, + VirtualMachineScaleSetStorageProfile, + VirtualMachineScaleSetUpdate, + VirtualMachineScaleSetUpdateIPConfiguration, + VirtualMachineScaleSetUpdateNetworkConfiguration, + VirtualMachineScaleSetUpdateNetworkProfile, + VirtualMachineScaleSetUpdateOSDisk, + VirtualMachineScaleSetUpdateOSProfile, + VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, + VirtualMachineScaleSetUpdateStorageProfile, + VirtualMachineScaleSetUpdateVMProfile, + VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMInstanceView, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProfile, + VirtualMachineScaleSetVMProtectionPolicy, + VirtualMachineUpdate, + WindowsConfiguration, + WinRMConfiguration, + WinRMListener +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts new file mode 100644 index 000000000000..f78b7b1889ae --- /dev/null +++ b/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts @@ -0,0 +1,169 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * 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, + AvailabilitySet, + AvailabilitySetUpdate, + BaseResource, + BootDiagnostics, + BootDiagnosticsInstanceView, + CloudError, + ContainerService, + ContainerServiceAgentPoolProfile, + ContainerServiceCustomProfile, + ContainerServiceDiagnosticsProfile, + ContainerServiceLinuxProfile, + ContainerServiceMasterProfile, + ContainerServiceOrchestratorProfile, + ContainerServiceServicePrincipalProfile, + ContainerServiceSshConfiguration, + ContainerServiceSshPublicKey, + ContainerServiceVMDiagnostics, + ContainerServiceWindowsProfile, + CreationData, + DataDisk, + DataDiskImage, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostListResult, + DedicatedHostUpdate, + DiagnosticsProfile, + DiffDiskSettings, + Disallowed, + Disk, + DiskEncryptionSettings, + DiskInstanceView, + DiskSku, + EncryptionSettingsCollection, + EncryptionSettingsElement, + Gallery, + GalleryArtifactPublishingProfileBase, + GalleryArtifactVersionSource, + GalleryDataDiskImage, + GalleryDiskImage, + GalleryIdentifier, + GalleryImage, + GalleryImageIdentifier, + GalleryImageVersion, + GalleryImageVersionPublishingProfile, + GalleryImageVersionStorageProfile, + GalleryOSDiskImage, + HardwareProfile, + Image, + ImageDataDisk, + ImageDiskReference, + ImageOSDisk, + ImagePurchasePlan, + ImageReference, + ImageStorageProfile, + ImageUpdate, + InnerError, + InstanceViewStatus, + KeyVaultAndKeyReference, + KeyVaultAndSecretReference, + KeyVaultKeyReference, + KeyVaultSecretReference, + LinuxConfiguration, + MaintenanceRedeployStatus, + ManagedDiskParameters, + NetworkInterfaceReference, + NetworkProfile, + OSDisk, + OSDiskImage, + OSProfile, + Plan, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, + PurchasePlan, + RecommendedMachineConfiguration, + RegionalReplicationStatus, + ReplicationStatus, + Resource, + ResourceRange, + RollingUpgradePolicy, + RollingUpgradeProgressInfo, + RollingUpgradeRunningStatus, + RollingUpgradeStatusInfo, + ScheduledEventsProfile, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SshConfiguration, + SshPublicKey, + StorageProfile, + SubResource, + SubResourceReadOnly, + TargetRegion, + TerminateNotificationProfile, + UpdateResource, + UpgradePolicy, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineExtensionUpdate, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageResource, + VirtualMachineInstanceView, + VirtualMachineScaleSet, + VirtualMachineScaleSetDataDisk, + VirtualMachineScaleSetExtension, + VirtualMachineScaleSetExtensionProfile, + VirtualMachineScaleSetIdentity, + VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, + VirtualMachineScaleSetIPConfiguration, + VirtualMachineScaleSetIpTag, + VirtualMachineScaleSetManagedDiskParameters, + VirtualMachineScaleSetNetworkConfiguration, + VirtualMachineScaleSetNetworkConfigurationDnsSettings, + VirtualMachineScaleSetNetworkProfile, + VirtualMachineScaleSetOSDisk, + VirtualMachineScaleSetOSProfile, + VirtualMachineScaleSetPublicIPAddressConfiguration, + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, + VirtualMachineScaleSetStorageProfile, + VirtualMachineScaleSetUpdate, + VirtualMachineScaleSetUpdateIPConfiguration, + VirtualMachineScaleSetUpdateNetworkConfiguration, + VirtualMachineScaleSetUpdateNetworkProfile, + VirtualMachineScaleSetUpdateOSDisk, + VirtualMachineScaleSetUpdateOSProfile, + VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, + VirtualMachineScaleSetUpdateStorageProfile, + VirtualMachineScaleSetUpdateVMProfile, + VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMInstanceView, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProfile, + VirtualMachineScaleSetVMProtectionPolicy, + VirtualMachineUpdate, + WindowsConfiguration, + WinRMConfiguration, + WinRMListener +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/disksMappers.ts b/sdk/compute/arm-compute/src/models/disksMappers.ts index 95e2dfea55a3..933336b4e3d1 100644 --- a/sdk/compute/arm-compute/src/models/disksMappers.ts +++ b/sdk/compute/arm-compute/src/models/disksMappers.ts @@ -36,6 +36,13 @@ export { CreationData, DataDisk, DataDiskImage, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, @@ -49,7 +56,7 @@ export { EncryptionSettingsElement, Gallery, GalleryArtifactPublishingProfileBase, - GalleryArtifactSource, + GalleryArtifactVersionSource, GalleryDataDiskImage, GalleryDiskImage, GalleryIdentifier, @@ -77,7 +84,6 @@ export { KeyVaultSecretReference, LinuxConfiguration, MaintenanceRedeployStatus, - ManagedArtifact, ManagedDiskParameters, NetworkInterfaceReference, NetworkProfile, @@ -85,6 +91,8 @@ export { OSDiskImage, OSProfile, Plan, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -95,6 +103,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + ScheduledEventsProfile, Sku, Snapshot, SnapshotSku, @@ -105,6 +114,7 @@ export { SubResource, SubResourceReadOnly, TargetRegion, + TerminateNotificationProfile, UpdateResource, UpgradePolicy, VaultCertificate, diff --git a/sdk/compute/arm-compute/src/models/galleriesMappers.ts b/sdk/compute/arm-compute/src/models/galleriesMappers.ts index 4687700e7133..e6dfd400aa99 100644 --- a/sdk/compute/arm-compute/src/models/galleriesMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleriesMappers.ts @@ -35,6 +35,13 @@ export { CreationData, DataDisk, DataDiskImage, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, @@ -46,7 +53,7 @@ export { EncryptionSettingsElement, Gallery, GalleryArtifactPublishingProfileBase, - GalleryArtifactSource, + GalleryArtifactVersionSource, GalleryDataDiskImage, GalleryDiskImage, GalleryIdentifier, @@ -74,7 +81,6 @@ export { KeyVaultSecretReference, LinuxConfiguration, MaintenanceRedeployStatus, - ManagedArtifact, ManagedDiskParameters, NetworkInterfaceReference, NetworkProfile, @@ -82,6 +88,8 @@ export { OSDiskImage, OSProfile, Plan, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -92,6 +100,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + ScheduledEventsProfile, Sku, Snapshot, SnapshotSku, @@ -102,6 +111,7 @@ export { SubResource, SubResourceReadOnly, TargetRegion, + TerminateNotificationProfile, UpdateResource, UpgradePolicy, VaultCertificate, diff --git a/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts b/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts index 49635438d1f8..bf2fcfd9c4e1 100644 --- a/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts @@ -35,6 +35,13 @@ export { CreationData, DataDisk, DataDiskImage, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, @@ -46,7 +53,7 @@ export { EncryptionSettingsElement, Gallery, GalleryArtifactPublishingProfileBase, - GalleryArtifactSource, + GalleryArtifactVersionSource, GalleryDataDiskImage, GalleryDiskImage, GalleryIdentifier, @@ -74,7 +81,6 @@ export { KeyVaultSecretReference, LinuxConfiguration, MaintenanceRedeployStatus, - ManagedArtifact, ManagedDiskParameters, NetworkInterfaceReference, NetworkProfile, @@ -82,6 +88,8 @@ export { OSDiskImage, OSProfile, Plan, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -92,6 +100,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + ScheduledEventsProfile, Sku, Snapshot, SnapshotSku, @@ -102,6 +111,7 @@ export { SubResource, SubResourceReadOnly, TargetRegion, + TerminateNotificationProfile, UpdateResource, UpgradePolicy, VaultCertificate, diff --git a/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts b/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts index 3d94ca5fa3a2..74a0f94af187 100644 --- a/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts @@ -35,6 +35,13 @@ export { CreationData, DataDisk, DataDiskImage, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, @@ -46,7 +53,7 @@ export { EncryptionSettingsElement, Gallery, GalleryArtifactPublishingProfileBase, - GalleryArtifactSource, + GalleryArtifactVersionSource, GalleryDataDiskImage, GalleryDiskImage, GalleryIdentifier, @@ -74,7 +81,6 @@ export { KeyVaultSecretReference, LinuxConfiguration, MaintenanceRedeployStatus, - ManagedArtifact, ManagedDiskParameters, NetworkInterfaceReference, NetworkProfile, @@ -82,6 +88,8 @@ export { OSDiskImage, OSProfile, Plan, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -92,6 +100,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + ScheduledEventsProfile, Sku, Snapshot, SnapshotSku, @@ -102,6 +111,7 @@ export { SubResource, SubResourceReadOnly, TargetRegion, + TerminateNotificationProfile, UpdateResource, UpgradePolicy, VaultCertificate, diff --git a/sdk/compute/arm-compute/src/models/imagesMappers.ts b/sdk/compute/arm-compute/src/models/imagesMappers.ts index 9d476228fb50..49af9be82511 100644 --- a/sdk/compute/arm-compute/src/models/imagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/imagesMappers.ts @@ -35,6 +35,13 @@ export { CreationData, DataDisk, DataDiskImage, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, @@ -46,7 +53,7 @@ export { EncryptionSettingsElement, Gallery, GalleryArtifactPublishingProfileBase, - GalleryArtifactSource, + GalleryArtifactVersionSource, GalleryDataDiskImage, GalleryDiskImage, GalleryIdentifier, @@ -74,7 +81,6 @@ export { KeyVaultSecretReference, LinuxConfiguration, MaintenanceRedeployStatus, - ManagedArtifact, ManagedDiskParameters, NetworkInterfaceReference, NetworkProfile, @@ -82,6 +88,8 @@ export { OSDiskImage, OSProfile, Plan, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -92,6 +100,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + ScheduledEventsProfile, Sku, Snapshot, SnapshotSku, @@ -102,6 +111,7 @@ export { SubResource, SubResourceReadOnly, TargetRegion, + TerminateNotificationProfile, UpdateResource, UpgradePolicy, VaultCertificate, diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index ab37a5df853a..68d208b7ba58 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -156,6 +156,11 @@ export interface AvailabilitySet extends Resource { * A list of references to all virtual machines in the availability set. */ virtualMachines?: SubResource[]; + /** + * Specifies information about the proximity placement group that the availability set should be + * assigned to.

Minimum api-version: 2018-04-01. + */ + proximityPlacementGroup?: SubResource; /** * The resource status information. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -196,6 +201,11 @@ export interface AvailabilitySetUpdate extends UpdateResource { * A list of references to all virtual machines in the availability set. */ virtualMachines?: SubResource[]; + /** + * Specifies information about the proximity placement group that the availability set should be + * assigned to.

Minimum api-version: 2018-04-01. + */ + proximityPlacementGroup?: SubResource; /** * The resource status information. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -207,6 +217,241 @@ export interface AvailabilitySetUpdate extends UpdateResource { sku?: Sku; } +/** + * Specifies information about the proximity placement group. + */ +export interface ProximityPlacementGroup extends Resource { + /** + * Specifies the type of the proximity placement group.

Possible values are:

+ * **Standard** : Co-locate resources within an Azure region or Availability Zone.

+ * **Ultra** : For future use. Possible values include: 'Standard', 'Ultra' + */ + proximityPlacementGroupType?: ProximityPlacementGroupType; + /** + * A list of references to all virtual machines in the proximity placement group. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly virtualMachines?: SubResource[]; + /** + * A list of references to all virtual machine scale sets in the proximity placement group. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly virtualMachineScaleSets?: SubResource[]; + /** + * A list of references to all availability sets in the proximity placement group. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly availabilitySets?: SubResource[]; +} + +/** + * Specifies information about the proximity placement group. + */ +export interface ProximityPlacementGroupUpdate extends UpdateResource { +} + +/** + * An interface representing SubResourceReadOnly. + */ +export interface SubResourceReadOnly extends BaseResource { + /** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; +} + +/** + * Specifies information about the dedicated host group that the dedicated hosts should be assigned + * to.

Currently, a dedicated host can only be added to a dedicated host group at creation + * time. An existing dedicated host cannot be added to another dedicated host group. + */ +export interface DedicatedHostGroup extends Resource { + /** + * Number of fault domains that the host group can span. + */ + platformFaultDomainCount: number; + /** + * A list of references to all dedicated hosts in the dedicated host group. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly hosts?: SubResourceReadOnly[]; + /** + * Availability Zone to use for this host group. Only single zone is supported. The zone can be + * assigned only during creation. If not provided, the group supports all zones in the region. If + * provided, enforces each host in the group to be in the same zone. + */ + zones?: string[]; +} + +/** + * Specifies information about the dedicated host group that the dedicated host should be assigned + * to. Only tags may be updated. + */ +export interface DedicatedHostGroupUpdate extends UpdateResource { + /** + * Number of fault domains that the host group can span. + */ + platformFaultDomainCount: number; + /** + * A list of references to all dedicated hosts in the dedicated host group. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly hosts?: SubResourceReadOnly[]; + /** + * Availability Zone to use for this host group. Only single zone is supported. The zone can be + * assigned only during creation. If not provided, the group supports all zones in the region. If + * provided, enforces each host in the group to be in the same zone. + */ + zones?: string[]; +} + +/** + * Represents the dedicated host unutilized capacity in terms of a specific VM size. + */ +export interface DedicatedHostAllocatableVM { + /** + * VM size in terms of which the unutilized capacity is represented. + */ + vmSize?: string; + /** + * Maximum number of VMs of size vmSize that can fit in the dedicated host's remaining capacity. + */ + count?: number; +} + +/** + * Dedicated host unutilized capacity. + */ +export interface DedicatedHostAvailableCapacity { + /** + * The unutilized capacity of the dedicated host represented in terms of each VM size that is + * allowed to be deployed to the dedicated host. + */ + allocatableVMs?: DedicatedHostAllocatableVM[]; +} + +/** + * The instance view of a dedicated host. + */ +export interface DedicatedHostInstanceView { + /** + * Specifies the unique id of the dedicated physical machine on which the dedicated host resides. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly assetId?: string; + /** + * Unutilized capacity of the dedicated host. + */ + availableCapacity?: DedicatedHostAvailableCapacity; + /** + * The resource status information. + */ + statuses?: InstanceViewStatus[]; +} + +/** + * Specifies information about the Dedicated host. + */ +export interface DedicatedHost extends Resource { + /** + * Fault domain of the dedicated host within a dedicated host group. + */ + platformFaultDomain?: number; + /** + * Specifies whether the dedicated host should be replaced automatically in case of a failure. + * The value is defaulted to 'true' when not provided. + */ + autoReplaceOnFailure?: boolean; + /** + * A unique id generated and assigned to the dedicated host by the platform.

Does not + * change throughout the lifetime of the host. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly hostId?: string; + /** + * A list of references to all virtual machines in the Dedicated Host. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly virtualMachines?: SubResourceReadOnly[]; + /** + * Specifies the software license type that will be applied to the VMs deployed on the dedicated + * host.

Possible values are:

**None**

**Windows_Server_Hybrid** + *

**Windows_Server_Perpetual**

Default: **None**. Possible values include: + * 'None', 'Windows_Server_Hybrid', 'Windows_Server_Perpetual' + */ + licenseType?: DedicatedHostLicenseTypes; + /** + * The date when the host was first provisioned. + * **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 dedicated host instance view. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly instanceView?: DedicatedHostInstanceView; + /** + * SKU of the dedicated host for Hardware Generation and VM family. Only name is required to be + * set. List Microsoft.Compute SKUs for a list of possible values. + */ + sku: Sku; +} + +/** + * Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType + * may be updated. + */ +export interface DedicatedHostUpdate extends UpdateResource { + /** + * Fault domain of the dedicated host within a dedicated host group. + */ + platformFaultDomain?: number; + /** + * Specifies whether the dedicated host should be replaced automatically in case of a failure. + * The value is defaulted to 'true' when not provided. + */ + autoReplaceOnFailure?: boolean; + /** + * A unique id generated and assigned to the dedicated host by the platform.

Does not + * change throughout the lifetime of the host. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly hostId?: string; + /** + * A list of references to all virtual machines in the Dedicated Host. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly virtualMachines?: SubResourceReadOnly[]; + /** + * Specifies the software license type that will be applied to the VMs deployed on the dedicated + * host.

Possible values are:

**None**

**Windows_Server_Hybrid** + *

**Windows_Server_Perpetual**

Default: **None**. Possible values include: + * 'None', 'Windows_Server_Hybrid', 'Windows_Server_Perpetual' + */ + licenseType?: DedicatedHostLicenseTypes; + /** + * The date when the host was first provisioned. + * **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 dedicated host instance view. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly instanceView?: DedicatedHostInstanceView; +} + /** * Describes the properties of a VM size. */ @@ -505,7 +750,8 @@ export interface Usage { */ export interface VirtualMachineReimageParameters { /** - * Specifies whether to reimage temp disk. Default value: false. + * Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage + * parameter is only supported for VM/VMSS with Ephemeral OS disk. */ tempDisk?: boolean; } @@ -863,6 +1109,11 @@ export interface DataDisk { * The managed disk parameters. */ managedDisk?: ManagedDiskParameters; + /** + * Specifies whether the data disk is in process of detachment from the + * VirtualMachine/VirtualMachineScaleset + */ + toBeDetached?: boolean; } /** @@ -974,7 +1225,9 @@ export interface WindowsConfiguration { */ provisionVMAgent?: boolean; /** - * Indicates whether virtual machine is enabled for automatic updates. + * Indicates whether Automatic Updates is enabled for the Windows virtual machine. Default value + * is true.

For virtual machine scale sets, this property can be updated and updates + * will take effect on OS reprovisioning. */ enableAutomaticUpdates?: boolean; /** @@ -1390,6 +1643,11 @@ export interface VirtualMachineInstanceView { * The version of Operating System running on the virtual machine. */ osVersion?: string; + /** + * Specifies the HyperVGeneration Type associated with a resource. Possible values include: 'V1', + * 'V2' + */ + hyperVGeneration?: HyperVGenerationType; /** * The Remote desktop certificate thumbprint. */ @@ -1471,6 +1729,16 @@ export interface VirtualMachine extends Resource { * VM cannot be added to an availability set. */ availabilitySet?: SubResource; + /** + * Specifies information about the proximity placement group that the virtual machine should be + * assigned to.

Minimum api-version: 2018-04-01. + */ + proximityPlacementGroup?: SubResource; + /** + * Specifies information about the dedicated host that the virtual machine resides in. + *

Minimum api-version: 2018-10-01. + */ + host?: SubResource; /** * The provisioning state, which only appears in the response. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -1561,6 +1829,16 @@ export interface VirtualMachineUpdate extends UpdateResource { * VM cannot be added to an availability set. */ availabilitySet?: SubResource; + /** + * Specifies information about the proximity placement group that the virtual machine should be + * assigned to.

Minimum api-version: 2018-04-01. + */ + proximityPlacementGroup?: SubResource; + /** + * Specifies information about the dedicated host that the virtual machine resides in. + *

Minimum api-version: 2018-10-01. + */ + host?: SubResource; /** * The provisioning state, which only appears in the response. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -1602,8 +1880,11 @@ export interface VirtualMachineUpdate extends UpdateResource { */ export interface AutomaticOSUpgradePolicy { /** - * Whether OS upgrades should automatically be applied to scale set instances in a rolling - * fashion when a newer version of the image becomes available. Default value is false. + * Indicates whether OS upgrades should automatically be applied to scale set instances in a + * rolling fashion when a newer version of the OS image becomes available. Default value is + * false.

If this is set to true for Windows based scale sets, + * [enableAutomaticUpdates](https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet) + * is automatically set to false and cannot be set to true. */ enableAutomaticOSUpgrade?: boolean; /** @@ -1794,6 +2075,11 @@ export interface Image extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: string; + /** + * Gets the HyperVGenerationType of the VirtualMachine created from the image. Possible values + * include: 'V1', 'V2' + */ + hyperVGeneration?: HyperVGenerationTypes; } /** @@ -1813,6 +2099,11 @@ export interface ImageUpdate extends UpdateResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: string; + /** + * Gets the HyperVGenerationType of the VirtualMachine created from the image. Possible values + * include: 'V1', 'V2' + */ + hyperVGeneration?: HyperVGenerationTypes; } /** @@ -2420,17 +2711,6 @@ export interface VirtualMachineScaleSetUpdateNetworkProfile { networkInterfaceConfigurations?: VirtualMachineScaleSetUpdateNetworkConfiguration[]; } -/** - * An interface representing SubResourceReadOnly. - */ -export interface SubResourceReadOnly extends BaseResource { - /** - * Resource Id - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; -} - /** * Describes a Virtual Machine Scale Set Extension. */ @@ -2492,6 +2772,32 @@ export interface VirtualMachineScaleSetExtensionProfile { extensions?: VirtualMachineScaleSetExtension[]; } +/** + * An interface representing TerminateNotificationProfile. + */ +export interface TerminateNotificationProfile { + /** + * Configurable length of time a Virtual Machine being deleted will have to potentially approve + * the Terminate Scheduled Event before the event is auto approved (timed out). The configuration + * must be specified in ISO 8601 format, the default value is 5 minutes (PT5M) + */ + notBeforeTimeout?: string; + /** + * Specifies whether the Terminate Scheduled event is enabled or disabled. + */ + enable?: boolean; +} + +/** + * An interface representing ScheduledEventsProfile. + */ +export interface ScheduledEventsProfile { + /** + * Specifies Terminate Scheduled Event related configurations. + */ + terminateNotificationProfile?: TerminateNotificationProfile; +} + /** * Describes a virtual machine scale set virtual machine profile. */ @@ -2504,12 +2810,6 @@ export interface VirtualMachineScaleSetVMProfile { * Specifies the storage settings for the virtual machine disks. */ storageProfile?: VirtualMachineScaleSetStorageProfile; - /** - * Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. - * For instance: whether the virtual machine has the capability to support attaching managed data - * disks with UltraSSD_LRS storage account type. - */ - additionalCapabilities?: AdditionalCapabilities; /** * Specifies properties of the network interfaces of the virtual machines in the scale set. */ @@ -2544,6 +2844,10 @@ export interface VirtualMachineScaleSetVMProfile { * 'Delete' */ evictionPolicy?: VirtualMachineEvictionPolicyTypes; + /** + * Specifies Scheduled Event related configurations. + */ + scheduledEventsProfile?: ScheduledEventsProfile; } /** @@ -2574,6 +2878,10 @@ export interface VirtualMachineScaleSetUpdateVMProfile { * The license type, which is for bring your own license scenario. */ licenseType?: string; + /** + * Specifies Scheduled Event related configurations. + */ + scheduledEventsProfile?: ScheduledEventsProfile; } /** @@ -2634,6 +2942,17 @@ export interface VirtualMachineScaleSet extends Resource { * Fault Domain count for each placement group. */ platformFaultDomainCount?: number; + /** + * Specifies information about the proximity placement group that the virtual machine scale set + * should be assigned to.

Minimum api-version: 2018-04-01. + */ + proximityPlacementGroup?: SubResource; + /** + * Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual + * Machine Scale Set. For instance: whether the Virtual Machines have the capability to support + * attaching managed data disks with UltraSSD_LRS storage account type. + */ + additionalCapabilities?: AdditionalCapabilities; /** * The identity of the virtual machine scale set, if configured. */ @@ -2691,6 +3010,12 @@ export interface VirtualMachineScaleSetUpdate extends UpdateResource { * machines. */ singlePlacementGroup?: boolean; + /** + * Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual + * Machine Scale Set. For instance: whether the Virtual Machines have the capability to support + * attaching managed data disks with UltraSSD_LRS storage account type. + */ + additionalCapabilities?: AdditionalCapabilities; /** * The identity of the virtual machine scale set, if configured. */ @@ -3540,6 +3865,22 @@ export interface ResourceSkuCapabilities { readonly value?: string; } +/** + * Describes The zonal capabilities of a SKU. + */ +export interface ResourceSkuZoneDetails { + /** + * The set of zones that the SKU is available in with the specified capabilities. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string[]; + /** + * A list of capabilities that are available for the SKU in the specified list of zones. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly capabilities?: ResourceSkuCapabilities[]; +} + /** * An interface representing ResourceSkuRestrictionInfo. */ @@ -3597,6 +3938,11 @@ export interface ResourceSkuLocationInfo { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly zones?: string[]; + /** + * Details of capabilities available to a SKU in specific zones. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly zoneDetails?: ResourceSkuZoneDetails[]; } /** @@ -4151,10 +4497,15 @@ export interface GalleryImage extends Resource { */ osType: OperatingSystemTypes; /** - * The allowed values for OS State are 'Generalized'. Possible values include: 'Generalized', - * 'Specialized' + * This property allows the user to specify whether the virtual machines created under this image + * are 'Generalized' or 'Specialized'. Possible values include: 'Generalized', 'Specialized' */ osState: OperatingSystemStateTypes; + /** + * The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values + * include: 'V1', 'V2' + */ + hyperVGeneration?: HyperVGeneration; /** * The end of life date of the gallery Image Definition. This property can be used for * decommissioning purposes. This property is updatable. @@ -4182,7 +4533,6 @@ export interface GalleryArtifactPublishingProfileBase { * updatable. */ targetRegions?: TargetRegion[]; - source: GalleryArtifactSource; } /** @@ -4216,6 +4566,17 @@ export interface GalleryImageVersionPublishingProfile extends GalleryArtifactPub storageAccountType?: StorageAccountType; } +/** + * The gallery artifact version source. + */ +export interface GalleryArtifactVersionSource { + /** + * The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, or user + * image. + */ + id: string; +} + /** * This is the disk image base class. */ @@ -4228,9 +4589,9 @@ export interface GalleryDiskImage { /** * The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Possible * values include: 'None', 'ReadOnly', 'ReadWrite' - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly hostCaching?: HostCaching; + hostCaching?: HostCaching; + source?: GalleryArtifactVersionSource; } /** @@ -4247,24 +4608,20 @@ export interface GalleryDataDiskImage extends GalleryDiskImage { * This property specifies the logical unit number of the data disk. This value is used to * identify data disks within the Virtual Machine and therefore must be unique for each data disk * attached to the Virtual Machine. - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly lun?: number; + lun: number; } /** - * This is the storage profile of a gallery Image Version. + * This is the storage profile of a Gallery Image Version. */ export interface GalleryImageVersionStorageProfile { - /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly osDiskImage?: GalleryOSDiskImage; + source?: GalleryArtifactVersionSource; + osDiskImage?: GalleryOSDiskImage; /** * A list of data disk images. - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly dataDiskImages?: GalleryDataDiskImage[]; + dataDiskImages?: GalleryDataDiskImage[]; } /** @@ -4315,7 +4672,7 @@ export interface ReplicationStatus { * Specifies information about the gallery Image Version that you want to create or update. */ export interface GalleryImageVersion extends Resource { - publishingProfile: GalleryImageVersionPublishingProfile; + publishingProfile?: GalleryImageVersionPublishingProfile; /** * The current state of the gallery Image Version. The provisioning state, which only appears in * the response. Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', @@ -4323,10 +4680,7 @@ export interface GalleryImageVersion extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState2; - /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly storageProfile?: GalleryImageVersionStorageProfile; + storageProfile: GalleryImageVersionStorageProfile; /** * **NOTE: This property will not be serialized. It can only be populated by the server.** */ @@ -4353,23 +4707,6 @@ export interface TargetRegion { storageAccountType?: StorageAccountType; } -/** - * The managed artifact. - */ -export interface ManagedArtifact { - /** - * The managed artifact id. - */ - id: string; -} - -/** - * The source image from which the Image Version is going to be created. - */ -export interface GalleryArtifactSource { - managedImage: ManagedArtifact; -} - /** * Properties to configure a custom container service cluster. */ @@ -4583,9 +4920,19 @@ export interface ContainerService extends Resource { /** * Optional Parameters. */ -export interface VirtualMachineExtensionImagesListVersionsOptionalParams extends msRest.RequestOptionsBase { +export interface DedicatedHostsGetOptionalParams extends msRest.RequestOptionsBase { /** - * The filter to apply on the operation. + * The expand expression to apply on the operation. Possible values include: 'instanceView' + */ + expand?: InstanceViewTypes; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineExtensionImagesListVersionsOptionalParams extends msRest.RequestOptionsBase { + /** + * The filter to apply on the operation. */ filter?: string; top?: number; @@ -4880,6 +5227,16 @@ export interface VirtualMachineScaleSetVMsReimageOptionalParams extends msRest.R vmScaleSetVMReimageInput?: VirtualMachineScaleSetVMReimageParameters; } +/** + * Optional Parameters. + */ +export interface VirtualMachineScaleSetVMsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. Possible values include: 'instanceView' + */ + expand?: InstanceViewTypes; +} + /** * Optional Parameters. */ @@ -4978,6 +5335,44 @@ export interface AvailabilitySetListResult extends Array { export interface VirtualMachineSizeListResult extends Array { } +/** + * @interface + * The List Proximity Placement Group operation response. + * @extends Array + */ +export interface ProximityPlacementGroupListResult extends Array { + /** + * The URI to fetch the next page of proximity placement groups. + */ + nextLink?: string; +} + +/** + * @interface + * The List Dedicated Host Group with resource group response. + * @extends Array + */ +export interface DedicatedHostGroupListResult extends Array { + /** + * The URI to fetch the next page of Dedicated Host Groups. Call ListNext() with this URI to + * fetch the next page of Dedicated Host Groups. + */ + nextLink?: string; +} + +/** + * @interface + * The list dedicated host operation response. + * @extends Array + */ +export interface DedicatedHostListResult extends Array { + /** + * The URI to fetch the next page of dedicated hosts. Call ListNext() with this URI to fetch the + * next page of dedicated hosts. + */ + nextLink?: string; +} + /** * @interface * The List Usages operation response. @@ -5110,13 +5505,13 @@ export interface RunCommandListResult extends Array { /** * @interface - * The Compute List Skus operation response. + * The List Resource Skus operation response. * @extends Array */ export interface ResourceSkusResult extends Array { /** - * The uri to fetch the next page of Compute Skus. Call ListNext() with this to fetch the next - * page of VMSS Skus. + * The URI to fetch the next page of Resource Skus. Call ListNext() with this URI to fetch the + * next page of Resource Skus */ nextLink?: string; } @@ -5198,6 +5593,14 @@ export interface ContainerServiceListResult extends Array { nextLink?: string; } +/** + * Defines values for HyperVGenerationTypes. + * Possible values include: 'V1', 'V2' + * @readonly + * @enum {string} + */ +export type HyperVGenerationTypes = 'V1' | 'V2'; + /** * Defines values for StatusLevelTypes. * Possible values include: 'Info', 'Warning', 'Error' @@ -5214,6 +5617,22 @@ export type StatusLevelTypes = 'Info' | 'Warning' | 'Error'; */ export type AvailabilitySetSkuTypes = 'Classic' | 'Aligned'; +/** + * Defines values for ProximityPlacementGroupType. + * Possible values include: 'Standard', 'Ultra' + * @readonly + * @enum {string} + */ +export type ProximityPlacementGroupType = 'Standard' | 'Ultra'; + +/** + * Defines values for DedicatedHostLicenseTypes. + * Possible values include: 'None', 'Windows_Server_Hybrid', 'Windows_Server_Perpetual' + * @readonly + * @enum {string} + */ +export type DedicatedHostLicenseTypes = 'None' | 'Windows_Server_Hybrid' | 'Windows_Server_Perpetual'; + /** * Defines values for OperatingSystemTypes. * Possible values include: 'Windows', 'Linux' @@ -5344,6 +5763,14 @@ export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAs */ export type MaintenanceOperationResultCodeTypes = 'None' | 'RetryLater' | 'MaintenanceAborted' | 'MaintenanceCompleted'; +/** + * Defines values for HyperVGenerationType. + * Possible values include: 'V1', 'V2' + * @readonly + * @enum {string} + */ +export type HyperVGenerationType = 'V1' | 'V2'; + /** * Defines values for UpgradeMode. * Possible values include: 'Automatic', 'Manual', 'Rolling' @@ -5781,6 +6208,426 @@ export type AvailabilitySetsListNextResponse = AvailabilitySetListResult & { }; }; +/** + * Contains response data for the createOrUpdate operation. + */ +export type ProximityPlacementGroupsCreateOrUpdateResponse = ProximityPlacementGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProximityPlacementGroup; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type ProximityPlacementGroupsUpdateResponse = ProximityPlacementGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProximityPlacementGroup; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ProximityPlacementGroupsGetResponse = ProximityPlacementGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProximityPlacementGroup; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type ProximityPlacementGroupsListBySubscriptionResponse = ProximityPlacementGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProximityPlacementGroupListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type ProximityPlacementGroupsListByResourceGroupResponse = ProximityPlacementGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProximityPlacementGroupListResult; + }; +}; + +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type ProximityPlacementGroupsListBySubscriptionNextResponse = ProximityPlacementGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProximityPlacementGroupListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type ProximityPlacementGroupsListByResourceGroupNextResponse = ProximityPlacementGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProximityPlacementGroupListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DedicatedHostGroupsCreateOrUpdateResponse = DedicatedHostGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroup; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type DedicatedHostGroupsUpdateResponse = DedicatedHostGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroup; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DedicatedHostGroupsGetResponse = DedicatedHostGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroup; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type DedicatedHostGroupsListByResourceGroupResponse = DedicatedHostGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroupListResult; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type DedicatedHostGroupsListBySubscriptionResponse = DedicatedHostGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroupListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type DedicatedHostGroupsListByResourceGroupNextResponse = DedicatedHostGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroupListResult; + }; +}; + +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type DedicatedHostGroupsListBySubscriptionNextResponse = DedicatedHostGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostGroupListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DedicatedHostsCreateOrUpdateResponse = DedicatedHost & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHost; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type DedicatedHostsUpdateResponse = DedicatedHost & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHost; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DedicatedHostsGetResponse = DedicatedHost & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHost; + }; +}; + +/** + * Contains response data for the listByHostGroup operation. + */ +export type DedicatedHostsListByHostGroupResponse = DedicatedHostListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type DedicatedHostsBeginCreateOrUpdateResponse = DedicatedHost & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHost; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type DedicatedHostsBeginUpdateResponse = DedicatedHost & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHost; + }; +}; + +/** + * Contains response data for the listByHostGroupNext operation. + */ +export type DedicatedHostsListByHostGroupNextResponse = DedicatedHostListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DedicatedHostListResult; + }; +}; + /** * Contains response data for the get operation. */ diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index 76794d65e587..903dfadb24a7 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -233,6 +233,13 @@ export const AvailabilitySet: msRest.CompositeMapper = { } } }, + proximityPlacementGroup: { + serializedName: "properties.proximityPlacementGroup", + type: { + name: "Composite", + className: "SubResource" + } + }, statuses: { readOnly: true, serializedName: "properties.statuses", @@ -309,6 +316,13 @@ export const AvailabilitySetUpdate: msRest.CompositeMapper = { } } }, + proximityPlacementGroup: { + serializedName: "properties.proximityPlacementGroup", + type: { + name: "Composite", + className: "SubResource" + } + }, statuses: { readOnly: true, serializedName: "properties.statuses", @@ -333,6 +347,430 @@ export const AvailabilitySetUpdate: msRest.CompositeMapper = { } }; +export const ProximityPlacementGroup: msRest.CompositeMapper = { + serializedName: "ProximityPlacementGroup", + type: { + name: "Composite", + className: "ProximityPlacementGroup", + modelProperties: { + ...Resource.type.modelProperties, + proximityPlacementGroupType: { + serializedName: "properties.proximityPlacementGroupType", + type: { + name: "String" + } + }, + virtualMachines: { + readOnly: true, + serializedName: "properties.virtualMachines", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + virtualMachineScaleSets: { + readOnly: true, + serializedName: "properties.virtualMachineScaleSets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + availabilitySets: { + readOnly: true, + serializedName: "properties.availabilitySets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + } + } + } +}; + +export const ProximityPlacementGroupUpdate: msRest.CompositeMapper = { + serializedName: "ProximityPlacementGroupUpdate", + type: { + name: "Composite", + className: "ProximityPlacementGroupUpdate", + modelProperties: { + ...UpdateResource.type.modelProperties + } + } +}; + +export const SubResourceReadOnly: msRest.CompositeMapper = { + serializedName: "SubResourceReadOnly", + type: { + name: "Composite", + className: "SubResourceReadOnly", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const DedicatedHostGroup: msRest.CompositeMapper = { + serializedName: "DedicatedHostGroup", + type: { + name: "Composite", + className: "DedicatedHostGroup", + modelProperties: { + ...Resource.type.modelProperties, + platformFaultDomainCount: { + required: true, + serializedName: "properties.platformFaultDomainCount", + constraints: { + InclusiveMaximum: 3, + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + hosts: { + readOnly: true, + serializedName: "properties.hosts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } + } + }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const DedicatedHostGroupUpdate: msRest.CompositeMapper = { + serializedName: "DedicatedHostGroupUpdate", + type: { + name: "Composite", + className: "DedicatedHostGroupUpdate", + modelProperties: { + ...UpdateResource.type.modelProperties, + platformFaultDomainCount: { + required: true, + serializedName: "properties.platformFaultDomainCount", + constraints: { + InclusiveMaximum: 3, + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + hosts: { + readOnly: true, + serializedName: "properties.hosts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } + } + }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const DedicatedHostAllocatableVM: msRest.CompositeMapper = { + serializedName: "DedicatedHostAllocatableVM", + type: { + name: "Composite", + className: "DedicatedHostAllocatableVM", + modelProperties: { + vmSize: { + serializedName: "vmSize", + type: { + name: "String" + } + }, + count: { + serializedName: "count", + type: { + name: "Number" + } + } + } + } +}; + +export const DedicatedHostAvailableCapacity: msRest.CompositeMapper = { + serializedName: "DedicatedHostAvailableCapacity", + type: { + name: "Composite", + className: "DedicatedHostAvailableCapacity", + modelProperties: { + allocatableVMs: { + serializedName: "allocatableVMs", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DedicatedHostAllocatableVM" + } + } + } + } + } + } +}; + +export const DedicatedHostInstanceView: msRest.CompositeMapper = { + serializedName: "DedicatedHostInstanceView", + type: { + name: "Composite", + className: "DedicatedHostInstanceView", + modelProperties: { + assetId: { + readOnly: true, + serializedName: "assetId", + type: { + name: "String" + } + }, + availableCapacity: { + serializedName: "availableCapacity", + type: { + name: "Composite", + className: "DedicatedHostAvailableCapacity" + } + }, + statuses: { + serializedName: "statuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } + } + } + } + } +}; + +export const DedicatedHost: msRest.CompositeMapper = { + serializedName: "DedicatedHost", + type: { + name: "Composite", + className: "DedicatedHost", + modelProperties: { + ...Resource.type.modelProperties, + platformFaultDomain: { + serializedName: "properties.platformFaultDomain", + constraints: { + InclusiveMaximum: 2, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + autoReplaceOnFailure: { + serializedName: "properties.autoReplaceOnFailure", + type: { + name: "Boolean" + } + }, + hostId: { + readOnly: true, + serializedName: "properties.hostId", + type: { + name: "String" + } + }, + virtualMachines: { + readOnly: true, + serializedName: "properties.virtualMachines", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } + } + }, + licenseType: { + serializedName: "properties.licenseType", + type: { + name: "Enum", + allowedValues: [ + "None", + "Windows_Server_Hybrid", + "Windows_Server_Perpetual" + ] + } + }, + provisioningTime: { + readOnly: true, + serializedName: "properties.provisioningTime", + type: { + name: "DateTime" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + instanceView: { + readOnly: true, + serializedName: "properties.instanceView", + type: { + name: "Composite", + className: "DedicatedHostInstanceView" + } + }, + sku: { + required: true, + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +export const DedicatedHostUpdate: msRest.CompositeMapper = { + serializedName: "DedicatedHostUpdate", + type: { + name: "Composite", + className: "DedicatedHostUpdate", + modelProperties: { + ...UpdateResource.type.modelProperties, + platformFaultDomain: { + serializedName: "properties.platformFaultDomain", + constraints: { + InclusiveMaximum: 2, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + autoReplaceOnFailure: { + serializedName: "properties.autoReplaceOnFailure", + type: { + name: "Boolean" + } + }, + hostId: { + readOnly: true, + serializedName: "properties.hostId", + type: { + name: "String" + } + }, + virtualMachines: { + readOnly: true, + serializedName: "properties.virtualMachines", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } + } + }, + licenseType: { + serializedName: "properties.licenseType", + type: { + name: "Enum", + allowedValues: [ + "None", + "Windows_Server_Hybrid", + "Windows_Server_Perpetual" + ] + } + }, + provisioningTime: { + readOnly: true, + serializedName: "properties.provisioningTime", + type: { + name: "DateTime" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + instanceView: { + readOnly: true, + serializedName: "properties.instanceView", + type: { + name: "Composite", + className: "DedicatedHostInstanceView" + } + } + } + } +}; + export const VirtualMachineSize: msRest.CompositeMapper = { serializedName: "VirtualMachineSize", type: { @@ -1311,6 +1749,12 @@ export const DataDisk: msRest.CompositeMapper = { name: "Composite", className: "ManagedDiskParameters" } + }, + toBeDetached: { + serializedName: "toBeDetached", + type: { + name: "Boolean" + } } } } @@ -2082,6 +2526,12 @@ export const VirtualMachineInstanceView: msRest.CompositeMapper = { name: "String" } }, + hyperVGeneration: { + serializedName: "hyperVGeneration", + type: { + name: "String" + } + }, rdpThumbPrint: { serializedName: "rdpThumbPrint", type: { @@ -2212,6 +2662,20 @@ export const VirtualMachine: msRest.CompositeMapper = { className: "SubResource" } }, + proximityPlacementGroup: { + serializedName: "properties.proximityPlacementGroup", + type: { + name: "Composite", + className: "SubResource" + } + }, + host: { + serializedName: "properties.host", + type: { + name: "Composite", + className: "SubResource" + } + }, provisioningState: { readOnly: true, serializedName: "properties.provisioningState", @@ -2338,6 +2802,20 @@ export const VirtualMachineUpdate: msRest.CompositeMapper = { className: "SubResource" } }, + proximityPlacementGroup: { + serializedName: "properties.proximityPlacementGroup", + type: { + name: "Composite", + className: "SubResource" + } + }, + host: { + serializedName: "properties.host", + type: { + name: "Composite", + className: "SubResource" + } + }, provisioningState: { readOnly: true, serializedName: "properties.provisioningState", @@ -2688,6 +3166,12 @@ export const Image: msRest.CompositeMapper = { type: { name: "String" } + }, + hyperVGeneration: { + serializedName: "properties.hyperVGeneration", + type: { + name: "String" + } } } } @@ -2720,6 +3204,12 @@ export const ImageUpdate: msRest.CompositeMapper = { type: { name: "String" } + }, + hyperVGeneration: { + serializedName: "properties.hyperVGeneration", + type: { + name: "String" + } } } } @@ -3692,30 +4182,13 @@ export const VirtualMachineScaleSetUpdateNetworkProfile: msRest.CompositeMapper networkInterfaceConfigurations: { serializedName: "networkInterfaceConfigurations", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkConfiguration" - } - } - } - } - } - } -}; - -export const SubResourceReadOnly: msRest.CompositeMapper = { - serializedName: "SubResourceReadOnly", - type: { - name: "Composite", - className: "SubResourceReadOnly", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateNetworkConfiguration" + } + } } } } @@ -3821,6 +4294,45 @@ export const VirtualMachineScaleSetExtensionProfile: msRest.CompositeMapper = { } }; +export const TerminateNotificationProfile: msRest.CompositeMapper = { + serializedName: "TerminateNotificationProfile", + type: { + name: "Composite", + className: "TerminateNotificationProfile", + modelProperties: { + notBeforeTimeout: { + serializedName: "notBeforeTimeout", + type: { + name: "String" + } + }, + enable: { + serializedName: "enable", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ScheduledEventsProfile: msRest.CompositeMapper = { + serializedName: "ScheduledEventsProfile", + type: { + name: "Composite", + className: "ScheduledEventsProfile", + modelProperties: { + terminateNotificationProfile: { + serializedName: "terminateNotificationProfile", + type: { + name: "Composite", + className: "TerminateNotificationProfile" + } + } + } + } +}; + export const VirtualMachineScaleSetVMProfile: msRest.CompositeMapper = { serializedName: "VirtualMachineScaleSetVMProfile", type: { @@ -3841,13 +4353,6 @@ export const VirtualMachineScaleSetVMProfile: msRest.CompositeMapper = { className: "VirtualMachineScaleSetStorageProfile" } }, - additionalCapabilities: { - serializedName: "additionalCapabilities", - type: { - name: "Composite", - className: "AdditionalCapabilities" - } - }, networkProfile: { serializedName: "networkProfile", type: { @@ -3886,6 +4391,13 @@ export const VirtualMachineScaleSetVMProfile: msRest.CompositeMapper = { type: { name: "String" } + }, + scheduledEventsProfile: { + serializedName: "scheduledEventsProfile", + type: { + name: "Composite", + className: "ScheduledEventsProfile" + } } } } @@ -3937,6 +4449,13 @@ export const VirtualMachineScaleSetUpdateVMProfile: msRest.CompositeMapper = { type: { name: "String" } + }, + scheduledEventsProfile: { + serializedName: "scheduledEventsProfile", + type: { + name: "Composite", + className: "ScheduledEventsProfile" + } } } } @@ -4021,6 +4540,20 @@ export const VirtualMachineScaleSet: msRest.CompositeMapper = { name: "Number" } }, + proximityPlacementGroup: { + serializedName: "properties.proximityPlacementGroup", + type: { + name: "Composite", + className: "SubResource" + } + }, + additionalCapabilities: { + serializedName: "properties.additionalCapabilities", + type: { + name: "Composite", + className: "AdditionalCapabilities" + } + }, identity: { serializedName: "identity", type: { @@ -4123,6 +4656,13 @@ export const VirtualMachineScaleSetUpdate: msRest.CompositeMapper = { name: "Boolean" } }, + additionalCapabilities: { + serializedName: "properties.additionalCapabilities", + type: { + name: "Composite", + className: "AdditionalCapabilities" + } + }, identity: { serializedName: "identity", type: { @@ -5549,6 +6089,41 @@ export const ResourceSkuCapabilities: msRest.CompositeMapper = { } }; +export const ResourceSkuZoneDetails: msRest.CompositeMapper = { + serializedName: "ResourceSkuZoneDetails", + type: { + name: "Composite", + className: "ResourceSkuZoneDetails", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + capabilities: { + readOnly: true, + serializedName: "capabilities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuCapabilities" + } + } + } + } + } + } +}; + export const ResourceSkuRestrictionInfo: msRest.CompositeMapper = { serializedName: "ResourceSkuRestrictionInfo", type: { @@ -5659,6 +6234,19 @@ export const ResourceSkuLocationInfo: msRest.CompositeMapper = { } } } + }, + zoneDetails: { + readOnly: true, + serializedName: "zoneDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuZoneDetails" + } + } + } } } } @@ -6596,6 +7184,12 @@ export const GalleryImage: msRest.CompositeMapper = { ] } }, + hyperVGeneration: { + serializedName: "properties.hyperVGeneration", + type: { + name: "String" + } + }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { @@ -6659,14 +7253,6 @@ export const GalleryArtifactPublishingProfileBase: msRest.CompositeMapper = { } } } - }, - source: { - required: true, - serializedName: "source", - type: { - name: "Composite", - className: "GalleryArtifactSource" - } } } } @@ -6714,6 +7300,23 @@ export const GalleryImageVersionPublishingProfile: msRest.CompositeMapper = { } }; +export const GalleryArtifactVersionSource: msRest.CompositeMapper = { + serializedName: "GalleryArtifactVersionSource", + type: { + name: "Composite", + className: "GalleryArtifactVersionSource", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + export const GalleryDiskImage: msRest.CompositeMapper = { serializedName: "GalleryDiskImage", type: { @@ -6728,7 +7331,6 @@ export const GalleryDiskImage: msRest.CompositeMapper = { } }, hostCaching: { - readOnly: true, serializedName: "hostCaching", type: { name: "Enum", @@ -6738,6 +7340,13 @@ export const GalleryDiskImage: msRest.CompositeMapper = { "ReadWrite" ] } + }, + source: { + serializedName: "source", + type: { + name: "Composite", + className: "GalleryArtifactVersionSource" + } } } } @@ -6762,7 +7371,7 @@ export const GalleryDataDiskImage: msRest.CompositeMapper = { modelProperties: { ...GalleryDiskImage.type.modelProperties, lun: { - readOnly: true, + required: true, serializedName: "lun", type: { name: "Number" @@ -6778,8 +7387,14 @@ export const GalleryImageVersionStorageProfile: msRest.CompositeMapper = { name: "Composite", className: "GalleryImageVersionStorageProfile", modelProperties: { + source: { + serializedName: "source", + type: { + name: "Composite", + className: "GalleryArtifactVersionSource" + } + }, osDiskImage: { - readOnly: true, serializedName: "osDiskImage", type: { name: "Composite", @@ -6787,7 +7402,6 @@ export const GalleryImageVersionStorageProfile: msRest.CompositeMapper = { } }, dataDiskImages: { - readOnly: true, serializedName: "dataDiskImages", type: { name: "Sequence", @@ -6879,7 +7493,6 @@ export const GalleryImageVersion: msRest.CompositeMapper = { modelProperties: { ...Resource.type.modelProperties, publishingProfile: { - required: true, serializedName: "properties.publishingProfile", type: { name: "Composite", @@ -6894,7 +7507,7 @@ export const GalleryImageVersion: msRest.CompositeMapper = { } }, storageProfile: { - readOnly: true, + required: true, serializedName: "properties.storageProfile", type: { name: "Composite", @@ -6942,41 +7555,6 @@ export const TargetRegion: msRest.CompositeMapper = { } }; -export const ManagedArtifact: msRest.CompositeMapper = { - serializedName: "ManagedArtifact", - type: { - name: "Composite", - className: "ManagedArtifact", - modelProperties: { - id: { - required: true, - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const GalleryArtifactSource: msRest.CompositeMapper = { - serializedName: "GalleryArtifactSource", - type: { - name: "Composite", - className: "GalleryArtifactSource", - modelProperties: { - managedImage: { - required: true, - serializedName: "managedImage", - type: { - name: "Composite", - className: "ManagedArtifact" - } - } - } - } -}; - export const ContainerServiceCustomProfile: msRest.CompositeMapper = { serializedName: "ContainerServiceCustomProfile", type: { @@ -7418,6 +7996,93 @@ export const VirtualMachineSizeListResult: msRest.CompositeMapper = { } }; +export const ProximityPlacementGroupListResult: msRest.CompositeMapper = { + serializedName: "ProximityPlacementGroupListResult", + type: { + name: "Composite", + className: "ProximityPlacementGroupListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProximityPlacementGroup" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DedicatedHostGroupListResult: msRest.CompositeMapper = { + serializedName: "DedicatedHostGroupListResult", + type: { + name: "Composite", + className: "DedicatedHostGroupListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DedicatedHostGroup" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DedicatedHostListResult: msRest.CompositeMapper = { + serializedName: "DedicatedHostListResult", + type: { + name: "Composite", + className: "DedicatedHostListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DedicatedHost" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const ListUsagesResult: msRest.CompositeMapper = { serializedName: "ListUsagesResult", type: { diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index 157b4c501e48..5f55768a4e3d 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.ts @@ -38,7 +38,7 @@ export const apiVersion1: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2017-09-01', + defaultValue: '2019-04-01', type: { name: "String" } @@ -57,6 +57,18 @@ export const apiVersion2: msRest.OperationQueryParameter = { } }; export const apiVersion3: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2019-07-01', + type: { + name: "String" + } + } +}; +export const apiVersion4: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, @@ -116,7 +128,10 @@ export const expand0: msRest.OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" + name: "Enum", + allowedValues: [ + "instanceView" + ] } } }; @@ -128,10 +143,7 @@ export const expand1: msRest.OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "Enum", - allowedValues: [ - "instanceView" - ] + name: "String" } } }; @@ -177,6 +189,26 @@ export const galleryName: msRest.OperationURLParameter = { } } }; +export const hostGroupName: msRest.OperationURLParameter = { + parameterPath: "hostGroupName", + mapper: { + required: true, + serializedName: "hostGroupName", + type: { + name: "String" + } + } +}; +export const hostName: msRest.OperationURLParameter = { + parameterPath: "hostName", + mapper: { + required: true, + serializedName: "hostName", + type: { + name: "String" + } + } +}; export const imageName: msRest.OperationURLParameter = { parameterPath: "imageName", mapper: { @@ -263,6 +295,16 @@ export const platformUpdateDomain: msRest.OperationQueryParameter = { } } }; +export const proximityPlacementGroupName: msRest.OperationURLParameter = { + parameterPath: "proximityPlacementGroupName", + mapper: { + required: true, + serializedName: "proximityPlacementGroupName", + type: { + name: "String" + } + } +}; export const publisherName: msRest.OperationURLParameter = { parameterPath: "publisherName", mapper: { diff --git a/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts b/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts new file mode 100644 index 000000000000..45468164fc11 --- /dev/null +++ b/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts @@ -0,0 +1,169 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * 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, + AvailabilitySet, + AvailabilitySetUpdate, + BaseResource, + BootDiagnostics, + BootDiagnosticsInstanceView, + CloudError, + ContainerService, + ContainerServiceAgentPoolProfile, + ContainerServiceCustomProfile, + ContainerServiceDiagnosticsProfile, + ContainerServiceLinuxProfile, + ContainerServiceMasterProfile, + ContainerServiceOrchestratorProfile, + ContainerServiceServicePrincipalProfile, + ContainerServiceSshConfiguration, + ContainerServiceSshPublicKey, + ContainerServiceVMDiagnostics, + ContainerServiceWindowsProfile, + CreationData, + DataDisk, + DataDiskImage, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostUpdate, + DiagnosticsProfile, + DiffDiskSettings, + Disallowed, + Disk, + DiskEncryptionSettings, + DiskInstanceView, + DiskSku, + EncryptionSettingsCollection, + EncryptionSettingsElement, + Gallery, + GalleryArtifactPublishingProfileBase, + GalleryArtifactVersionSource, + GalleryDataDiskImage, + GalleryDiskImage, + GalleryIdentifier, + GalleryImage, + GalleryImageIdentifier, + GalleryImageVersion, + GalleryImageVersionPublishingProfile, + GalleryImageVersionStorageProfile, + GalleryOSDiskImage, + HardwareProfile, + Image, + ImageDataDisk, + ImageDiskReference, + ImageOSDisk, + ImagePurchasePlan, + ImageReference, + ImageStorageProfile, + ImageUpdate, + InnerError, + InstanceViewStatus, + KeyVaultAndKeyReference, + KeyVaultAndSecretReference, + KeyVaultKeyReference, + KeyVaultSecretReference, + LinuxConfiguration, + MaintenanceRedeployStatus, + ManagedDiskParameters, + NetworkInterfaceReference, + NetworkProfile, + OSDisk, + OSDiskImage, + OSProfile, + Plan, + ProximityPlacementGroup, + ProximityPlacementGroupListResult, + ProximityPlacementGroupUpdate, + PurchasePlan, + RecommendedMachineConfiguration, + RegionalReplicationStatus, + ReplicationStatus, + Resource, + ResourceRange, + RollingUpgradePolicy, + RollingUpgradeProgressInfo, + RollingUpgradeRunningStatus, + RollingUpgradeStatusInfo, + ScheduledEventsProfile, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SshConfiguration, + SshPublicKey, + StorageProfile, + SubResource, + SubResourceReadOnly, + TargetRegion, + TerminateNotificationProfile, + UpdateResource, + UpgradePolicy, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineExtensionUpdate, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageResource, + VirtualMachineInstanceView, + VirtualMachineScaleSet, + VirtualMachineScaleSetDataDisk, + VirtualMachineScaleSetExtension, + VirtualMachineScaleSetExtensionProfile, + VirtualMachineScaleSetIdentity, + VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, + VirtualMachineScaleSetIPConfiguration, + VirtualMachineScaleSetIpTag, + VirtualMachineScaleSetManagedDiskParameters, + VirtualMachineScaleSetNetworkConfiguration, + VirtualMachineScaleSetNetworkConfigurationDnsSettings, + VirtualMachineScaleSetNetworkProfile, + VirtualMachineScaleSetOSDisk, + VirtualMachineScaleSetOSProfile, + VirtualMachineScaleSetPublicIPAddressConfiguration, + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, + VirtualMachineScaleSetStorageProfile, + VirtualMachineScaleSetUpdate, + VirtualMachineScaleSetUpdateIPConfiguration, + VirtualMachineScaleSetUpdateNetworkConfiguration, + VirtualMachineScaleSetUpdateNetworkProfile, + VirtualMachineScaleSetUpdateOSDisk, + VirtualMachineScaleSetUpdateOSProfile, + VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, + VirtualMachineScaleSetUpdateStorageProfile, + VirtualMachineScaleSetUpdateVMProfile, + VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMInstanceView, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProfile, + VirtualMachineScaleSetVMProtectionPolicy, + VirtualMachineUpdate, + WindowsConfiguration, + WinRMConfiguration, + WinRMListener +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/resourceSkusMappers.ts b/sdk/compute/arm-compute/src/models/resourceSkusMappers.ts index 86ebcf340872..ff328d2b9d4d 100644 --- a/sdk/compute/arm-compute/src/models/resourceSkusMappers.ts +++ b/sdk/compute/arm-compute/src/models/resourceSkusMappers.ts @@ -15,5 +15,6 @@ export { ResourceSkuLocationInfo, ResourceSkuRestrictionInfo, ResourceSkuRestrictions, - ResourceSkusResult + ResourceSkusResult, + ResourceSkuZoneDetails } from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/snapshotsMappers.ts b/sdk/compute/arm-compute/src/models/snapshotsMappers.ts index 77370b79c1d6..846f4b996f67 100644 --- a/sdk/compute/arm-compute/src/models/snapshotsMappers.ts +++ b/sdk/compute/arm-compute/src/models/snapshotsMappers.ts @@ -36,6 +36,13 @@ export { CreationData, DataDisk, DataDiskImage, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, @@ -47,7 +54,7 @@ export { EncryptionSettingsElement, Gallery, GalleryArtifactPublishingProfileBase, - GalleryArtifactSource, + GalleryArtifactVersionSource, GalleryDataDiskImage, GalleryDiskImage, GalleryIdentifier, @@ -75,7 +82,6 @@ export { KeyVaultSecretReference, LinuxConfiguration, MaintenanceRedeployStatus, - ManagedArtifact, ManagedDiskParameters, NetworkInterfaceReference, NetworkProfile, @@ -83,6 +89,8 @@ export { OSDiskImage, OSProfile, Plan, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -93,6 +101,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + ScheduledEventsProfile, Sku, Snapshot, SnapshotList, @@ -105,6 +114,7 @@ export { SubResource, SubResourceReadOnly, TargetRegion, + TerminateNotificationProfile, UpdateResource, UpgradePolicy, VaultCertificate, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts index dfab46557b41..75f71dc2bcd0 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts @@ -35,6 +35,13 @@ export { CreationData, DataDisk, DataDiskImage, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, @@ -46,7 +53,7 @@ export { EncryptionSettingsElement, Gallery, GalleryArtifactPublishingProfileBase, - GalleryArtifactSource, + GalleryArtifactVersionSource, GalleryDataDiskImage, GalleryDiskImage, GalleryIdentifier, @@ -73,7 +80,6 @@ export { KeyVaultSecretReference, LinuxConfiguration, MaintenanceRedeployStatus, - ManagedArtifact, ManagedDiskParameters, NetworkInterfaceReference, NetworkProfile, @@ -81,6 +87,8 @@ export { OSDiskImage, OSProfile, Plan, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -91,6 +99,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + ScheduledEventsProfile, Sku, Snapshot, SnapshotSku, @@ -101,6 +110,7 @@ export { SubResource, SubResourceReadOnly, TargetRegion, + TerminateNotificationProfile, UpdateResource, UpgradePolicy, VaultCertificate, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts index 6d15f114c81d..5e2d34952fc3 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts @@ -35,6 +35,13 @@ export { CreationData, DataDisk, DataDiskImage, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, @@ -46,7 +53,7 @@ export { EncryptionSettingsElement, Gallery, GalleryArtifactPublishingProfileBase, - GalleryArtifactSource, + GalleryArtifactVersionSource, GalleryDataDiskImage, GalleryDiskImage, GalleryIdentifier, @@ -73,7 +80,6 @@ export { KeyVaultSecretReference, LinuxConfiguration, MaintenanceRedeployStatus, - ManagedArtifact, ManagedDiskParameters, NetworkInterfaceReference, NetworkProfile, @@ -81,6 +87,8 @@ export { OSDiskImage, OSProfile, Plan, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -91,6 +99,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + ScheduledEventsProfile, Sku, Snapshot, SnapshotSku, @@ -101,6 +110,7 @@ export { SubResource, SubResourceReadOnly, TargetRegion, + TerminateNotificationProfile, UpdateResource, UpgradePolicy, VaultCertificate, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts index dfab46557b41..75f71dc2bcd0 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts @@ -35,6 +35,13 @@ export { CreationData, DataDisk, DataDiskImage, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, @@ -46,7 +53,7 @@ export { EncryptionSettingsElement, Gallery, GalleryArtifactPublishingProfileBase, - GalleryArtifactSource, + GalleryArtifactVersionSource, GalleryDataDiskImage, GalleryDiskImage, GalleryIdentifier, @@ -73,7 +80,6 @@ export { KeyVaultSecretReference, LinuxConfiguration, MaintenanceRedeployStatus, - ManagedArtifact, ManagedDiskParameters, NetworkInterfaceReference, NetworkProfile, @@ -81,6 +87,8 @@ export { OSDiskImage, OSProfile, Plan, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -91,6 +99,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + ScheduledEventsProfile, Sku, Snapshot, SnapshotSku, @@ -101,6 +110,7 @@ export { SubResource, SubResourceReadOnly, TargetRegion, + TerminateNotificationProfile, UpdateResource, UpgradePolicy, VaultCertificate, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts index cae9dd992f90..5c9432d1bca8 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts @@ -35,6 +35,13 @@ export { CreationData, DataDisk, DataDiskImage, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, @@ -46,7 +53,7 @@ export { EncryptionSettingsElement, Gallery, GalleryArtifactPublishingProfileBase, - GalleryArtifactSource, + GalleryArtifactVersionSource, GalleryDataDiskImage, GalleryDiskImage, GalleryIdentifier, @@ -73,7 +80,6 @@ export { KeyVaultSecretReference, LinuxConfiguration, MaintenanceRedeployStatus, - ManagedArtifact, ManagedDiskParameters, NetworkInterfaceReference, NetworkProfile, @@ -81,6 +87,8 @@ export { OSDiskImage, OSProfile, Plan, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -91,6 +99,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + ScheduledEventsProfile, Sku, Snapshot, SnapshotSku, @@ -101,6 +110,7 @@ export { SubResource, SubResourceReadOnly, TargetRegion, + TerminateNotificationProfile, UpdateResource, UpgradePolicy, VaultCertificate, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts index dfab46557b41..75f71dc2bcd0 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts @@ -35,6 +35,13 @@ export { CreationData, DataDisk, DataDiskImage, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, @@ -46,7 +53,7 @@ export { EncryptionSettingsElement, Gallery, GalleryArtifactPublishingProfileBase, - GalleryArtifactSource, + GalleryArtifactVersionSource, GalleryDataDiskImage, GalleryDiskImage, GalleryIdentifier, @@ -73,7 +80,6 @@ export { KeyVaultSecretReference, LinuxConfiguration, MaintenanceRedeployStatus, - ManagedArtifact, ManagedDiskParameters, NetworkInterfaceReference, NetworkProfile, @@ -81,6 +87,8 @@ export { OSDiskImage, OSProfile, Plan, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -91,6 +99,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + ScheduledEventsProfile, Sku, Snapshot, SnapshotSku, @@ -101,6 +110,7 @@ export { SubResource, SubResourceReadOnly, TargetRegion, + TerminateNotificationProfile, UpdateResource, UpgradePolicy, VaultCertificate, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts index 3d8a305c5d94..e598541fa7fd 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts @@ -35,6 +35,13 @@ export { CreationData, DataDisk, DataDiskImage, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, @@ -46,7 +53,7 @@ export { EncryptionSettingsElement, Gallery, GalleryArtifactPublishingProfileBase, - GalleryArtifactSource, + GalleryArtifactVersionSource, GalleryDataDiskImage, GalleryDiskImage, GalleryIdentifier, @@ -73,7 +80,6 @@ export { KeyVaultSecretReference, LinuxConfiguration, MaintenanceRedeployStatus, - ManagedArtifact, ManagedDiskParameters, NetworkInterfaceReference, NetworkProfile, @@ -81,6 +87,8 @@ export { OSDiskImage, OSProfile, Plan, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -94,6 +102,7 @@ export { RunCommandInput, RunCommandInputParameter, RunCommandResult, + ScheduledEventsProfile, Sku, Snapshot, SnapshotSku, @@ -104,6 +113,7 @@ export { SubResource, SubResourceReadOnly, TargetRegion, + TerminateNotificationProfile, UpdateResource, UpgradePolicy, VaultCertificate, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts index 9e55ea9e679c..fb063ed15407 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts @@ -35,6 +35,13 @@ export { CreationData, DataDisk, DataDiskImage, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, @@ -46,7 +53,7 @@ export { EncryptionSettingsElement, Gallery, GalleryArtifactPublishingProfileBase, - GalleryArtifactSource, + GalleryArtifactVersionSource, GalleryDataDiskImage, GalleryDiskImage, GalleryIdentifier, @@ -73,7 +80,6 @@ export { KeyVaultSecretReference, LinuxConfiguration, MaintenanceRedeployStatus, - ManagedArtifact, ManagedDiskParameters, NetworkInterfaceReference, NetworkProfile, @@ -81,6 +87,8 @@ export { OSDiskImage, OSProfile, Plan, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RecoveryWalkResponse, @@ -93,6 +101,7 @@ export { RollingUpgradeProgressInfo, RollingUpgradeRunningStatus, RollingUpgradeStatusInfo, + ScheduledEventsProfile, Sku, Snapshot, SnapshotSku, @@ -103,6 +112,7 @@ export { SubResource, SubResourceReadOnly, TargetRegion, + TerminateNotificationProfile, UpdateResource, UpgradeOperationHistoricalStatusInfo, UpgradeOperationHistoricalStatusInfoProperties, @@ -172,6 +182,7 @@ export { VirtualMachineScaleSetVMReimageParameters, VirtualMachineStatusCodeCount, VirtualMachineUpdate, + VMScaleSetConvertToSinglePlacementGroupInput, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts index ea80fe8b1d31..e3833cfa8045 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts @@ -35,6 +35,13 @@ export { CreationData, DataDisk, DataDiskImage, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, @@ -46,7 +53,7 @@ export { EncryptionSettingsElement, Gallery, GalleryArtifactPublishingProfileBase, - GalleryArtifactSource, + GalleryArtifactVersionSource, GalleryDataDiskImage, GalleryDiskImage, GalleryIdentifier, @@ -73,7 +80,6 @@ export { KeyVaultSecretReference, LinuxConfiguration, MaintenanceRedeployStatus, - ManagedArtifact, ManagedDiskParameters, NetworkInterfaceReference, NetworkProfile, @@ -81,6 +87,8 @@ export { OSDiskImage, OSProfile, Plan, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -94,6 +102,7 @@ export { RunCommandInput, RunCommandInputParameter, RunCommandResult, + ScheduledEventsProfile, Sku, Snapshot, SnapshotSku, @@ -104,6 +113,7 @@ export { SubResource, SubResourceReadOnly, TargetRegion, + TerminateNotificationProfile, UpdateResource, UpgradePolicy, VaultCertificate, diff --git a/sdk/compute/arm-compute/src/operations/containerServices.ts b/sdk/compute/arm-compute/src/operations/containerServices.ts index fb409253f04a..a0b681fc5406 100644 --- a/sdk/compute/arm-compute/src/operations/containerServices.ts +++ b/sdk/compute/arm-compute/src/operations/containerServices.ts @@ -274,7 +274,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -299,7 +299,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -323,7 +323,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -348,7 +348,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -386,7 +386,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts b/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts new file mode 100644 index 000000000000..bfbb911ad51a --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts @@ -0,0 +1,484 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 Models from "../models"; +import * as Mappers from "../models/dedicatedHostGroupsMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a DedicatedHostGroups. */ +export class DedicatedHostGroups { + private readonly client: ComputeManagementClientContext; + + /** + * Create a DedicatedHostGroups. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups + * please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param parameters Parameters supplied to the Create Dedicated Host Group. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, hostGroupName: string, parameters: Models.DedicatedHostGroup, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param parameters Parameters supplied to the Create Dedicated Host Group. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, hostGroupName: string, parameters: Models.DedicatedHostGroup, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param parameters Parameters supplied to the Create Dedicated Host Group. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, hostGroupName: string, parameters: Models.DedicatedHostGroup, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, hostGroupName: string, parameters: Models.DedicatedHostGroup, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + hostGroupName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Update an dedicated host group. + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param parameters Parameters supplied to the Update Dedicated Host Group operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, hostGroupName: string, parameters: Models.DedicatedHostGroupUpdate, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param parameters Parameters supplied to the Update Dedicated Host Group operation. + * @param callback The callback + */ + update(resourceGroupName: string, hostGroupName: string, parameters: Models.DedicatedHostGroupUpdate, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param parameters Parameters supplied to the Update Dedicated Host Group operation. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, hostGroupName: string, parameters: Models.DedicatedHostGroupUpdate, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, hostGroupName: string, parameters: Models.DedicatedHostGroupUpdate, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + hostGroupName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Delete a dedicated host group. + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, hostGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, hostGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, hostGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, hostGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + hostGroupName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Retrieves information about a dedicated host group. + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, hostGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param callback The callback + */ + get(resourceGroupName: string, hostGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, hostGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, hostGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + hostGroupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the dedicated host groups in the specified resource group. Use the nextLink + * property in the response to get the next page of dedicated host groups. + * @param resourceGroupName The name of the resource group. + * @param [options] The optional parameters + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the dedicated host groups in the subscription. Use the nextLink property in the + * response to get the next page of dedicated host groups. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listBySubscription(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listBySubscriptionOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the dedicated host groups in the specified resource group. Use the nextLink + * property in the response to get the next page of dedicated host groups. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the dedicated host groups in the subscription. Use the nextLink property in the + * response to get the next page of dedicated host groups. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): 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: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | 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/hostGroups/{hostGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.hostGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DedicatedHostGroup, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DedicatedHostGroup + }, + 201: { + bodyMapper: Mappers.DedicatedHostGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.hostGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DedicatedHostGroupUpdate, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DedicatedHostGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.hostGroupName, + 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/hostGroups/{hostGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.hostGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DedicatedHostGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DedicatedHostGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/hostGroups", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DedicatedHostGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DedicatedHostGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DedicatedHostGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts b/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts new file mode 100644 index 000000000000..6f4b69dee8c4 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts @@ -0,0 +1,402 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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/dedicatedHostsMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a DedicatedHosts. */ +export class DedicatedHosts { + private readonly client: ComputeManagementClientContext; + + /** + * Create a DedicatedHosts. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * Create or update a dedicated host . + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param hostName The name of the dedicated host . + * @param parameters Parameters supplied to the Create Dedicated Host. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, hostGroupName: string, hostName: string, parameters: Models.DedicatedHost, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,hostGroupName,hostName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Update an dedicated host . + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param hostName The name of the dedicated host . + * @param parameters Parameters supplied to the Update Dedicated Host operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, hostGroupName: string, hostName: string, parameters: Models.DedicatedHostUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,hostGroupName,hostName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Delete a dedicated host. + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param hostName The name of the dedicated host. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, hostGroupName: string, hostName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,hostGroupName,hostName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Retrieves information about a dedicated host. + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param hostName The name of the dedicated host. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, hostGroupName: string, hostName: string, options?: Models.DedicatedHostsGetOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param hostName The name of the dedicated host. + * @param callback The callback + */ + get(resourceGroupName: string, hostGroupName: string, hostName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param hostName The name of the dedicated host. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, hostGroupName: string, hostName: string, options: Models.DedicatedHostsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, hostGroupName: string, hostName: string, options?: Models.DedicatedHostsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + hostGroupName, + hostName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink + * property in the response to get the next page of dedicated hosts. + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param [options] The optional parameters + * @returns Promise + */ + listByHostGroup(resourceGroupName: string, hostGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param callback The callback + */ + listByHostGroup(resourceGroupName: string, hostGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param options The optional parameters + * @param callback The callback + */ + listByHostGroup(resourceGroupName: string, hostGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByHostGroup(resourceGroupName: string, hostGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + hostGroupName, + options + }, + listByHostGroupOperationSpec, + callback) as Promise; + } + + /** + * Create or update a dedicated host . + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param hostName The name of the dedicated host . + * @param parameters Parameters supplied to the Create Dedicated Host. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, hostGroupName: string, hostName: string, parameters: Models.DedicatedHost, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + hostGroupName, + hostName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Update an dedicated host . + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param hostName The name of the dedicated host . + * @param parameters Parameters supplied to the Update Dedicated Host operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, hostGroupName: string, hostName: string, parameters: Models.DedicatedHostUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + hostGroupName, + hostName, + parameters, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * Delete a dedicated host. + * @param resourceGroupName The name of the resource group. + * @param hostGroupName The name of the dedicated host group. + * @param hostName The name of the dedicated host. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, hostGroupName: string, hostName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + hostGroupName, + hostName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink + * property in the response to get the next page of dedicated hosts. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByHostGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByHostGroupNext(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 + */ + listByHostGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByHostGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByHostGroupNextOperationSpec, + 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/hostGroups/{hostGroupName}/hosts/{hostName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.hostGroupName, + Parameters.hostName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand0, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DedicatedHost + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByHostGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.hostGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DedicatedHostListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.hostGroupName, + Parameters.hostName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DedicatedHost, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DedicatedHost + }, + 201: { + bodyMapper: Mappers.DedicatedHost + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.hostGroupName, + Parameters.hostName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DedicatedHostUpdate, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DedicatedHost + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.hostGroupName, + Parameters.hostName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByHostGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DedicatedHostListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/galleries.ts b/sdk/compute/arm-compute/src/operations/galleries.ts index bf566595c4a2..3ed0099d5551 100644 --- a/sdk/compute/arm-compute/src/operations/galleries.ts +++ b/sdk/compute/arm-compute/src/operations/galleries.ts @@ -244,7 +244,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.galleryName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -268,7 +268,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -291,7 +291,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -316,7 +316,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -354,7 +354,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.galleryName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts index 02c415f95c6e..439c5e351734 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts @@ -236,8 +236,8 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.galleryImageVersionName ], queryParameters: [ - Parameters.expand0, - Parameters.apiVersion0 + Parameters.expand1, + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -263,7 +263,7 @@ const listByGalleryImageOperationSpec: msRest.OperationSpec = { Parameters.galleryImageName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -290,7 +290,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryImageVersionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -330,7 +330,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.galleryImageVersionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/compute/arm-compute/src/operations/galleryImages.ts b/sdk/compute/arm-compute/src/operations/galleryImages.ts index 1205d3f7d769..b951008c54f7 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImages.ts @@ -219,7 +219,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.galleryImageName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -244,7 +244,7 @@ const listByGalleryOperationSpec: msRest.OperationSpec = { Parameters.galleryName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -270,7 +270,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryImageName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -309,7 +309,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.galleryImageName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/compute/arm-compute/src/operations/images.ts b/sdk/compute/arm-compute/src/operations/images.ts index 6187e85ab7f9..db6ade10fbf7 100644 --- a/sdk/compute/arm-compute/src/operations/images.ts +++ b/sdk/compute/arm-compute/src/operations/images.ts @@ -277,7 +277,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.expand0, + Parameters.expand1, Parameters.apiVersion0 ], headerParameters: [ diff --git a/sdk/compute/arm-compute/src/operations/index.ts b/sdk/compute/arm-compute/src/operations/index.ts index 1821b058d12d..4af74520b9ea 100644 --- a/sdk/compute/arm-compute/src/operations/index.ts +++ b/sdk/compute/arm-compute/src/operations/index.ts @@ -10,6 +10,9 @@ export * from "./operations"; export * from "./availabilitySets"; +export * from "./proximityPlacementGroups"; +export * from "./dedicatedHostGroups"; +export * from "./dedicatedHosts"; export * from "./virtualMachineExtensionImages"; export * from "./virtualMachineExtensions"; export * from "./virtualMachineImages"; @@ -20,7 +23,6 @@ export * from "./images"; export * from "./virtualMachineScaleSets"; export * from "./virtualMachineScaleSetExtensions"; export * from "./virtualMachineScaleSetRollingUpgrades"; -export * from "./virtualMachineScaleSetOperations"; export * from "./virtualMachineScaleSetVMs"; export * from "./logAnalytics"; export * from "./virtualMachineRunCommands"; diff --git a/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts b/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts new file mode 100644 index 000000000000..5a5ed3f4bbf0 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts @@ -0,0 +1,478 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 Models from "../models"; +import * as Mappers from "../models/proximityPlacementGroupsMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a ProximityPlacementGroups. */ +export class ProximityPlacementGroups { + private readonly client: ComputeManagementClientContext; + + /** + * Create a ProximityPlacementGroups. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * Create or update a proximity placement group. + * @param resourceGroupName The name of the resource group. + * @param proximityPlacementGroupName The name of the proximity placement group. + * @param parameters Parameters supplied to the Create Proximity Placement Group operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, proximityPlacementGroupName: string, parameters: Models.ProximityPlacementGroup, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param proximityPlacementGroupName The name of the proximity placement group. + * @param parameters Parameters supplied to the Create Proximity Placement Group operation. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, proximityPlacementGroupName: string, parameters: Models.ProximityPlacementGroup, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param proximityPlacementGroupName The name of the proximity placement group. + * @param parameters Parameters supplied to the Create Proximity Placement Group operation. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, proximityPlacementGroupName: string, parameters: Models.ProximityPlacementGroup, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, proximityPlacementGroupName: string, parameters: Models.ProximityPlacementGroup, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + proximityPlacementGroupName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Update a proximity placement group. + * @param resourceGroupName The name of the resource group. + * @param proximityPlacementGroupName The name of the proximity placement group. + * @param parameters Parameters supplied to the Update Proximity Placement Group operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, proximityPlacementGroupName: string, parameters: Models.ProximityPlacementGroupUpdate, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param proximityPlacementGroupName The name of the proximity placement group. + * @param parameters Parameters supplied to the Update Proximity Placement Group operation. + * @param callback The callback + */ + update(resourceGroupName: string, proximityPlacementGroupName: string, parameters: Models.ProximityPlacementGroupUpdate, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param proximityPlacementGroupName The name of the proximity placement group. + * @param parameters Parameters supplied to the Update Proximity Placement Group operation. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, proximityPlacementGroupName: string, parameters: Models.ProximityPlacementGroupUpdate, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, proximityPlacementGroupName: string, parameters: Models.ProximityPlacementGroupUpdate, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + proximityPlacementGroupName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Delete a proximity placement group. + * @param resourceGroupName The name of the resource group. + * @param proximityPlacementGroupName The name of the proximity placement group. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, proximityPlacementGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param proximityPlacementGroupName The name of the proximity placement group. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, proximityPlacementGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param proximityPlacementGroupName The name of the proximity placement group. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, proximityPlacementGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, proximityPlacementGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + proximityPlacementGroupName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Retrieves information about a proximity placement group . + * @param resourceGroupName The name of the resource group. + * @param proximityPlacementGroupName The name of the proximity placement group. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, proximityPlacementGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param proximityPlacementGroupName The name of the proximity placement group. + * @param callback The callback + */ + get(resourceGroupName: string, proximityPlacementGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param proximityPlacementGroupName The name of the proximity placement group. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, proximityPlacementGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, proximityPlacementGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + proximityPlacementGroupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Lists all proximity placement groups in a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listBySubscription(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listBySubscriptionOperationSpec, + callback) as Promise; + } + + /** + * Lists all proximity placement groups in a resource group. + * @param resourceGroupName The name of the resource group. + * @param [options] The optional parameters + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Lists all proximity placement groups in a subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): 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: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySubscriptionNextOperationSpec, + callback) as Promise; + } + + /** + * Lists all proximity placement groups in a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + 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/proximityPlacementGroups/{proximityPlacementGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.proximityPlacementGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ProximityPlacementGroup, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ProximityPlacementGroup + }, + 201: { + bodyMapper: Mappers.ProximityPlacementGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.proximityPlacementGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ProximityPlacementGroupUpdate, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ProximityPlacementGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.proximityPlacementGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.proximityPlacementGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProximityPlacementGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/proximityPlacementGroups", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProximityPlacementGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProximityPlacementGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProximityPlacementGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProximityPlacementGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts index 289e3d3134e9..97c97b72adf0 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts @@ -217,7 +217,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.expand0, + Parameters.expand1, Parameters.apiVersion0 ], headerParameters: [ @@ -243,7 +243,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.expand0, + Parameters.expand1, Parameters.apiVersion0 ], headerParameters: [ diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts index ede0b80fda8d..f2671c9c93cb 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts @@ -207,7 +207,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.expand0, + Parameters.expand1, Parameters.apiVersion0 ], headerParameters: [ diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts index 158980afb9a6..247b0fdec459 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts @@ -105,7 +105,7 @@ export class VirtualMachineScaleSetVMs { * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMsGetOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param vmScaleSetName The name of the VM scale set. @@ -120,8 +120,8 @@ export class VirtualMachineScaleSetVMs { * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options: Models.VirtualMachineScaleSetVMsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: Models.VirtualMachineScaleSetVMsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -553,6 +553,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.expand0, Parameters.apiVersion0 ], headerParameters: [ @@ -606,7 +607,7 @@ const listOperationSpec: msRest.OperationSpec = { queryParameters: [ Parameters.filter, Parameters.select, - Parameters.expand0, + Parameters.expand1, Parameters.apiVersion0 ], headerParameters: [ diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts index e7dfd2b78aff..5aa9dbc78a1b 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts @@ -421,6 +421,42 @@ export class VirtualMachineScaleSets { callback) as Promise; } + /** + * Converts SinglePlacementGroup property to false for a existing virtual machine scale set. + * @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 [options] The optional parameters + * @returns 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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + vmScaleSetName, + parameters, + options + }, + convertToSinglePlacementGroupOperationSpec, + callback); + } + /** * Create or update a VM scale set. * @param resourceGroupName The name of the resource group. @@ -964,6 +1000,33 @@ const forceRecoveryServiceFabricPlatformUpdateDomainWalkOperationSpec: msRest.Op serializer }; +const convertToSinglePlacementGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.subscriptionId + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.VMScaleSetConvertToSinglePlacementGroupInput, + required: true + } + }, + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", diff --git a/sdk/compute/arm-compute/src/operations/virtualMachines.ts b/sdk/compute/arm-compute/src/operations/virtualMachines.ts index a535ced3f9da..369fc36d833e 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachines.ts @@ -769,7 +769,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.expand1, + Parameters.expand0, Parameters.apiVersion0 ], headerParameters: [ diff --git a/sdk/compute/arm-compute/tsconfig.json b/sdk/compute/arm-compute/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/compute/arm-compute/tsconfig.json +++ b/sdk/compute/arm-compute/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true