Disk Interface
public interface Disk
An immutable client-side representation of Disk.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| abstract void |
attach(AttachDiskProperties attachDiskProperties)
Attach and create the lease of the disk to the virtual machine. |
| abstract void |
attach(AttachDiskProperties attachDiskProperties, Context context)
Attach and create the lease of the disk to the virtual machine. |
|
abstract
Offset |
createdDate()
Gets the created |
| abstract void |
detach(DetachDiskProperties detachDiskProperties)
Detach and break the lease of the disk attached to the virtual machine. |
| abstract void |
detach(DetachDiskProperties detachDiskProperties, Context context)
Detach and break the lease of the disk attached to the virtual machine. |
| abstract String |
diskBlobName()
Gets the disk |
| abstract Integer |
diskSizeGiB()
Gets the disk |
|
abstract
Storage |
diskType()
Gets the disk |
| abstract String |
diskUri()
Gets the disk |
| abstract String |
hostCaching()
Gets the host |
| abstract String |
id()
Gets the id property: Fully qualified resource Id for the resource. |
|
abstract
Disk |
innerModel()
Gets the inner com. |
| abstract String |
leasedByLabVmId()
Gets the leased |
| abstract String |
location()
Gets the location property: The geo-location where the resource lives. |
| abstract String |
managedDiskId()
Gets the managed |
| abstract String |
name()
Gets the name property: The name of the resource. |
| abstract String |
provisioningState()
Gets the provisioning |
| abstract Disk |
refresh()
Refreshes the resource to sync with Azure. |
| abstract Disk |
refresh(Context context)
Refreshes the resource to sync with Azure. |
| abstract Region |
region()
Gets the region of the resource. |
| abstract String |
regionName()
Gets the name of the resource region. |
| abstract String |
resourceGroupName()
Gets the name of the resource group. |
| abstract String |
storageAccountId()
Gets the storage |
|
abstract
System |
systemData()
Gets the system |
| abstract Map<String,String> |
tags()
Gets the tags property: Resource tags. |
| abstract String |
type()
Gets the type property: The type of the resource. |
| abstract String |
uniqueIdentifier()
Gets the unique |
| abstract Update |
update()
Begins update for the Disk resource. |
Method Details
attach
public abstract void attach(AttachDiskProperties attachDiskProperties)
Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete.
Parameters:
attach
public abstract void attach(AttachDiskProperties attachDiskProperties, Context context)
Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete.
Parameters:
createdDate
public abstract OffsetDateTime createdDate()
Gets the createdDate property: The creation date of the disk.
Returns:
detach
public abstract void detach(DetachDiskProperties detachDiskProperties)
Detach and break the lease of the disk attached to the virtual machine. This operation can take a while to complete.
Parameters:
detach
public abstract void detach(DetachDiskProperties detachDiskProperties, Context context)
Detach and break the lease of the disk attached to the virtual machine. This operation can take a while to complete.
Parameters:
diskBlobName
public abstract String diskBlobName()
Gets the diskBlobName property: When backed by a blob, the name of the VHD blob without extension.
Returns:
diskSizeGiB
public abstract Integer diskSizeGiB()
Gets the diskSizeGiB property: The size of the disk in Gibibytes.
Returns:
diskType
public abstract StorageType diskType()
Gets the diskType property: The storage type for the disk (i.e. Standard, Premium).
Returns:
diskUri
public abstract String diskUri()
Gets the diskUri property: When backed by a blob, the URI of underlying blob.
Returns:
hostCaching
public abstract String hostCaching()
Gets the hostCaching property: The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite).
Returns:
id
public abstract String id()
Gets the id property: Fully qualified resource Id for the resource.
Returns:
innerModel
public abstract DiskInner innerModel()
Gets the inner com.azure.resourcemanager.devtestlabs.fluent.models.DiskInner object.
Returns:
leasedByLabVmId
public abstract String leasedByLabVmId()
Gets the leasedByLabVmId property: The resource ID of the VM to which this disk is leased.
Returns:
location
public abstract String location()
Gets the location property: The geo-location where the resource lives.
Returns:
managedDiskId
public abstract String managedDiskId()
Gets the managedDiskId property: When backed by managed disk, this is the ID of the compute disk resource.
Returns:
name
public abstract String name()
Gets the name property: The name of the resource.
Returns:
provisioningState
public abstract String provisioningState()
Gets the provisioningState property: The provisioning status of the resource.
Returns:
refresh
public abstract Disk refresh()
Refreshes the resource to sync with Azure.
Returns:
refresh
public abstract Disk refresh(Context context)
Refreshes the resource to sync with Azure.
Parameters:
Returns:
region
public abstract Region region()
Gets the region of the resource.
Returns:
regionName
public abstract String regionName()
Gets the name of the resource region.
Returns:
resourceGroupName
public abstract String resourceGroupName()
Gets the name of the resource group.
Returns:
storageAccountId
public abstract String storageAccountId()
Gets the storageAccountId property: When backed by a blob, the storage account where the blob is.
Returns:
systemData
public abstract SystemData systemData()
Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
tags
public abstract Map<String,String> tags()
Gets the tags property: Resource tags.
Returns:
type
public abstract String type()
Gets the type property: The type of the resource.
Returns:
uniqueIdentifier
public abstract String uniqueIdentifier()
Gets the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).
Returns:
update
public abstract Disk.Update update()
Begins update for the Disk resource.
Returns: