Uses of Class
com.azure.resourcemanager.compute.models.OSDisk
Packages that use OSDisk
Package
Description
Package containing the data models for ComputeManagementClient.
-
Uses of OSDisk in com.azure.resourcemanager.compute.models
Classes in com.azure.resourcemanager.compute.models that implement interfaces with type arguments of type OSDiskModifier and TypeClassDescriptionfinal classSpecifies information about the operating system disk used by the virtual machine.Methods in com.azure.resourcemanager.compute.models that return OSDiskModifier and TypeMethodDescriptionstatic OSDiskOSDisk.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OSDisk from the JsonReader.StorageProfile.osDisk()Get the osDisk property: Specifies information about the operating system disk used by the virtual machine.OSDisk.withCaching(CachingTypes caching) Set the caching property: Specifies the caching requirements.OSDisk.withCreateOption(DiskCreateOptionTypes createOption) Set the createOption property: Specifies how the virtual machine disk should be created.OSDisk.withDeleteOption(DiskDeleteOptionTypes deleteOption) Set the deleteOption property: Specifies whether OS Disk should be deleted or detached upon VM deletion.OSDisk.withDiffDiskSettings(DiffDiskSettings diffDiskSettings) Set the diffDiskSettings property: Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine.OSDisk.withDiskSizeGB(Integer diskSizeGB) Set the diskSizeGB property: Specifies the size of an empty data disk in gigabytes.OSDisk.withEncryptionSettings(DiskEncryptionSettings encryptionSettings) Set the encryptionSettings property: Specifies the encryption settings for the OS Disk.OSDisk.withImage(VirtualHardDisk image) Set the image property: The source user image virtual hard disk.OSDisk.withManagedDisk(ManagedDiskParameters managedDisk) Set the managedDisk property: The managed disk parameters.Set the name property: The disk name.OSDisk.withOsType(OperatingSystemTypes osType) Set the osType property: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.OSDisk.withVhd(VirtualHardDisk vhd) Set the vhd property: The virtual hard disk.OSDisk.withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled) Set the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the disk.Methods in com.azure.resourcemanager.compute.models with parameters of type OSDiskModifier and TypeMethodDescriptionStorageProfile.withOsDisk(OSDisk osDisk) Set the osDisk property: Specifies information about the operating system disk used by the virtual machine.