Interface VirtualMachineUnmanagedDataDisk
- All Superinterfaces:
ChildResource<VirtualMachine>,HasInnerModel<DataDisk>,HasName,HasParent<VirtualMachine>,Indexable
public interface VirtualMachineUnmanagedDataDisk
extends HasInnerModel<DataDisk>, ChildResource<VirtualMachine>
A native data disk of a virtual machine.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceGrouping of data disk definition stages applicable as part of a virtual machine creation.static interfaceThe entirety of a unmanaged data disk of a virtual machine scale set definition.static interfaceThe entirety of a unmanaged data disk of a virtual machine scale set definition.static interfaceThe entirety of a unmanaged data disk of a virtual machine scale set definition.static interfaceThe entirety of a data disk update as part of a virtual machine update.static interfaceGrouping of data disk definition stages applicable as part of a virtual machine update.static interfaceThe entirety of a unmanaged data disk of a virtual machine scale set update.static interfaceThe entirety of a unmanaged data disk of a virtual machine scale set update.static interfaceGrouping of data disk update stages. -
Method Summary
Modifier and TypeMethodDescriptionGets the disk caching type.Gets the creation method used while creating this disk.intlun()Gets the logical unit number assigned to this data disk.intsize()Gets the size of this data disk in GB.Uri to the source virtual hard disk user image from which this disk was created.vhdUri()Gets URI to the virtual hard disk backing this data disk.Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModelMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasName
name
-
Method Details
-
size
int size()Gets the size of this data disk in GB.- Returns:
- the size of this data disk in GB
-
lun
int lun()Gets the logical unit number assigned to this data disk.- Returns:
- the logical unit number assigned to this data disk
-
vhdUri
String vhdUri()Gets URI to the virtual hard disk backing this data disk.- Returns:
- URI to the virtual hard disk backing this data disk
-
cachingType
CachingTypes cachingType()Gets the disk caching type.possible values are: 'None', 'ReadOnly', 'ReadWrite'
- Returns:
- the caching type
-
sourceImageUri
String sourceImageUri()Uri to the source virtual hard disk user image from which this disk was created.null will be returned if this disk is not based on an image
- Returns:
- the URI of the source VHD image
-
creationMethod
DiskCreateOptionTypes creationMethod()Gets the creation method used while creating this disk.- Returns:
- the creation method used while creating this disk
-