diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index 705a51ab894d..4617fee5e9c3 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -22,6 +22,7 @@ class ComputeManagementClient extends ComputeManagementClientContext { proximityPlacementGroups: operations.ProximityPlacementGroups; dedicatedHostGroups: operations.DedicatedHostGroups; dedicatedHosts: operations.DedicatedHosts; + sshPublicKeys: operations.SshPublicKeys; virtualMachineExtensionImages: operations.VirtualMachineExtensionImages; virtualMachineExtensions: operations.VirtualMachineExtensions; virtualMachineImages: operations.VirtualMachineImages; @@ -40,6 +41,7 @@ class ComputeManagementClient extends ComputeManagementClientContext { disks: operations.Disks; snapshots: operations.Snapshots; diskEncryptionSets: operations.DiskEncryptionSets; + diskAccesses: operations.DiskAccesses; galleries: operations.Galleries; galleryImages: operations.GalleryImages; galleryImageVersions: operations.GalleryImageVersions; @@ -61,6 +63,7 @@ class ComputeManagementClient extends ComputeManagementClientContext { this.proximityPlacementGroups = new operations.ProximityPlacementGroups(this); this.dedicatedHostGroups = new operations.DedicatedHostGroups(this); this.dedicatedHosts = new operations.DedicatedHosts(this); + this.sshPublicKeys = new operations.SshPublicKeys(this); this.virtualMachineExtensionImages = new operations.VirtualMachineExtensionImages(this); this.virtualMachineExtensions = new operations.VirtualMachineExtensions(this); this.virtualMachineImages = new operations.VirtualMachineImages(this); @@ -79,6 +82,7 @@ class ComputeManagementClient extends ComputeManagementClientContext { this.disks = new operations.Disks(this); this.snapshots = new operations.Snapshots(this); this.diskEncryptionSets = new operations.DiskEncryptionSets(this); + this.diskAccesses = new operations.DiskAccesses(this); this.galleries = new operations.Galleries(this); this.galleryImages = new operations.GalleryImages(this); this.galleryImageVersions = new operations.GalleryImageVersions(this); diff --git a/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts b/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts index f7f9dccd7efe..1a8a6fed5a58 100644 --- a/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/availabilitySetsMappers.ts @@ -50,6 +50,7 @@ export { DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -107,6 +108,9 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, ProximityPlacementGroupUpdate, PurchasePlan, @@ -128,6 +132,8 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, + SshPublicKeyUpdateResource, StorageProfile, SubResource, SubResourceReadOnly, diff --git a/sdk/compute/arm-compute/src/models/containerServicesMappers.ts b/sdk/compute/arm-compute/src/models/containerServicesMappers.ts index ed2fc0e24abc..892490e13336 100644 --- a/sdk/compute/arm-compute/src/models/containerServicesMappers.ts +++ b/sdk/compute/arm-compute/src/models/containerServicesMappers.ts @@ -16,7 +16,6 @@ export { AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, AvailabilitySet, - AvailabilitySetUpdate, BaseResource, BillingProfile, BootDiagnostics, @@ -43,13 +42,12 @@ export { DedicatedHostAllocatableVM, DedicatedHostAvailableCapacity, DedicatedHostGroup, - DedicatedHostGroupUpdate, DedicatedHostInstanceView, - DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -90,7 +88,6 @@ export { ImagePurchasePlan, ImageReference, ImageStorageProfile, - ImageUpdate, InnerError, InstanceViewStatus, KeyVaultAndKeyReference, @@ -107,8 +104,10 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, - ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -128,13 +127,13 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, StorageProfile, SubResource, SubResourceReadOnly, SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, - UpdateResource, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -148,7 +147,6 @@ export { VirtualMachineExtensionHandlerInstanceView, VirtualMachineExtensionImage, VirtualMachineExtensionInstanceView, - VirtualMachineExtensionUpdate, VirtualMachineHealthStatus, VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, @@ -173,21 +171,14 @@ export { VirtualMachineScaleSetPublicIPAddressConfiguration, VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, VirtualMachineScaleSetStorageProfile, - VirtualMachineScaleSetUpdate, VirtualMachineScaleSetUpdateIPConfiguration, VirtualMachineScaleSetUpdateNetworkConfiguration, - VirtualMachineScaleSetUpdateNetworkProfile, - VirtualMachineScaleSetUpdateOSDisk, - VirtualMachineScaleSetUpdateOSProfile, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, - VirtualMachineScaleSetUpdateStorageProfile, - VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, - VirtualMachineUpdate, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts index f3bb37fb5261..35d6f055a0a0 100644 --- a/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts +++ b/sdk/compute/arm-compute/src/models/dedicatedHostGroupsMappers.ts @@ -50,6 +50,7 @@ export { DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -107,6 +108,9 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, ProximityPlacementGroupUpdate, PurchasePlan, @@ -128,6 +132,8 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, + SshPublicKeyUpdateResource, StorageProfile, SubResource, SubResourceReadOnly, diff --git a/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts b/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts index 302971aef816..cc53c47be640 100644 --- a/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts +++ b/sdk/compute/arm-compute/src/models/dedicatedHostsMappers.ts @@ -50,6 +50,7 @@ export { DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -107,6 +108,9 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, ProximityPlacementGroupUpdate, PurchasePlan, @@ -128,6 +132,8 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, + SshPublicKeyUpdateResource, StorageProfile, SubResource, SubResourceReadOnly, diff --git a/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts b/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts new file mode 100644 index 000000000000..d5be71b9504d --- /dev/null +++ b/sdk/compute/arm-compute/src/models/diskAccessesMappers.ts @@ -0,0 +1,188 @@ +/* + * 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, + AutomaticRepairsPolicy, + AvailabilitySet, + BaseResource, + BillingProfile, + BootDiagnostics, + BootDiagnosticsInstanceView, + CloudError, + ContainerService, + ContainerServiceAgentPoolProfile, + ContainerServiceCustomProfile, + ContainerServiceDiagnosticsProfile, + ContainerServiceLinuxProfile, + ContainerServiceMasterProfile, + ContainerServiceOrchestratorProfile, + ContainerServiceServicePrincipalProfile, + ContainerServiceSshConfiguration, + ContainerServiceSshPublicKey, + ContainerServiceVMDiagnostics, + ContainerServiceWindowsProfile, + CreationData, + DataDisk, + DataDiskImage, + DataDiskImageEncryption, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostInstanceView, + DiagnosticsProfile, + DiffDiskSettings, + Disallowed, + Disk, + DiskAccess, + DiskAccessList, + DiskAccessUpdate, + DiskEncryptionSet, + DiskEncryptionSetParameters, + DiskEncryptionSettings, + DiskImageEncryption, + DiskInstanceView, + DiskSku, + Encryption, + EncryptionImages, + EncryptionSetIdentity, + EncryptionSettingsCollection, + EncryptionSettingsElement, + Gallery, + GalleryApplication, + GalleryApplicationUpdate, + GalleryApplicationVersion, + GalleryApplicationVersionPublishingProfile, + GalleryApplicationVersionUpdate, + GalleryArtifactPublishingProfileBase, + GalleryArtifactVersionSource, + GalleryDataDiskImage, + GalleryDiskImage, + GalleryIdentifier, + GalleryImage, + GalleryImageIdentifier, + GalleryImageUpdate, + GalleryImageVersion, + GalleryImageVersionPublishingProfile, + GalleryImageVersionStorageProfile, + GalleryImageVersionUpdate, + GalleryOSDiskImage, + GalleryUpdate, + HardwareProfile, + Image, + ImageDataDisk, + ImageDisk, + ImageDiskReference, + ImageOSDisk, + ImagePurchasePlan, + ImageReference, + ImageStorageProfile, + InnerError, + InstanceViewStatus, + KeyVaultAndKeyReference, + KeyVaultAndSecretReference, + KeyVaultKeyReference, + KeyVaultSecretReference, + LinuxConfiguration, + MaintenanceRedeployStatus, + ManagedDiskParameters, + NetworkInterfaceReference, + NetworkProfile, + OSDisk, + OSDiskImage, + OSDiskImageEncryption, + OSProfile, + Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkResourceListResult, + PrivateLinkServiceConnectionState, + ProximityPlacementGroup, + PurchasePlan, + RecommendedMachineConfiguration, + RegionalReplicationStatus, + ReplicationStatus, + Resource, + ResourceRange, + RollingUpgradePolicy, + RollingUpgradeProgressInfo, + RollingUpgradeRunningStatus, + RollingUpgradeStatusInfo, + ScaleInPolicy, + ScheduledEventsProfile, + ShareInfoElement, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SshConfiguration, + SshPublicKey, + SshPublicKeyResource, + StorageProfile, + SubResource, + SubResourceReadOnly, + SubResourceWithColocationStatus, + TargetRegion, + TerminateNotificationProfile, + UpdateResourceDefinition, + UpgradePolicy, + UserArtifactSource, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageResource, + VirtualMachineInstanceView, + VirtualMachineScaleSet, + VirtualMachineScaleSetDataDisk, + VirtualMachineScaleSetExtension, + VirtualMachineScaleSetExtensionProfile, + VirtualMachineScaleSetExtensionUpdate, + VirtualMachineScaleSetIdentity, + VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, + VirtualMachineScaleSetIPConfiguration, + VirtualMachineScaleSetIpTag, + VirtualMachineScaleSetManagedDiskParameters, + VirtualMachineScaleSetNetworkConfiguration, + VirtualMachineScaleSetNetworkConfigurationDnsSettings, + VirtualMachineScaleSetNetworkProfile, + VirtualMachineScaleSetOSDisk, + VirtualMachineScaleSetOSProfile, + VirtualMachineScaleSetPublicIPAddressConfiguration, + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, + VirtualMachineScaleSetStorageProfile, + VirtualMachineScaleSetUpdateIPConfiguration, + VirtualMachineScaleSetUpdateNetworkConfiguration, + VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, + VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMInstanceView, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProfile, + VirtualMachineScaleSetVMProtectionPolicy, + WindowsConfiguration, + WinRMConfiguration, + WinRMListener +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts b/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts index 3929547470b7..b7f1143dbe88 100644 --- a/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/diskEncryptionSetsMappers.ts @@ -16,7 +16,6 @@ export { AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, AvailabilitySet, - AvailabilitySetUpdate, BaseResource, BillingProfile, BootDiagnostics, @@ -42,13 +41,12 @@ export { DedicatedHostAllocatableVM, DedicatedHostAvailableCapacity, DedicatedHostGroup, - DedicatedHostGroupUpdate, DedicatedHostInstanceView, - DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetList, DiskEncryptionSetParameters, @@ -91,7 +89,6 @@ export { ImagePurchasePlan, ImageReference, ImageStorageProfile, - ImageUpdate, InnerError, InstanceViewStatus, KeyVaultAndKeyReference, @@ -108,8 +105,10 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, - ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -129,13 +128,13 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, StorageProfile, SubResource, SubResourceReadOnly, SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, - UpdateResource, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -149,7 +148,6 @@ export { VirtualMachineExtensionHandlerInstanceView, VirtualMachineExtensionImage, VirtualMachineExtensionInstanceView, - VirtualMachineExtensionUpdate, VirtualMachineHealthStatus, VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, @@ -174,21 +172,14 @@ export { VirtualMachineScaleSetPublicIPAddressConfiguration, VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, VirtualMachineScaleSetStorageProfile, - VirtualMachineScaleSetUpdate, VirtualMachineScaleSetUpdateIPConfiguration, VirtualMachineScaleSetUpdateNetworkConfiguration, - VirtualMachineScaleSetUpdateNetworkProfile, - VirtualMachineScaleSetUpdateOSDisk, - VirtualMachineScaleSetUpdateOSProfile, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, - VirtualMachineScaleSetUpdateStorageProfile, - VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, - VirtualMachineUpdate, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/disksMappers.ts b/sdk/compute/arm-compute/src/models/disksMappers.ts index e89ef13e509a..cc694f2705d3 100644 --- a/sdk/compute/arm-compute/src/models/disksMappers.ts +++ b/sdk/compute/arm-compute/src/models/disksMappers.ts @@ -17,7 +17,6 @@ export { AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, AvailabilitySet, - AvailabilitySetUpdate, BaseResource, BillingProfile, BootDiagnostics, @@ -43,13 +42,12 @@ export { DedicatedHostAllocatableVM, DedicatedHostAvailableCapacity, DedicatedHostGroup, - DedicatedHostGroupUpdate, DedicatedHostInstanceView, - DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -93,7 +91,6 @@ export { ImagePurchasePlan, ImageReference, ImageStorageProfile, - ImageUpdate, InnerError, InstanceViewStatus, KeyVaultAndKeyReference, @@ -110,8 +107,10 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, - ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -131,13 +130,13 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, StorageProfile, SubResource, SubResourceReadOnly, SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, - UpdateResource, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -151,7 +150,6 @@ export { VirtualMachineExtensionHandlerInstanceView, VirtualMachineExtensionImage, VirtualMachineExtensionInstanceView, - VirtualMachineExtensionUpdate, VirtualMachineHealthStatus, VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, @@ -176,21 +174,14 @@ export { VirtualMachineScaleSetPublicIPAddressConfiguration, VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, VirtualMachineScaleSetStorageProfile, - VirtualMachineScaleSetUpdate, VirtualMachineScaleSetUpdateIPConfiguration, VirtualMachineScaleSetUpdateNetworkConfiguration, - VirtualMachineScaleSetUpdateNetworkProfile, - VirtualMachineScaleSetUpdateOSDisk, - VirtualMachineScaleSetUpdateOSProfile, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, - VirtualMachineScaleSetUpdateStorageProfile, - VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, - VirtualMachineUpdate, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/galleriesMappers.ts b/sdk/compute/arm-compute/src/models/galleriesMappers.ts index e0ea127f1105..5840ef0d0e44 100644 --- a/sdk/compute/arm-compute/src/models/galleriesMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleriesMappers.ts @@ -16,7 +16,6 @@ export { AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, AvailabilitySet, - AvailabilitySetUpdate, BaseResource, BillingProfile, BootDiagnostics, @@ -42,13 +41,12 @@ export { DedicatedHostAllocatableVM, DedicatedHostAvailableCapacity, DedicatedHostGroup, - DedicatedHostGroupUpdate, DedicatedHostInstanceView, - DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -90,7 +88,6 @@ export { ImagePurchasePlan, ImageReference, ImageStorageProfile, - ImageUpdate, InnerError, InstanceViewStatus, KeyVaultAndKeyReference, @@ -107,8 +104,10 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, - ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -128,13 +127,13 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, StorageProfile, SubResource, SubResourceReadOnly, SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, - UpdateResource, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -148,7 +147,6 @@ export { VirtualMachineExtensionHandlerInstanceView, VirtualMachineExtensionImage, VirtualMachineExtensionInstanceView, - VirtualMachineExtensionUpdate, VirtualMachineHealthStatus, VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, @@ -173,21 +171,14 @@ export { VirtualMachineScaleSetPublicIPAddressConfiguration, VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, VirtualMachineScaleSetStorageProfile, - VirtualMachineScaleSetUpdate, VirtualMachineScaleSetUpdateIPConfiguration, VirtualMachineScaleSetUpdateNetworkConfiguration, - VirtualMachineScaleSetUpdateNetworkProfile, - VirtualMachineScaleSetUpdateOSDisk, - VirtualMachineScaleSetUpdateOSProfile, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, - VirtualMachineScaleSetUpdateStorageProfile, - VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, - VirtualMachineUpdate, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts b/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts index b7682e94de99..288ccfdc747f 100644 --- a/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryApplicationVersionsMappers.ts @@ -16,7 +16,6 @@ export { AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, AvailabilitySet, - AvailabilitySetUpdate, BaseResource, BillingProfile, BootDiagnostics, @@ -42,13 +41,12 @@ export { DedicatedHostAllocatableVM, DedicatedHostAvailableCapacity, DedicatedHostGroup, - DedicatedHostGroupUpdate, DedicatedHostInstanceView, - DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -90,7 +88,6 @@ export { ImagePurchasePlan, ImageReference, ImageStorageProfile, - ImageUpdate, InnerError, InstanceViewStatus, KeyVaultAndKeyReference, @@ -107,8 +104,10 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, - ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -128,13 +127,13 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, StorageProfile, SubResource, SubResourceReadOnly, SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, - UpdateResource, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -148,7 +147,6 @@ export { VirtualMachineExtensionHandlerInstanceView, VirtualMachineExtensionImage, VirtualMachineExtensionInstanceView, - VirtualMachineExtensionUpdate, VirtualMachineHealthStatus, VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, @@ -173,21 +171,14 @@ export { VirtualMachineScaleSetPublicIPAddressConfiguration, VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, VirtualMachineScaleSetStorageProfile, - VirtualMachineScaleSetUpdate, VirtualMachineScaleSetUpdateIPConfiguration, VirtualMachineScaleSetUpdateNetworkConfiguration, - VirtualMachineScaleSetUpdateNetworkProfile, - VirtualMachineScaleSetUpdateOSDisk, - VirtualMachineScaleSetUpdateOSProfile, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, - VirtualMachineScaleSetUpdateStorageProfile, - VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, - VirtualMachineUpdate, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts b/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts index 8d725c9c06db..e87bfdb9e808 100644 --- a/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryApplicationsMappers.ts @@ -16,7 +16,6 @@ export { AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, AvailabilitySet, - AvailabilitySetUpdate, BaseResource, BillingProfile, BootDiagnostics, @@ -42,13 +41,12 @@ export { DedicatedHostAllocatableVM, DedicatedHostAvailableCapacity, DedicatedHostGroup, - DedicatedHostGroupUpdate, DedicatedHostInstanceView, - DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -90,7 +88,6 @@ export { ImagePurchasePlan, ImageReference, ImageStorageProfile, - ImageUpdate, InnerError, InstanceViewStatus, KeyVaultAndKeyReference, @@ -107,8 +104,10 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, - ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -128,13 +127,13 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, StorageProfile, SubResource, SubResourceReadOnly, SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, - UpdateResource, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -148,7 +147,6 @@ export { VirtualMachineExtensionHandlerInstanceView, VirtualMachineExtensionImage, VirtualMachineExtensionInstanceView, - VirtualMachineExtensionUpdate, VirtualMachineHealthStatus, VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, @@ -173,21 +171,14 @@ export { VirtualMachineScaleSetPublicIPAddressConfiguration, VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, VirtualMachineScaleSetStorageProfile, - VirtualMachineScaleSetUpdate, VirtualMachineScaleSetUpdateIPConfiguration, VirtualMachineScaleSetUpdateNetworkConfiguration, - VirtualMachineScaleSetUpdateNetworkProfile, - VirtualMachineScaleSetUpdateOSDisk, - VirtualMachineScaleSetUpdateOSProfile, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, - VirtualMachineScaleSetUpdateStorageProfile, - VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, - VirtualMachineUpdate, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts b/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts index 61e484336ea5..3753dc88114c 100644 --- a/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryImageVersionsMappers.ts @@ -16,7 +16,6 @@ export { AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, AvailabilitySet, - AvailabilitySetUpdate, BaseResource, BillingProfile, BootDiagnostics, @@ -42,13 +41,12 @@ export { DedicatedHostAllocatableVM, DedicatedHostAvailableCapacity, DedicatedHostGroup, - DedicatedHostGroupUpdate, DedicatedHostInstanceView, - DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -90,7 +88,6 @@ export { ImagePurchasePlan, ImageReference, ImageStorageProfile, - ImageUpdate, InnerError, InstanceViewStatus, KeyVaultAndKeyReference, @@ -107,8 +104,10 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, - ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -128,13 +127,13 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, StorageProfile, SubResource, SubResourceReadOnly, SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, - UpdateResource, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -148,7 +147,6 @@ export { VirtualMachineExtensionHandlerInstanceView, VirtualMachineExtensionImage, VirtualMachineExtensionInstanceView, - VirtualMachineExtensionUpdate, VirtualMachineHealthStatus, VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, @@ -173,21 +171,14 @@ export { VirtualMachineScaleSetPublicIPAddressConfiguration, VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, VirtualMachineScaleSetStorageProfile, - VirtualMachineScaleSetUpdate, VirtualMachineScaleSetUpdateIPConfiguration, VirtualMachineScaleSetUpdateNetworkConfiguration, - VirtualMachineScaleSetUpdateNetworkProfile, - VirtualMachineScaleSetUpdateOSDisk, - VirtualMachineScaleSetUpdateOSProfile, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, - VirtualMachineScaleSetUpdateStorageProfile, - VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, - VirtualMachineUpdate, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts b/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts index 89382b3dcf82..8340b6fcffc8 100644 --- a/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/galleryImagesMappers.ts @@ -16,7 +16,6 @@ export { AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, AvailabilitySet, - AvailabilitySetUpdate, BaseResource, BillingProfile, BootDiagnostics, @@ -42,13 +41,12 @@ export { DedicatedHostAllocatableVM, DedicatedHostAvailableCapacity, DedicatedHostGroup, - DedicatedHostGroupUpdate, DedicatedHostInstanceView, - DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -90,7 +88,6 @@ export { ImagePurchasePlan, ImageReference, ImageStorageProfile, - ImageUpdate, InnerError, InstanceViewStatus, KeyVaultAndKeyReference, @@ -107,8 +104,10 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, - ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -128,13 +127,13 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, StorageProfile, SubResource, SubResourceReadOnly, SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, - UpdateResource, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -148,7 +147,6 @@ export { VirtualMachineExtensionHandlerInstanceView, VirtualMachineExtensionImage, VirtualMachineExtensionInstanceView, - VirtualMachineExtensionUpdate, VirtualMachineHealthStatus, VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, @@ -173,21 +171,14 @@ export { VirtualMachineScaleSetPublicIPAddressConfiguration, VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, VirtualMachineScaleSetStorageProfile, - VirtualMachineScaleSetUpdate, VirtualMachineScaleSetUpdateIPConfiguration, VirtualMachineScaleSetUpdateNetworkConfiguration, - VirtualMachineScaleSetUpdateNetworkProfile, - VirtualMachineScaleSetUpdateOSDisk, - VirtualMachineScaleSetUpdateOSProfile, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, - VirtualMachineScaleSetUpdateStorageProfile, - VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, - VirtualMachineUpdate, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/imagesMappers.ts b/sdk/compute/arm-compute/src/models/imagesMappers.ts index c1a5481de1d9..29a01e4d3681 100644 --- a/sdk/compute/arm-compute/src/models/imagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/imagesMappers.ts @@ -49,6 +49,7 @@ export { DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -107,6 +108,9 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, ProximityPlacementGroupUpdate, PurchasePlan, @@ -128,6 +132,8 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, + SshPublicKeyUpdateResource, StorageProfile, SubResource, SubResourceReadOnly, diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index bda27497a463..383614980f28 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -84,7 +84,9 @@ export interface SubResource extends BaseResource { } /** - * Describes a virtual machine scale set sku. + * Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the + * hardware the scale set is currently on, you need to deallocate the VMs in the scale set before + * you modify the SKU name. */ export interface Sku { /** @@ -177,7 +179,7 @@ export interface AvailabilitySet extends Resource { /** * The Update Resource model definition. */ -export interface UpdateResource extends BaseResource { +export interface UpdateResource { /** * Resource tags */ @@ -466,6 +468,53 @@ export interface DedicatedHostUpdate extends UpdateResource { readonly instanceView?: DedicatedHostInstanceView; } +/** + * Response from generation of an SSH key pair. + */ +export interface SshPublicKeyGenerateKeyPairResult { + /** + * Private key portion of the key pair used to authenticate to a virtual machine through ssh. The + * private key is returned in RFC3447 format and should be treated as a secret. + */ + privateKey: string; + /** + * Public key portion of the key pair used to authenticate to a virtual machine through ssh. The + * public key is in ssh-rsa format. + */ + publicKey: string; + /** + * The ARM resource id in the form of + * /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{SshPublicKeyName} + */ + id: string; +} + +/** + * Specifies information about the SSH public key. + */ +export interface SshPublicKeyResource extends Resource { + /** + * SSH public key used to authenticate to a virtual machine through ssh. If this property is not + * initially provided when the resource is created, the publicKey property will be populated when + * generateKeyPair is called. If the public key is provided upon resource creation, the provided + * public key needs to be at least 2048-bit and in ssh-rsa format. + */ + publicKey?: string; +} + +/** + * Specifies information about the SSH public key. + */ +export interface SshPublicKeyUpdateResource extends UpdateResource { + /** + * SSH public key used to authenticate to a virtual machine through ssh. If this property is not + * initially provided when the resource is created, the publicKey property will be populated when + * generateKeyPair is called. If the public key is provided upon resource creation, the provided + * public key needs to be at least 2048-bit and in ssh-rsa format. + */ + publicKey?: string; +} + /** * Describes the properties of a VM size. */ @@ -903,7 +952,8 @@ export interface HardwareProfile { * Specifies information about the image to use. You can specify information about platform images, * marketplace images, or virtual machine images. This element is required when you want to use a * platform image, marketplace image, or virtual machine image, but is not used in other creation - * operations. + * operations. NOTE: Image reference publisher and offer can only be set when you create the scale + * set. */ export interface ImageReference extends SubResource { /** @@ -1010,6 +1060,16 @@ export interface DiffDiskSettings { * 'Local' */ option?: DiffDiskOptions; + /** + * Specifies the ephemeral disk placement for operating system disk.

Possible values are: + *

**CacheDisk**

**ResourceDisk**

Default: **CacheDisk** if one is + * configured for the VM size otherwise **ResourceDisk** is used.

Refer to VM size + * documentation for Windows VM at + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes and Linux VM at + * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/sizes to check which VM sizes + * exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk' + */ + placement?: DiffDiskPlacement; } /** @@ -1060,8 +1120,8 @@ export interface OSDisk { image?: VirtualHardDisk; /** * Specifies the caching requirements.

Possible values are:

**None**

- * **ReadOnly**

**ReadWrite**

Default: **None for Standard storage. ReadOnly - * for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite' + * **ReadOnly**

**ReadWrite**

Default: **None** for Standard storage. + * **ReadOnly** for Premium storage. Possible values include: 'None', 'ReadOnly', 'ReadWrite' */ caching?: CachingTypes; /** @@ -1491,7 +1551,8 @@ export interface AutomaticRepairsPolicy { * The amount of time for which automatic repairs are suspended due to a state change on VM. The * grace time starts after the state change has completed. This helps avoid premature or * accidental repairs. The time duration should be specified in ISO 8601 format. The minimum - * allowed grace period is 30 minutes (PT30M), which is also the default value. + * allowed grace period is 30 minutes (PT30M), which is also the default value. The maximum + * allowed grace period is 90 minutes (PT90M). */ gracePeriod?: string; } @@ -2740,19 +2801,21 @@ export interface VirtualMachineScaleSetIPConfiguration extends SubResource { /** * Specifies an array of references to backend address pools of load balancers. A scale set can * reference backend address pools of one public and one internal load balancer. Multiple scale - * sets cannot use the same load balancer. + * sets cannot use the same basic sku load balancer. */ loadBalancerBackendAddressPools?: SubResource[]; /** * Specifies an array of references to inbound Nat pools of the load balancers. A scale set can * reference inbound nat pools of one public and one internal load balancer. Multiple scale sets - * cannot use the same load balancer + * cannot use the same basic sku load balancer. */ loadBalancerInboundNatPools?: SubResource[]; } /** - * Describes a virtual machine scale set network profile's IP configuration. + * Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a + * scale set may be modified as long as the original subnet and the new subnet are in the same + * virtual network */ export interface VirtualMachineScaleSetUpdateIPConfiguration extends SubResource { /** @@ -3204,7 +3267,8 @@ export interface VirtualMachineScaleSet extends Resource { readonly uniqueId?: string; /** * When true this limits the scale set to a single placement group, of max size 100 virtual - * machines. + * machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if + * singlePlacementGroup is false, it may not be modified to true. */ singlePlacementGroup?: boolean; /** @@ -3237,7 +3301,8 @@ export interface VirtualMachineScaleSet extends Resource { */ identity?: VirtualMachineScaleSetIdentity; /** - * The virtual machine scale set zones. + * The virtual machine scale set zones. NOTE: Availability zones can only be set when you create + * the scale set */ zones?: string[]; } @@ -3296,7 +3361,8 @@ export interface VirtualMachineScaleSetUpdate extends UpdateResource { doNotRunExtensionsOnOverprovisionedVMs?: boolean; /** * When true this limits the scale set to a single placement group, of max size 100 virtual - * machines. + * machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if + * singlePlacementGroup is false, it may not be modified to true. */ singlePlacementGroup?: boolean; /** @@ -3386,6 +3452,24 @@ export interface VirtualMachineScaleSetVMExtensionsSummary { readonly statusesSummary?: VirtualMachineStatusCodeCount[]; } +/** + * Summary for an orchestration service of a virtual machine scale set. + */ +export interface OrchestrationServiceSummary { + /** + * The name of the service. Possible values include: 'AutomaticRepairs', + + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serviceName?: OrchestrationServiceNames; + /** + * The current state of the service. Possible values include: 'NotRunning', 'Running', + * 'Suspended' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serviceState?: OrchestrationServiceState; +} + /** * The instance view of a virtual machine scale set. */ @@ -3404,6 +3488,11 @@ export interface VirtualMachineScaleSetInstanceView { * The resource status information. */ statuses?: InstanceViewStatus[]; + /** + * The orchestration services information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly orchestrationServices?: OrchestrationServiceSummary[]; } /** @@ -3996,6 +4085,21 @@ export interface VMScaleSetConvertToSinglePlacementGroupInput { activePlacementGroupId?: string; } +/** + * The input for OrchestrationServiceState + */ +export interface OrchestrationServiceStateInput { + /** + * The name of the service. Possible values include: 'AutomaticRepairs', + + */ + serviceName: OrchestrationServiceNames; + /** + * The action to be performed. Possible values include: 'Resume', 'Suspend' + */ + action: OrchestrationServiceStateAction; +} + /** * Describes the properties of a run command parameter. */ @@ -4479,8 +4583,8 @@ export interface Encryption { */ diskEncryptionSetId?: string; /** - * The type of key used to encrypt the data of the disk. Possible values include: - * 'EncryptionAtRestWithPlatformKey', 'EncryptionAtRestWithCustomerKey' + * Possible values include: 'EncryptionAtRestWithPlatformKey', 'EncryptionAtRestWithCustomerKey', + * 'EncryptionAtRestWithPlatformAndCustomerKeys' */ type?: EncryptionType; } @@ -4605,6 +4709,14 @@ export interface Disk extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly shareInfo?: ShareInfoElement[]; + /** + * Possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll' + */ + networkAccessPolicy?: NetworkAccessPolicy; + /** + * ARM id of the DiskAccess resource for using private endpoints on disks. + */ + diskAccessId?: string; } /** @@ -4658,6 +4770,14 @@ export interface DiskUpdate { * managed keys. */ encryption?: Encryption; + /** + * Possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll' + */ + networkAccessPolicy?: NetworkAccessPolicy; + /** + * ARM id of the DiskAccess resource for using private endpoints on disks. + */ + diskAccessId?: string; /** * Resource tags */ @@ -4716,7 +4836,7 @@ export interface Snapshot extends Resource { readonly managedBy?: string; sku?: SnapshotSku; /** - * The time when the disk was created. + * The time when the snapshot was created. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly timeCreated?: Date; @@ -4771,6 +4891,14 @@ export interface Snapshot extends Resource { * managed keys. */ encryption?: Encryption; + /** + * Possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll' + */ + networkAccessPolicy?: NetworkAccessPolicy; + /** + * ARM id of the DiskAccess resource for using private endpoints on disks. + */ + diskAccessId?: string; } /** @@ -4798,6 +4926,14 @@ export interface SnapshotUpdate { * managed keys. */ encryption?: Encryption; + /** + * Possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll' + */ + networkAccessPolicy?: NetworkAccessPolicy; + /** + * ARM id of the DiskAccess resource for using private endpoints on disks. + */ + diskAccessId?: string; /** * Resource tags */ @@ -4836,6 +4972,11 @@ export interface EncryptionSetIdentity { */ export interface DiskEncryptionSet extends Resource { identity?: EncryptionSetIdentity; + /** + * Possible values include: 'EncryptionAtRestWithPlatformKey', 'EncryptionAtRestWithCustomerKey', + * 'EncryptionAtRestWithPlatformAndCustomerKeys' + */ + encryptionType?: EncryptionType; /** * The key vault key which is currently used by this disk encryption set. */ @@ -4864,6 +5005,149 @@ export interface DiskEncryptionSetUpdate { tags?: { [propertyName: string]: string }; } +/** + * The Private Endpoint resource. + */ +export interface PrivateEndpoint { + /** + * The ARM identifier for Private Endpoint + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; +} + +/** + * A collection of information about the state of the connection between service consumer and + * provider. + */ +export interface PrivateLinkServiceConnectionState { + /** + * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the + * service. Possible values include: 'Pending', 'Approved', 'Rejected' + */ + status?: PrivateEndpointServiceConnectionStatus; + /** + * The reason for approval/rejection of the connection. + */ + description?: string; + /** + * A message indicating if changes on the service provider require any updates on the consumer. + */ + actionsRequired?: string; +} + +/** + * The Private Endpoint Connection resource. + */ +export interface PrivateEndpointConnection { + /** + * The resource of private end point. + */ + privateEndpoint?: PrivateEndpoint; + /** + * A collection of information about the state of the connection between DiskAccess and Virtual + * Network. + */ + privateLinkServiceConnectionState: PrivateLinkServiceConnectionState; + /** + * The provisioning state of the private endpoint connection resource. Possible values include: + * 'Succeeded', 'Creating', 'Deleting', 'Failed' + */ + provisioningState?: PrivateEndpointConnectionProvisioningState; + /** + * private endpoint connection Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * private endpoint connection name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * private endpoint connection type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; +} + +/** + * disk access resource. + */ +export interface DiskAccess extends Resource { + /** + * A readonly collection of private endpoint connections created on the disk. Currently only one + * endpoint connection is supported. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateEndpointConnections?: PrivateEndpointConnection[]; + /** + * The disk access resource provisioning state. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * The time when the disk access was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly timeCreated?: Date; +} + +/** + * Used for updating a disk access resource. + */ +export interface DiskAccessUpdate { + /** + * Resource tags + */ + tags?: { [propertyName: string]: string }; +} + +/** + * A private link resource + */ +export interface PrivateLinkResource { + /** + * The private link resource group id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly groupId?: string; + /** + * The private link resource required member names. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly requiredMembers?: string[]; + /** + * The private link resource DNS zone name. + */ + requiredZoneNames?: string[]; + /** + * private link resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * private link resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * private link resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; +} + +/** + * A list of private link resources + */ +export interface PrivateLinkResourceListResult { + /** + * Array of private link resources + */ + value?: PrivateLinkResource[]; +} + /** * Describes the gallery unique name. */ @@ -5048,7 +5332,7 @@ export interface GalleryArtifactPublishingProfileBase { endOfLifeDate?: Date; /** * Specifies the storage account type to be used to store the image. This property is not - * updatable. Possible values include: 'Standard_LRS', 'Standard_ZRS' + * updatable. Possible values include: 'Standard_LRS', 'Standard_ZRS', 'Premium_LRS' */ storageAccountType?: StorageAccountType; } @@ -5340,7 +5624,7 @@ export interface GalleryArtifactVersionSource { * The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, or user * image. */ - id: string; + id?: string; } /** @@ -5483,7 +5767,7 @@ export interface TargetRegion { regionalReplicaCount?: number; /** * Specifies the storage account type to be used to store the image. This property is not - * updatable. Possible values include: 'Standard_LRS', 'Standard_ZRS' + * updatable. Possible values include: 'Standard_LRS', 'Standard_ZRS', 'Premium_LRS' */ storageAccountType?: StorageAccountType; encryption?: EncryptionImages; @@ -5721,7 +6005,7 @@ export interface ContainerService extends Resource { */ export interface AvailabilitySetsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { /** - * The expand expression to apply to the operation. + * The expand expression to apply to the operation. Allowed values are 'instanceView'. */ expand?: string; } @@ -6092,15 +6376,17 @@ export interface VirtualMachineScaleSetVMsGetOptionalParams extends msRest.Reque */ export interface VirtualMachineScaleSetVMsListOptionalParams extends msRest.RequestOptionsBase { /** - * The filter to apply to the operation. + * The filter to apply to the operation. Allowed values are + * 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied + * eq true', 'properties/latestModelApplied eq false'. */ filter?: string; /** - * The list parameters. + * The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'. */ select?: string; /** - * The expand expression to apply to the operation. + * The expand expression to apply to the operation. Allowed values are 'instanceView'. */ expand?: string; } @@ -6144,7 +6430,7 @@ export interface VirtualMachineScaleSetVMsBeginPowerOffOptionalParams extends ms */ export interface ResourceSkusListOptionalParams extends msRest.RequestOptionsBase { /** - * The filter to apply on the operation. + * The filter to apply on the operation. Only **location** filter is supported currently. */ filter?: string; } @@ -6243,6 +6529,19 @@ export interface DedicatedHostListResult extends Array { nextLink?: string; } +/** + * @interface + * The list SSH public keys operation response. + * @extends Array + */ +export interface SshPublicKeysGroupListResult extends Array { + /** + * The URI to fetch the next page of SSH public keys. Call ListNext() with this URI to fetch the + * next page of SSH public keys. + */ + nextLink?: string; +} + /** * @interface * The List Usages operation response. @@ -6425,6 +6724,19 @@ export interface DiskEncryptionSetList extends Array { nextLink?: string; } +/** + * @interface + * The List disk access operation response. + * @extends Array + */ +export interface DiskAccessList extends Array { + /** + * The uri to fetch the next page of disk access resources. Call ListNext() with this to fetch + * the next page of disk access resources. + */ + nextLink?: string; +} + /** * @interface * The List Galleries operation response. @@ -6623,6 +6935,14 @@ export type StorageAccountTypes = 'Standard_LRS' | 'Premium_LRS' | 'StandardSSD_ */ export type DiffDiskOptions = 'Local'; +/** + * Defines values for DiffDiskPlacement. + * Possible values include: 'CacheDisk', 'ResourceDisk' + * @readonly + * @enum {string} + */ +export type DiffDiskPlacement = 'CacheDisk' | 'ResourceDisk'; + /** * Defines values for PassNames. * Possible values include: 'OobeSystem' @@ -6728,6 +7048,22 @@ export type OperatingSystemStateTypes = 'Generalized' | 'Specialized'; */ export type IPVersion = 'IPv4' | 'IPv6'; +/** + * Defines values for OrchestrationServiceNames. + * Possible values include: 'AutomaticRepairs' + * @readonly + * @enum {string} + */ +export type OrchestrationServiceNames = 'AutomaticRepairs' ; + +/** + * Defines values for OrchestrationServiceState. + * Possible values include: 'NotRunning', 'Running', 'Suspended' + * @readonly + * @enum {string} + */ +export type OrchestrationServiceState = 'NotRunning' | 'Running' | 'Suspended'; + /** * Defines values for VirtualMachineScaleSetSkuScaleType. * Possible values include: 'Automatic', 'None' @@ -6776,6 +7112,14 @@ export type RollingUpgradeActionType = 'Start' | 'Cancel'; */ export type IntervalInMins = 'ThreeMins' | 'FiveMins' | 'ThirtyMins' | 'SixtyMins'; +/** + * Defines values for OrchestrationServiceStateAction. + * Possible values include: 'Resume', 'Suspend' + * @readonly + * @enum {string} + */ +export type OrchestrationServiceStateAction = 'Resume' | 'Suspend'; + /** * Defines values for ResourceSkuCapacityScaleType. * Possible values include: 'Automatic', 'Manual', 'None' @@ -6835,11 +7179,20 @@ export type DiskState = 'Unattached' | 'Attached' | 'Reserved' | 'ActiveSAS' | ' /** * Defines values for EncryptionType. - * Possible values include: 'EncryptionAtRestWithPlatformKey', 'EncryptionAtRestWithCustomerKey' + * Possible values include: 'EncryptionAtRestWithPlatformKey', 'EncryptionAtRestWithCustomerKey', + * 'EncryptionAtRestWithPlatformAndCustomerKeys' + * @readonly + * @enum {string} + */ +export type EncryptionType = 'EncryptionAtRestWithPlatformKey' | 'EncryptionAtRestWithCustomerKey' | 'EncryptionAtRestWithPlatformAndCustomerKeys'; + +/** + * Defines values for NetworkAccessPolicy. + * Possible values include: 'AllowAll', 'AllowPrivate', 'DenyAll' * @readonly * @enum {string} */ -export type EncryptionType = 'EncryptionAtRestWithPlatformKey' | 'EncryptionAtRestWithCustomerKey'; +export type NetworkAccessPolicy = 'AllowAll' | 'AllowPrivate' | 'DenyAll'; /** * Defines values for SnapshotStorageAccountTypes. @@ -6865,6 +7218,22 @@ export type AccessLevel = 'None' | 'Read' | 'Write'; */ export type DiskEncryptionSetIdentityType = 'SystemAssigned'; +/** + * Defines values for PrivateEndpointServiceConnectionStatus. + * Possible values include: 'Pending', 'Approved', 'Rejected' + * @readonly + * @enum {string} + */ +export type PrivateEndpointServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected'; + +/** + * Defines values for PrivateEndpointConnectionProvisioningState. + * Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Failed' + * @readonly + * @enum {string} + */ +export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed'; + /** * Defines values for AggregatedReplicationState. * Possible values include: 'Unknown', 'InProgress', 'Completed', 'Failed' @@ -6883,11 +7252,11 @@ export type ReplicationState = 'Unknown' | 'Replicating' | 'Completed' | 'Failed /** * Defines values for StorageAccountType. - * Possible values include: 'Standard_LRS', 'Standard_ZRS' + * Possible values include: 'Standard_LRS', 'Standard_ZRS', 'Premium_LRS' * @readonly * @enum {string} */ -export type StorageAccountType = 'Standard_LRS' | 'Standard_ZRS'; +export type StorageAccountType = 'Standard_LRS' | 'Standard_ZRS' | 'Premium_LRS'; /** * Defines values for HostCaching. @@ -7570,9 +7939,9 @@ export type DedicatedHostsListByHostGroupNextResponse = DedicatedHostListResult }; /** - * Contains response data for the get operation. + * Contains response data for the listBySubscription operation. */ -export type VirtualMachineExtensionImagesGetResponse = VirtualMachineExtensionImage & { +export type SshPublicKeysListBySubscriptionResponse = SshPublicKeysGroupListResult & { /** * The underlying HTTP response. */ @@ -7585,14 +7954,14 @@ export type VirtualMachineExtensionImagesGetResponse = VirtualMachineExtensionIm /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineExtensionImage; + parsedBody: SshPublicKeysGroupListResult; }; }; /** - * Contains response data for the listTypes operation. + * Contains response data for the listByResourceGroup operation. */ -export type VirtualMachineExtensionImagesListTypesResponse = Array & { +export type SshPublicKeysListByResourceGroupResponse = SshPublicKeysGroupListResult & { /** * The underlying HTTP response. */ @@ -7605,14 +7974,14 @@ export type VirtualMachineExtensionImagesListTypesResponse = Array & { +export type SshPublicKeysCreateResponse = SshPublicKeyResource & { /** * The underlying HTTP response. */ @@ -7625,14 +7994,14 @@ export type VirtualMachineExtensionImagesListVersionsResponse = Array & { + /** + * 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: VirtualMachineExtensionImage[]; + }; +}; + +/** + * Contains response data for the listVersions operation. + */ +export type VirtualMachineExtensionImagesListVersionsResponse = Array & { + /** + * 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: VirtualMachineExtensionImage[]; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type VirtualMachineExtensionsCreateOrUpdateResponse = VirtualMachineExtension & { + /** + * 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: VirtualMachineExtension; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type VirtualMachineExtensionsUpdateResponse = VirtualMachineExtension & { + /** + * 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: VirtualMachineExtension; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type VirtualMachineExtensionsGetResponse = VirtualMachineExtension & { + /** + * 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: VirtualMachineExtension; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type VirtualMachineExtensionsListResponse = VirtualMachineExtensionsListResult & { + /** + * 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: VirtualMachineExtensionsListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type VirtualMachineExtensionsBeginCreateOrUpdateResponse = VirtualMachineExtension & { + /** + * 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: VirtualMachineExtension; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type VirtualMachineExtensionsBeginUpdateResponse = VirtualMachineExtension & { + /** + * 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: VirtualMachineExtension; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type VirtualMachineImagesGetResponse = VirtualMachineImage & { /** * The underlying HTTP response. */ @@ -9969,6 +10498,206 @@ export type DiskEncryptionSetsListNextResponse = DiskEncryptionSetList & { }; }; +/** + * Contains response data for the createOrUpdate operation. + */ +export type DiskAccessesCreateOrUpdateResponse = DiskAccess & { + /** + * 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: DiskAccess; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type DiskAccessesUpdateResponse = DiskAccess & { + /** + * 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: DiskAccess; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DiskAccessesGetResponse = DiskAccess & { + /** + * 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: DiskAccess; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type DiskAccessesListByResourceGroupResponse = DiskAccessList & { + /** + * 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: DiskAccessList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type DiskAccessesListResponse = DiskAccessList & { + /** + * 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: DiskAccessList; + }; +}; + +/** + * Contains response data for the getPrivateLinkResources operation. + */ +export type DiskAccessesGetPrivateLinkResourcesResponse = PrivateLinkResourceListResult & { + /** + * 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: PrivateLinkResourceListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type DiskAccessesBeginCreateOrUpdateResponse = DiskAccess & { + /** + * 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: DiskAccess; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type DiskAccessesBeginUpdateResponse = DiskAccess & { + /** + * 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: DiskAccess; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type DiskAccessesListByResourceGroupNextResponse = DiskAccessList & { + /** + * 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: DiskAccessList; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type DiskAccessesListNextResponse = DiskAccessList & { + /** + * 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: DiskAccessList; + }; +}; + /** * Contains response data for the createOrUpdate operation. */ diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index 47236fff5f8f..4f520b3530c4 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -796,6 +796,71 @@ export const DedicatedHostUpdate: msRest.CompositeMapper = { } }; +export const SshPublicKeyGenerateKeyPairResult: msRest.CompositeMapper = { + serializedName: "SshPublicKeyGenerateKeyPairResult", + type: { + name: "Composite", + className: "SshPublicKeyGenerateKeyPairResult", + modelProperties: { + privateKey: { + required: true, + serializedName: "privateKey", + type: { + name: "String" + } + }, + publicKey: { + required: true, + serializedName: "publicKey", + type: { + name: "String" + } + }, + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const SshPublicKeyResource: msRest.CompositeMapper = { + serializedName: "SshPublicKeyResource", + type: { + name: "Composite", + className: "SshPublicKeyResource", + modelProperties: { + ...Resource.type.modelProperties, + publicKey: { + serializedName: "properties.publicKey", + type: { + name: "String" + } + } + } + } +}; + +export const SshPublicKeyUpdateResource: msRest.CompositeMapper = { + serializedName: "SshPublicKeyUpdateResource", + type: { + name: "Composite", + className: "SshPublicKeyUpdateResource", + modelProperties: { + ...UpdateResource.type.modelProperties, + publicKey: { + serializedName: "properties.publicKey", + type: { + name: "String" + } + } + } + } +}; + export const VirtualMachineSize: msRest.CompositeMapper = { serializedName: "VirtualMachineSize", type: { @@ -1616,6 +1681,12 @@ export const DiffDiskSettings: msRest.CompositeMapper = { type: { name: "String" } + }, + placement: { + serializedName: "placement", + type: { + name: "String" + } } } } @@ -5136,6 +5207,30 @@ export const VirtualMachineScaleSetVMExtensionsSummary: msRest.CompositeMapper = } }; +export const OrchestrationServiceSummary: msRest.CompositeMapper = { + serializedName: "OrchestrationServiceSummary", + type: { + name: "Composite", + className: "OrchestrationServiceSummary", + modelProperties: { + serviceName: { + readOnly: true, + serializedName: "serviceName", + type: { + name: "String" + } + }, + serviceState: { + readOnly: true, + serializedName: "serviceState", + type: { + name: "String" + } + } + } + } +}; + export const VirtualMachineScaleSetInstanceView: msRest.CompositeMapper = { serializedName: "VirtualMachineScaleSetInstanceView", type: { @@ -5174,6 +5269,19 @@ export const VirtualMachineScaleSetInstanceView: msRest.CompositeMapper = { } } } + }, + orchestrationServices: { + readOnly: true, + serializedName: "orchestrationServices", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OrchestrationServiceSummary" + } + } + } } } } @@ -6126,6 +6234,30 @@ export const VMScaleSetConvertToSinglePlacementGroupInput: msRest.CompositeMappe } }; +export const OrchestrationServiceStateInput: msRest.CompositeMapper = { + serializedName: "OrchestrationServiceStateInput", + type: { + name: "Composite", + className: "OrchestrationServiceStateInput", + modelProperties: { + serviceName: { + required: true, + serializedName: "serviceName", + type: { + name: "String" + } + }, + action: { + required: true, + serializedName: "action", + type: { + name: "String" + } + } + } + } +}; + export const RunCommandInputParameter: msRest.CompositeMapper = { serializedName: "RunCommandInputParameter", type: { @@ -7167,6 +7299,18 @@ export const Disk: msRest.CompositeMapper = { } } } + }, + networkAccessPolicy: { + serializedName: "properties.networkAccessPolicy", + type: { + name: "String" + } + }, + diskAccessId: { + serializedName: "properties.diskAccessId", + type: { + name: "String" + } } } } @@ -7238,6 +7382,18 @@ export const DiskUpdate: msRest.CompositeMapper = { className: "Encryption" } }, + networkAccessPolicy: { + serializedName: "properties.networkAccessPolicy", + type: { + name: "String" + } + }, + diskAccessId: { + serializedName: "properties.diskAccessId", + type: { + name: "String" + } + }, tags: { serializedName: "tags", type: { @@ -7422,6 +7578,18 @@ export const Snapshot: msRest.CompositeMapper = { name: "Composite", className: "Encryption" } + }, + networkAccessPolicy: { + serializedName: "properties.networkAccessPolicy", + type: { + name: "String" + } + }, + diskAccessId: { + serializedName: "properties.diskAccessId", + type: { + name: "String" + } } } } @@ -7463,6 +7631,18 @@ export const SnapshotUpdate: msRest.CompositeMapper = { className: "Encryption" } }, + networkAccessPolicy: { + serializedName: "properties.networkAccessPolicy", + type: { + name: "String" + } + }, + diskAccessId: { + serializedName: "properties.diskAccessId", + type: { + name: "String" + } + }, tags: { serializedName: "tags", type: { @@ -7529,6 +7709,12 @@ export const DiskEncryptionSet: msRest.CompositeMapper = { className: "EncryptionSetIdentity" } }, + encryptionType: { + serializedName: "properties.encryptionType", + type: { + name: "String" + } + }, activeKey: { serializedName: "properties.activeKey", type: { @@ -7588,6 +7774,245 @@ export const DiskEncryptionSetUpdate: msRest.CompositeMapper = { } }; +export const PrivateEndpoint: msRest.CompositeMapper = { + serializedName: "PrivateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { + serializedName: "PrivateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + actionsRequired: { + serializedName: "actionsRequired", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint" + } + }, + privateLinkServiceConnectionState: { + required: true, + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const DiskAccess: msRest.CompositeMapper = { + serializedName: "DiskAccess", + type: { + name: "Composite", + className: "DiskAccess", + modelProperties: { + ...Resource.type.modelProperties, + privateEndpointConnections: { + readOnly: true, + serializedName: "properties.privateEndpointConnections", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + timeCreated: { + readOnly: true, + serializedName: "properties.timeCreated", + type: { + name: "DateTime" + } + } + } + } +}; + +export const DiskAccessUpdate: msRest.CompositeMapper = { + serializedName: "DiskAccessUpdate", + type: { + name: "Composite", + className: "DiskAccessUpdate", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PrivateLinkResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkResource", + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + groupId: { + readOnly: true, + serializedName: "properties.groupId", + type: { + name: "String" + } + }, + requiredMembers: { + readOnly: true, + serializedName: "properties.requiredMembers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkResourceListResult: msRest.CompositeMapper = { + serializedName: "PrivateLinkResourceListResult", + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } + } + } + } + } +}; + export const GalleryIdentifier: msRest.CompositeMapper = { serializedName: "GalleryIdentifier", type: { @@ -8411,7 +8836,6 @@ export const GalleryArtifactVersionSource: msRest.CompositeMapper = { className: "GalleryArtifactVersionSource", modelProperties: { id: { - required: true, serializedName: "id", type: { name: "String" @@ -9276,6 +9700,35 @@ export const DedicatedHostListResult: msRest.CompositeMapper = { } }; +export const SshPublicKeysGroupListResult: msRest.CompositeMapper = { + serializedName: "SshPublicKeysGroupListResult", + type: { + name: "Composite", + className: "SshPublicKeysGroupListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SshPublicKeyResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const ListUsagesResult: msRest.CompositeMapper = { serializedName: "ListUsagesResult", type: { @@ -9682,6 +10135,35 @@ export const DiskEncryptionSetList: msRest.CompositeMapper = { } }; +export const DiskAccessList: msRest.CompositeMapper = { + serializedName: "DiskAccessList", + type: { + name: "Composite", + className: "DiskAccessList", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskAccess" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const GalleryList: msRest.CompositeMapper = { serializedName: "GalleryList", type: { diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index 4207c0004079..61aee4cb1589 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.ts @@ -26,7 +26,7 @@ export const apiVersion0: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2019-07-01', + defaultValue: '2019-12-01', type: { name: "String" } @@ -50,25 +50,13 @@ export const apiVersion2: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2019-11-01', + defaultValue: '2020-05-01', type: { name: "String" } } }; export const apiVersion3: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2019-12-01', - type: { - name: "String" - } - } -}; -export const apiVersion4: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, @@ -110,6 +98,16 @@ export const containerServiceName: msRest.OperationURLParameter = { } } }; +export const diskAccessName: msRest.OperationURLParameter = { + parameterPath: "diskAccessName", + mapper: { + required: true, + serializedName: "diskAccessName", + type: { + name: "String" + } + } +}; export const diskEncryptionSetName: msRest.OperationURLParameter = { parameterPath: "diskEncryptionSetName", mapper: { @@ -412,6 +410,16 @@ export const snapshotName: msRest.OperationURLParameter = { } } }; +export const sshPublicKeyName: msRest.OperationURLParameter = { + parameterPath: "sshPublicKeyName", + mapper: { + required: true, + serializedName: "sshPublicKeyName", + type: { + name: "String" + } + } +}; export const statusOnly: msRest.OperationQueryParameter = { parameterPath: [ "options", diff --git a/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts b/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts index 98eda426a9e5..3db10c2e0f11 100644 --- a/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts +++ b/sdk/compute/arm-compute/src/models/proximityPlacementGroupsMappers.ts @@ -49,6 +49,7 @@ export { DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -106,6 +107,9 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, ProximityPlacementGroupListResult, ProximityPlacementGroupUpdate, @@ -128,6 +132,8 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, + SshPublicKeyUpdateResource, StorageProfile, SubResource, SubResourceReadOnly, diff --git a/sdk/compute/arm-compute/src/models/snapshotsMappers.ts b/sdk/compute/arm-compute/src/models/snapshotsMappers.ts index 775006fffb3d..310b811474d0 100644 --- a/sdk/compute/arm-compute/src/models/snapshotsMappers.ts +++ b/sdk/compute/arm-compute/src/models/snapshotsMappers.ts @@ -17,7 +17,6 @@ export { AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, AvailabilitySet, - AvailabilitySetUpdate, BaseResource, BillingProfile, BootDiagnostics, @@ -43,13 +42,12 @@ export { DedicatedHostAllocatableVM, DedicatedHostAvailableCapacity, DedicatedHostGroup, - DedicatedHostGroupUpdate, DedicatedHostInstanceView, - DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -91,7 +89,6 @@ export { ImagePurchasePlan, ImageReference, ImageStorageProfile, - ImageUpdate, InnerError, InstanceViewStatus, KeyVaultAndKeyReference, @@ -108,8 +105,10 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, - ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -131,13 +130,13 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, StorageProfile, SubResource, SubResourceReadOnly, SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, - UpdateResource, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -151,7 +150,6 @@ export { VirtualMachineExtensionHandlerInstanceView, VirtualMachineExtensionImage, VirtualMachineExtensionInstanceView, - VirtualMachineExtensionUpdate, VirtualMachineHealthStatus, VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, @@ -176,21 +174,14 @@ export { VirtualMachineScaleSetPublicIPAddressConfiguration, VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, VirtualMachineScaleSetStorageProfile, - VirtualMachineScaleSetUpdate, VirtualMachineScaleSetUpdateIPConfiguration, VirtualMachineScaleSetUpdateNetworkConfiguration, - VirtualMachineScaleSetUpdateNetworkProfile, - VirtualMachineScaleSetUpdateOSDisk, - VirtualMachineScaleSetUpdateOSProfile, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, - VirtualMachineScaleSetUpdateStorageProfile, - VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, - VirtualMachineUpdate, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts b/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts new file mode 100644 index 000000000000..41b8b50d1ad9 --- /dev/null +++ b/sdk/compute/arm-compute/src/models/sshPublicKeysMappers.ts @@ -0,0 +1,201 @@ +/* + * 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, + AutomaticRepairsPolicy, + AvailabilitySet, + AvailabilitySetUpdate, + BaseResource, + BillingProfile, + BootDiagnostics, + BootDiagnosticsInstanceView, + CloudError, + ContainerService, + ContainerServiceAgentPoolProfile, + ContainerServiceCustomProfile, + ContainerServiceDiagnosticsProfile, + ContainerServiceLinuxProfile, + ContainerServiceMasterProfile, + ContainerServiceOrchestratorProfile, + ContainerServiceServicePrincipalProfile, + ContainerServiceSshConfiguration, + ContainerServiceSshPublicKey, + ContainerServiceVMDiagnostics, + ContainerServiceWindowsProfile, + CreationData, + DataDisk, + DataDiskImage, + DataDiskImageEncryption, + DedicatedHost, + DedicatedHostAllocatableVM, + DedicatedHostAvailableCapacity, + DedicatedHostGroup, + DedicatedHostGroupUpdate, + DedicatedHostInstanceView, + DedicatedHostUpdate, + DiagnosticsProfile, + DiffDiskSettings, + Disallowed, + Disk, + DiskAccess, + DiskEncryptionSet, + DiskEncryptionSetParameters, + DiskEncryptionSettings, + DiskImageEncryption, + DiskInstanceView, + DiskSku, + Encryption, + EncryptionImages, + EncryptionSetIdentity, + EncryptionSettingsCollection, + EncryptionSettingsElement, + Gallery, + GalleryApplication, + GalleryApplicationUpdate, + GalleryApplicationVersion, + GalleryApplicationVersionPublishingProfile, + GalleryApplicationVersionUpdate, + GalleryArtifactPublishingProfileBase, + GalleryArtifactVersionSource, + GalleryDataDiskImage, + GalleryDiskImage, + GalleryIdentifier, + GalleryImage, + GalleryImageIdentifier, + GalleryImageUpdate, + GalleryImageVersion, + GalleryImageVersionPublishingProfile, + GalleryImageVersionStorageProfile, + GalleryImageVersionUpdate, + GalleryOSDiskImage, + GalleryUpdate, + HardwareProfile, + Image, + ImageDataDisk, + ImageDisk, + ImageDiskReference, + ImageOSDisk, + ImagePurchasePlan, + ImageReference, + ImageStorageProfile, + ImageUpdate, + InnerError, + InstanceViewStatus, + KeyVaultAndKeyReference, + KeyVaultAndSecretReference, + KeyVaultKeyReference, + KeyVaultSecretReference, + LinuxConfiguration, + MaintenanceRedeployStatus, + ManagedDiskParameters, + NetworkInterfaceReference, + NetworkProfile, + OSDisk, + OSDiskImage, + OSDiskImageEncryption, + OSProfile, + Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, + ProximityPlacementGroup, + ProximityPlacementGroupUpdate, + PurchasePlan, + RecommendedMachineConfiguration, + RegionalReplicationStatus, + ReplicationStatus, + Resource, + ResourceRange, + RollingUpgradePolicy, + RollingUpgradeProgressInfo, + RollingUpgradeRunningStatus, + RollingUpgradeStatusInfo, + ScaleInPolicy, + ScheduledEventsProfile, + ShareInfoElement, + Sku, + Snapshot, + SnapshotSku, + SourceVault, + SshConfiguration, + SshPublicKey, + SshPublicKeyGenerateKeyPairResult, + SshPublicKeyResource, + SshPublicKeysGroupListResult, + SshPublicKeyUpdateResource, + StorageProfile, + SubResource, + SubResourceReadOnly, + SubResourceWithColocationStatus, + TargetRegion, + TerminateNotificationProfile, + UpdateResource, + UpdateResourceDefinition, + UpgradePolicy, + UserArtifactSource, + VaultCertificate, + VaultSecretGroup, + VirtualHardDisk, + VirtualMachine, + VirtualMachineAgentInstanceView, + VirtualMachineCaptureResult, + VirtualMachineExtension, + VirtualMachineExtensionHandlerInstanceView, + VirtualMachineExtensionImage, + VirtualMachineExtensionInstanceView, + VirtualMachineExtensionUpdate, + VirtualMachineHealthStatus, + VirtualMachineIdentity, + VirtualMachineIdentityUserAssignedIdentitiesValue, + VirtualMachineImage, + VirtualMachineImageResource, + VirtualMachineInstanceView, + VirtualMachineScaleSet, + VirtualMachineScaleSetDataDisk, + VirtualMachineScaleSetExtension, + VirtualMachineScaleSetExtensionProfile, + VirtualMachineScaleSetExtensionUpdate, + VirtualMachineScaleSetIdentity, + VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, + VirtualMachineScaleSetIPConfiguration, + VirtualMachineScaleSetIpTag, + VirtualMachineScaleSetManagedDiskParameters, + VirtualMachineScaleSetNetworkConfiguration, + VirtualMachineScaleSetNetworkConfigurationDnsSettings, + VirtualMachineScaleSetNetworkProfile, + VirtualMachineScaleSetOSDisk, + VirtualMachineScaleSetOSProfile, + VirtualMachineScaleSetPublicIPAddressConfiguration, + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, + VirtualMachineScaleSetStorageProfile, + VirtualMachineScaleSetUpdate, + VirtualMachineScaleSetUpdateIPConfiguration, + VirtualMachineScaleSetUpdateNetworkConfiguration, + VirtualMachineScaleSetUpdateNetworkProfile, + VirtualMachineScaleSetUpdateOSDisk, + VirtualMachineScaleSetUpdateOSProfile, + VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, + VirtualMachineScaleSetUpdateStorageProfile, + VirtualMachineScaleSetUpdateVMProfile, + VirtualMachineScaleSetVM, + VirtualMachineScaleSetVMInstanceView, + VirtualMachineScaleSetVMNetworkProfileConfiguration, + VirtualMachineScaleSetVMProfile, + VirtualMachineScaleSetVMProtectionPolicy, + VirtualMachineUpdate, + WindowsConfiguration, + WinRMConfiguration, + WinRMListener +} from "../models/mappers"; diff --git a/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts index e611b2ffb6b4..a441fa6b1759 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineExtensionImagesMappers.ts @@ -16,7 +16,6 @@ export { AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, AvailabilitySet, - AvailabilitySetUpdate, BaseResource, BillingProfile, BootDiagnostics, @@ -42,13 +41,12 @@ export { DedicatedHostAllocatableVM, DedicatedHostAvailableCapacity, DedicatedHostGroup, - DedicatedHostGroupUpdate, DedicatedHostInstanceView, - DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -89,7 +87,6 @@ export { ImagePurchasePlan, ImageReference, ImageStorageProfile, - ImageUpdate, InnerError, InstanceViewStatus, KeyVaultAndKeyReference, @@ -106,8 +103,10 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, - ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -127,13 +126,13 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, StorageProfile, SubResource, SubResourceReadOnly, SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, - UpdateResource, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -147,7 +146,6 @@ export { VirtualMachineExtensionHandlerInstanceView, VirtualMachineExtensionImage, VirtualMachineExtensionInstanceView, - VirtualMachineExtensionUpdate, VirtualMachineHealthStatus, VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, @@ -172,21 +170,14 @@ export { VirtualMachineScaleSetPublicIPAddressConfiguration, VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, VirtualMachineScaleSetStorageProfile, - VirtualMachineScaleSetUpdate, VirtualMachineScaleSetUpdateIPConfiguration, VirtualMachineScaleSetUpdateNetworkConfiguration, - VirtualMachineScaleSetUpdateNetworkProfile, - VirtualMachineScaleSetUpdateOSDisk, - VirtualMachineScaleSetUpdateOSProfile, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, - VirtualMachineScaleSetUpdateStorageProfile, - VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, - VirtualMachineUpdate, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts index be4d9613ee15..88643ee3bed5 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineExtensionsMappers.ts @@ -49,6 +49,7 @@ export { DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -106,6 +107,9 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, ProximityPlacementGroupUpdate, PurchasePlan, @@ -127,6 +131,8 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, + SshPublicKeyUpdateResource, StorageProfile, SubResource, SubResourceReadOnly, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts index e611b2ffb6b4..a441fa6b1759 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineImagesMappers.ts @@ -16,7 +16,6 @@ export { AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, AvailabilitySet, - AvailabilitySetUpdate, BaseResource, BillingProfile, BootDiagnostics, @@ -42,13 +41,12 @@ export { DedicatedHostAllocatableVM, DedicatedHostAvailableCapacity, DedicatedHostGroup, - DedicatedHostGroupUpdate, DedicatedHostInstanceView, - DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -89,7 +87,6 @@ export { ImagePurchasePlan, ImageReference, ImageStorageProfile, - ImageUpdate, InnerError, InstanceViewStatus, KeyVaultAndKeyReference, @@ -106,8 +103,10 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, - ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -127,13 +126,13 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, StorageProfile, SubResource, SubResourceReadOnly, SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, - UpdateResource, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -147,7 +146,6 @@ export { VirtualMachineExtensionHandlerInstanceView, VirtualMachineExtensionImage, VirtualMachineExtensionInstanceView, - VirtualMachineExtensionUpdate, VirtualMachineHealthStatus, VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, @@ -172,21 +170,14 @@ export { VirtualMachineScaleSetPublicIPAddressConfiguration, VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, VirtualMachineScaleSetStorageProfile, - VirtualMachineScaleSetUpdate, VirtualMachineScaleSetUpdateIPConfiguration, VirtualMachineScaleSetUpdateNetworkConfiguration, - VirtualMachineScaleSetUpdateNetworkProfile, - VirtualMachineScaleSetUpdateOSDisk, - VirtualMachineScaleSetUpdateOSProfile, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, - VirtualMachineScaleSetUpdateStorageProfile, - VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, - VirtualMachineUpdate, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts index b10f7a75f125..1008bad28229 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetExtensionsMappers.ts @@ -16,7 +16,6 @@ export { AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, AvailabilitySet, - AvailabilitySetUpdate, BaseResource, BillingProfile, BootDiagnostics, @@ -42,13 +41,12 @@ export { DedicatedHostAllocatableVM, DedicatedHostAvailableCapacity, DedicatedHostGroup, - DedicatedHostGroupUpdate, DedicatedHostInstanceView, - DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -89,7 +87,6 @@ export { ImagePurchasePlan, ImageReference, ImageStorageProfile, - ImageUpdate, InnerError, InstanceViewStatus, KeyVaultAndKeyReference, @@ -106,8 +103,10 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, - ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -127,13 +126,13 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, StorageProfile, SubResource, SubResourceReadOnly, SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, - UpdateResource, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -147,7 +146,6 @@ export { VirtualMachineExtensionHandlerInstanceView, VirtualMachineExtensionImage, VirtualMachineExtensionInstanceView, - VirtualMachineExtensionUpdate, VirtualMachineHealthStatus, VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, @@ -173,21 +171,14 @@ export { VirtualMachineScaleSetPublicIPAddressConfiguration, VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, VirtualMachineScaleSetStorageProfile, - VirtualMachineScaleSetUpdate, VirtualMachineScaleSetUpdateIPConfiguration, VirtualMachineScaleSetUpdateNetworkConfiguration, - VirtualMachineScaleSetUpdateNetworkProfile, - VirtualMachineScaleSetUpdateOSDisk, - VirtualMachineScaleSetUpdateOSProfile, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, - VirtualMachineScaleSetUpdateStorageProfile, - VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, - VirtualMachineUpdate, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts index e611b2ffb6b4..a441fa6b1759 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetRollingUpgradesMappers.ts @@ -16,7 +16,6 @@ export { AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, AvailabilitySet, - AvailabilitySetUpdate, BaseResource, BillingProfile, BootDiagnostics, @@ -42,13 +41,12 @@ export { DedicatedHostAllocatableVM, DedicatedHostAvailableCapacity, DedicatedHostGroup, - DedicatedHostGroupUpdate, DedicatedHostInstanceView, - DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -89,7 +87,6 @@ export { ImagePurchasePlan, ImageReference, ImageStorageProfile, - ImageUpdate, InnerError, InstanceViewStatus, KeyVaultAndKeyReference, @@ -106,8 +103,10 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, - ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -127,13 +126,13 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, StorageProfile, SubResource, SubResourceReadOnly, SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, - UpdateResource, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -147,7 +146,6 @@ export { VirtualMachineExtensionHandlerInstanceView, VirtualMachineExtensionImage, VirtualMachineExtensionInstanceView, - VirtualMachineExtensionUpdate, VirtualMachineHealthStatus, VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, @@ -172,21 +170,14 @@ export { VirtualMachineScaleSetPublicIPAddressConfiguration, VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, VirtualMachineScaleSetStorageProfile, - VirtualMachineScaleSetUpdate, VirtualMachineScaleSetUpdateIPConfiguration, VirtualMachineScaleSetUpdateNetworkConfiguration, - VirtualMachineScaleSetUpdateNetworkProfile, - VirtualMachineScaleSetUpdateOSDisk, - VirtualMachineScaleSetUpdateOSProfile, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, - VirtualMachineScaleSetUpdateStorageProfile, - VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMNetworkProfileConfiguration, VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, - VirtualMachineUpdate, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts index be4d9613ee15..88643ee3bed5 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMExtensionsMappers.ts @@ -49,6 +49,7 @@ export { DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -106,6 +107,9 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, ProximityPlacementGroupUpdate, PurchasePlan, @@ -127,6 +131,8 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, + SshPublicKeyUpdateResource, StorageProfile, SubResource, SubResourceReadOnly, diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts index fc7ba43f4734..3daef4ba4a21 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetVMsMappers.ts @@ -16,7 +16,6 @@ export { AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, AvailabilitySet, - AvailabilitySetUpdate, BaseResource, BillingProfile, BootDiagnostics, @@ -42,13 +41,12 @@ export { DedicatedHostAllocatableVM, DedicatedHostAvailableCapacity, DedicatedHostGroup, - DedicatedHostGroupUpdate, DedicatedHostInstanceView, - DedicatedHostUpdate, DiagnosticsProfile, DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -89,7 +87,6 @@ export { ImagePurchasePlan, ImageReference, ImageStorageProfile, - ImageUpdate, InnerError, InstanceViewStatus, KeyVaultAndKeyReference, @@ -106,8 +103,10 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, - ProximityPlacementGroupUpdate, PurchasePlan, RecommendedMachineConfiguration, RegionalReplicationStatus, @@ -130,13 +129,13 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, StorageProfile, SubResource, SubResourceReadOnly, SubResourceWithColocationStatus, TargetRegion, TerminateNotificationProfile, - UpdateResource, UpdateResourceDefinition, UpgradePolicy, UserArtifactSource, @@ -150,7 +149,6 @@ export { VirtualMachineExtensionHandlerInstanceView, VirtualMachineExtensionImage, VirtualMachineExtensionInstanceView, - VirtualMachineExtensionUpdate, VirtualMachineHealthStatus, VirtualMachineIdentity, VirtualMachineIdentityUserAssignedIdentitiesValue, @@ -177,15 +175,9 @@ export { VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, VirtualMachineScaleSetReimageParameters, VirtualMachineScaleSetStorageProfile, - VirtualMachineScaleSetUpdate, VirtualMachineScaleSetUpdateIPConfiguration, VirtualMachineScaleSetUpdateNetworkConfiguration, - VirtualMachineScaleSetUpdateNetworkProfile, - VirtualMachineScaleSetUpdateOSDisk, - VirtualMachineScaleSetUpdateOSProfile, VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, - VirtualMachineScaleSetUpdateStorageProfile, - VirtualMachineScaleSetUpdateVMProfile, VirtualMachineScaleSetVM, VirtualMachineScaleSetVMInstanceView, VirtualMachineScaleSetVMListResult, @@ -193,7 +185,6 @@ export { VirtualMachineScaleSetVMProfile, VirtualMachineScaleSetVMProtectionPolicy, VirtualMachineScaleSetVMReimageParameters, - VirtualMachineUpdate, WindowsConfiguration, WinRMConfiguration, WinRMListener diff --git a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts index e89157d00c26..8caa1c186f82 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachineScaleSetsMappers.ts @@ -49,6 +49,7 @@ export { DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -101,11 +102,16 @@ export { ManagedDiskParameters, NetworkInterfaceReference, NetworkProfile, + OrchestrationServiceStateInput, + OrchestrationServiceSummary, OSDisk, OSDiskImage, OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, ProximityPlacementGroupUpdate, PurchasePlan, @@ -129,6 +135,8 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, + SshPublicKeyUpdateResource, StorageProfile, SubResource, SubResourceReadOnly, diff --git a/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts b/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts index f4f08b90903a..700637f84ee2 100644 --- a/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts +++ b/sdk/compute/arm-compute/src/models/virtualMachinesMappers.ts @@ -49,6 +49,7 @@ export { DiffDiskSettings, Disallowed, Disk, + DiskAccess, DiskEncryptionSet, DiskEncryptionSetParameters, DiskEncryptionSettings, @@ -106,6 +107,9 @@ export { OSDiskImageEncryption, OSProfile, Plan, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, ProximityPlacementGroup, ProximityPlacementGroupUpdate, PurchasePlan, @@ -130,6 +134,8 @@ export { SourceVault, SshConfiguration, SshPublicKey, + SshPublicKeyResource, + SshPublicKeyUpdateResource, StorageProfile, SubResource, SubResourceReadOnly, diff --git a/sdk/compute/arm-compute/src/operations/containerServices.ts b/sdk/compute/arm-compute/src/operations/containerServices.ts index a0b681fc5406..fb409253f04a 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.apiVersion4 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -299,7 +299,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -323,7 +323,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -348,7 +348,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -386,7 +386,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/compute/arm-compute/src/operations/diskAccesses.ts b/sdk/compute/arm-compute/src/operations/diskAccesses.ts new file mode 100644 index 000000000000..840735b7139e --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/diskAccesses.ts @@ -0,0 +1,557 @@ +/* + * 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/diskAccessesMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a DiskAccesses. */ +export class DiskAccesses { + private readonly client: ComputeManagementClientContext; + + /** + * Create a DiskAccesses. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * Creates or updates a disk access resource + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param diskAccess disk access object supplied in the body of the Put disk access operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, diskAccessName: string, diskAccess: Models.DiskAccess, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,diskAccessName,diskAccess,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates (patches) a disk access resource. + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param diskAccess disk access object supplied in the body of the Patch disk access operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, diskAccessName: string, diskAccess: Models.DiskAccessUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,diskAccessName,diskAccess,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets information about a disk access resource. + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, diskAccessName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param callback The callback + */ + get(resourceGroupName: string, diskAccessName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, diskAccessName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, diskAccessName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + diskAccessName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes a disk access resource. + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, diskAccessName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,diskAccessName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Lists all the disk access resources under 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 the disk access resources under a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets the private link resources possible under disk access resource + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param [options] The optional parameters + * @returns Promise + */ + getPrivateLinkResources(resourceGroupName: string, diskAccessName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param callback The callback + */ + getPrivateLinkResources(resourceGroupName: string, diskAccessName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param options The optional parameters + * @param callback The callback + */ + getPrivateLinkResources(resourceGroupName: string, diskAccessName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getPrivateLinkResources(resourceGroupName: string, diskAccessName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + diskAccessName, + options + }, + getPrivateLinkResourcesOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a disk access resource + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param diskAccess disk access object supplied in the body of the Put disk access operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, diskAccessName: string, diskAccess: Models.DiskAccess, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + diskAccessName, + diskAccess, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Updates (patches) a disk access resource. + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param diskAccess disk access object supplied in the body of the Patch disk access operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, diskAccessName: string, diskAccess: Models.DiskAccessUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + diskAccessName, + diskAccess, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * Deletes a disk access resource. + * @param resourceGroupName The name of the resource group. + * @param diskAccessName The name of the disk access resource that is being created. The name can't + * be changed after the disk encryption set is created. Supported characters for the name are a-z, + * A-Z, 0-9 and _. The maximum name length is 80 characters. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, diskAccessName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + diskAccessName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Lists all the disk access resources under 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; + } + + /** + * Lists all the disk access resources under a subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + 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/diskAccesses/{diskAccessName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.diskAccessName + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiskAccess + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiskAccessList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskAccesses", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiskAccessList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getPrivateLinkResourcesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateLinkResources", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.diskAccessName + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResourceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.diskAccessName + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "diskAccess", + mapper: { + ...Mappers.DiskAccess, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DiskAccess + }, + 202: { + bodyMapper: Mappers.DiskAccess + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.diskAccessName + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "diskAccess", + mapper: { + ...Mappers.DiskAccessUpdate, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DiskAccess + }, + 202: { + bodyMapper: Mappers.DiskAccess + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.diskAccessName + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + 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.DiskAccessList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiskAccessList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts index d28066327032..328526cca99e 100644 --- a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts +++ b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts @@ -385,7 +385,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.DiskEncryptionSet }, - 201: { + 202: { bodyMapper: Mappers.DiskEncryptionSet }, default: { diff --git a/sdk/compute/arm-compute/src/operations/galleries.ts b/sdk/compute/arm-compute/src/operations/galleries.ts index f5b3dd565142..4f6c2b97875d 100644 --- a/sdk/compute/arm-compute/src/operations/galleries.ts +++ b/sdk/compute/arm-compute/src/operations/galleries.ts @@ -279,7 +279,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.galleryName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -303,7 +303,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -326,7 +326,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -351,7 +351,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -389,7 +389,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -421,7 +421,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.galleryName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts index 6f21204e3e9e..e8ca678a3f1c 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts @@ -303,7 +303,7 @@ const getOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.expand0, - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -329,7 +329,7 @@ const listByGalleryApplicationOperationSpec: msRest.OperationSpec = { Parameters.galleryApplicationName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -356,7 +356,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryApplicationVersionName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -396,7 +396,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryApplicationVersionName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -430,7 +430,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.galleryApplicationVersionName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/compute/arm-compute/src/operations/galleryApplications.ts b/sdk/compute/arm-compute/src/operations/galleryApplications.ts index 08d78de63174..5ac2e43b7d24 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplications.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplications.ts @@ -263,7 +263,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.galleryApplicationName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -288,7 +288,7 @@ const listByGalleryOperationSpec: msRest.OperationSpec = { Parameters.galleryName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -314,7 +314,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryApplicationName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -353,7 +353,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryApplicationName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -386,7 +386,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.galleryApplicationName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts index 0799bdde9106..007854770ed3 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts @@ -282,7 +282,7 @@ const getOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.expand0, - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -308,7 +308,7 @@ const listByGalleryImageOperationSpec: msRest.OperationSpec = { Parameters.galleryImageName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -335,7 +335,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryImageVersionName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -375,7 +375,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryImageVersionName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -409,7 +409,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.galleryImageVersionName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/compute/arm-compute/src/operations/galleryImages.ts b/sdk/compute/arm-compute/src/operations/galleryImages.ts index bdc5ac10b2ce..e0e5b21e7060 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImages.ts @@ -261,7 +261,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.galleryImageName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -286,7 +286,7 @@ const listByGalleryOperationSpec: msRest.OperationSpec = { Parameters.galleryName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -312,7 +312,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryImageName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -351,7 +351,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.galleryImageName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -384,7 +384,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.galleryImageName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/compute/arm-compute/src/operations/index.ts b/sdk/compute/arm-compute/src/operations/index.ts index a18768f5f0c2..be38385dadc1 100644 --- a/sdk/compute/arm-compute/src/operations/index.ts +++ b/sdk/compute/arm-compute/src/operations/index.ts @@ -13,6 +13,7 @@ export * from "./availabilitySets"; export * from "./proximityPlacementGroups"; export * from "./dedicatedHostGroups"; export * from "./dedicatedHosts"; +export * from "./sshPublicKeys"; export * from "./virtualMachineExtensionImages"; export * from "./virtualMachineExtensions"; export * from "./virtualMachineImages"; @@ -31,6 +32,7 @@ export * from "./resourceSkus"; export * from "./disks"; export * from "./snapshots"; export * from "./diskEncryptionSets"; +export * from "./diskAccesses"; export * from "./galleries"; export * from "./galleryImages"; export * from "./galleryImageVersions"; diff --git a/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts b/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts new file mode 100644 index 000000000000..5a109035ac24 --- /dev/null +++ b/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts @@ -0,0 +1,542 @@ +/* + * 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/sshPublicKeysMappers"; +import * as Parameters from "../models/parameters"; +import { ComputeManagementClientContext } from "../computeManagementClientContext"; + +/** Class representing a SshPublicKeys. */ +export class SshPublicKeys { + private readonly client: ComputeManagementClientContext; + + /** + * Create a SshPublicKeys. + * @param {ComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: ComputeManagementClientContext) { + this.client = client; + } + + /** + * Lists all of the SSH public keys in the subscription. Use the nextLink property in the response + * to get the next page of SSH public keys. + * @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 SSH public keys in the specified resource group. Use the nextLink property in + * the response to get the next page of SSH public keys. + * @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; + } + + /** + * Creates a new SSH public key resource. + * @param resourceGroupName The name of the resource group. + * @param sshPublicKeyName The name of the SSH public key. + * @param parameters Parameters supplied to create the SSH public key. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, sshPublicKeyName: string, parameters: Models.SshPublicKeyResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param sshPublicKeyName The name of the SSH public key. + * @param parameters Parameters supplied to create the SSH public key. + * @param callback The callback + */ + create(resourceGroupName: string, sshPublicKeyName: string, parameters: Models.SshPublicKeyResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param sshPublicKeyName The name of the SSH public key. + * @param parameters Parameters supplied to create the SSH public key. + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, sshPublicKeyName: string, parameters: Models.SshPublicKeyResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, sshPublicKeyName: string, parameters: Models.SshPublicKeyResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + sshPublicKeyName, + parameters, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Updates a new SSH public key resource. + * @param resourceGroupName The name of the resource group. + * @param sshPublicKeyName The name of the SSH public key. + * @param parameters Parameters supplied to update the SSH public key. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, sshPublicKeyName: string, parameters: Models.SshPublicKeyUpdateResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param sshPublicKeyName The name of the SSH public key. + * @param parameters Parameters supplied to update the SSH public key. + * @param callback The callback + */ + update(resourceGroupName: string, sshPublicKeyName: string, parameters: Models.SshPublicKeyUpdateResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param sshPublicKeyName The name of the SSH public key. + * @param parameters Parameters supplied to update the SSH public key. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, sshPublicKeyName: string, parameters: Models.SshPublicKeyUpdateResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, sshPublicKeyName: string, parameters: Models.SshPublicKeyUpdateResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + sshPublicKeyName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Delete an SSH public key. + * @param resourceGroupName The name of the resource group. + * @param sshPublicKeyName The name of the SSH public key. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, sshPublicKeyName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param sshPublicKeyName The name of the SSH public key. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, sshPublicKeyName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param sshPublicKeyName The name of the SSH public key. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, sshPublicKeyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, sshPublicKeyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + sshPublicKeyName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Retrieves information about an SSH public key. + * @param resourceGroupName The name of the resource group. + * @param sshPublicKeyName The name of the SSH public key. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, sshPublicKeyName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param sshPublicKeyName The name of the SSH public key. + * @param callback The callback + */ + get(resourceGroupName: string, sshPublicKeyName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param sshPublicKeyName The name of the SSH public key. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, sshPublicKeyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, sshPublicKeyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + sshPublicKeyName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Generates and returns a public/private key pair and populates the SSH public key resource with + * the public key. The length of the key will be 3072 bits. This operation can only be performed + * once per SSH public key resource. + * @param resourceGroupName The name of the resource group. + * @param sshPublicKeyName The name of the SSH public key. + * @param [options] The optional parameters + * @returns Promise + */ + generateKeyPair(resourceGroupName: string, sshPublicKeyName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param sshPublicKeyName The name of the SSH public key. + * @param callback The callback + */ + generateKeyPair(resourceGroupName: string, sshPublicKeyName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param sshPublicKeyName The name of the SSH public key. + * @param options The optional parameters + * @param callback The callback + */ + generateKeyPair(resourceGroupName: string, sshPublicKeyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + generateKeyPair(resourceGroupName: string, sshPublicKeyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + sshPublicKeyName, + options + }, + generateKeyPairOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the SSH public keys in the subscription. Use the nextLink property in the response + * to get the next page of SSH public keys. + * @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 of the SSH public keys in the specified resource group. Use the nextLink property in + * the response to get the next page of SSH public keys. + * @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 listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Compute/sshPublicKeys", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SshPublicKeysGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SshPublicKeysGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.sshPublicKeyName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.SshPublicKeyResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SshPublicKeyResource + }, + 201: { + bodyMapper: Mappers.SshPublicKeyResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.sshPublicKeyName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.SshPublicKeyUpdateResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SshPublicKeyResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.sshPublicKeyName, + 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/sshPublicKeys/{sshPublicKeyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.sshPublicKeyName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SshPublicKeyResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const generateKeyPairOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}/generateKeyPair", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.sshPublicKeyName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SshPublicKeyGenerateKeyPairResult + }, + 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.SshPublicKeysGroupListResult + }, + 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.SshPublicKeysGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts index b77e80b27d03..90e004ebb619 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts @@ -269,6 +269,43 @@ export class VirtualMachineScaleSetVMs { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * The operation to simulate the eviction of spot virtual machine in a VM scale set. The eviction + * will occur within 30 minutes of calling the API + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param [options] The optional parameters + * @returns Promise + */ + simulateEviction(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param callback The callback + */ + simulateEviction(resourceGroupName: string, vmScaleSetName: string, instanceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param options The optional parameters + * @param callback The callback + */ + simulateEviction(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + simulateEviction(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + vmScaleSetName, + instanceId, + options + }, + simulateEvictionOperationSpec, + callback); + } + /** * Run command on a virtual machine in a VM scale set. * @param resourceGroupName The name of the resource group. @@ -626,6 +663,30 @@ const listOperationSpec: msRest.OperationSpec = { serializer }; +const simulateEvictionOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.instanceId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginReimageOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimage", diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts index 93f81dfd0a63..ddb59ba58530 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts @@ -458,6 +458,19 @@ export class VirtualMachineScaleSets { callback); } + /** + * Changes ServiceState property for a given service + * @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 SetOrchestrationServiceState API. + * @param [options] The optional parameters + * @returns Promise + */ + setOrchestrationServiceState(resourceGroupName: string, vmScaleSetName: string, parameters: Models.OrchestrationServiceStateInput, options?: msRest.RequestOptionsBase): Promise { + return this.beginSetOrchestrationServiceState(resourceGroupName,vmScaleSetName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** * Create or update a VM scale set. * @param resourceGroupName The name of the resource group. @@ -711,6 +724,26 @@ export class VirtualMachineScaleSets { options); } + /** + * Changes ServiceState property for a given service + * @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 SetOrchestrationServiceState API. + * @param [options] The optional parameters + * @returns Promise + */ + beginSetOrchestrationServiceState(resourceGroupName: string, vmScaleSetName: string, parameters: Models.OrchestrationServiceStateInput, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmScaleSetName, + parameters, + options + }, + beginSetOrchestrationServiceStateOperationSpec, + options); + } + /** * Gets a list of all VM scale sets under a resource group. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -1010,6 +1043,9 @@ const convertToSinglePlacementGroupOperationSpec: msRest.OperationSpec = { Parameters.vmScaleSetName, Parameters.subscriptionId ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1432,6 +1468,37 @@ const beginReimageAllOperationSpec: msRest.OperationSpec = { serializer }; +const beginSetOrchestrationServiceStateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.OrchestrationServiceStateInput, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", diff --git a/sdk/compute/arm-compute/src/operations/virtualMachines.ts b/sdk/compute/arm-compute/src/operations/virtualMachines.ts index 37384d178634..db79c2aa9b98 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachines.ts @@ -406,6 +406,39 @@ export class VirtualMachines { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * The operation to simulate the eviction of spot virtual machine. The eviction will occur within + * 30 minutes of calling the API + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine. + * @param [options] The optional parameters + * @returns Promise + */ + simulateEviction(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine. + * @param callback The callback + */ + simulateEviction(resourceGroupName: string, vmName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine. + * @param options The optional parameters + * @param callback The callback + */ + simulateEviction(resourceGroupName: string, vmName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + simulateEviction(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + vmName, + options + }, + simulateEvictionOperationSpec, + callback); + } + /** * Run command on the VM. * @param resourceGroupName The name of the resource group. @@ -944,6 +977,29 @@ const listAvailableSizesOperationSpec: msRest.OperationSpec = { serializer }; +const simulateEvictionOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.vmName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCaptureOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture",