public interface Disk
Modifier and Type | Interface and Description |
---|---|
static interface |
Disk.Definition
The entirety of the Disk definition.
|
static interface |
Disk.DefinitionStages
The Disk definition stages.
|
static interface |
Disk.Update
The template for Disk update.
|
static interface |
Disk.UpdateStages
The Disk update stages.
|
Modifier and Type | Method and Description |
---|---|
void |
attach(AttachDiskProperties attachDiskProperties)
Attach and create the lease of the disk to the virtual machine.
|
void |
attach(AttachDiskProperties attachDiskProperties,
com.azure.core.util.Context context)
Attach and create the lease of the disk to the virtual machine.
|
OffsetDateTime |
createdDate()
Gets the createdDate property: The creation date of the disk.
|
void |
detach(DetachDiskProperties detachDiskProperties)
Detach and break the lease of the disk attached to the virtual machine.
|
void |
detach(DetachDiskProperties detachDiskProperties,
com.azure.core.util.Context context)
Detach and break the lease of the disk attached to the virtual machine.
|
String |
diskBlobName()
Gets the diskBlobName property: When backed by a blob, the name of the VHD blob without extension.
|
Integer |
diskSizeGiB()
Gets the diskSizeGiB property: The size of the disk in Gibibytes.
|
StorageType |
diskType()
Gets the diskType property: The storage type for the disk (i.e.
|
String |
diskUri()
Gets the diskUri property: When backed by a blob, the URI of underlying blob.
|
String |
hostCaching()
Gets the hostCaching property: The host caching policy of the disk (i.e.
|
String |
id()
Gets the id property: Fully qualified resource Id for the resource.
|
DiskInner |
innerModel()
Gets the inner com.azure.resourcemanager.devtestlabs.fluent.models.DiskInner object.
|
String |
leasedByLabVmId()
Gets the leasedByLabVmId property: The resource ID of the VM to which this disk is leased.
|
String |
location()
Gets the location property: The geo-location where the resource lives.
|
String |
managedDiskId()
Gets the managedDiskId property: When backed by managed disk, this is the ID of the compute disk resource.
|
String |
name()
Gets the name property: The name of the resource.
|
String |
provisioningState()
Gets the provisioningState property: The provisioning status of the resource.
|
Disk |
refresh()
Refreshes the resource to sync with Azure.
|
Disk |
refresh(com.azure.core.util.Context context)
Refreshes the resource to sync with Azure.
|
com.azure.core.management.Region |
region()
Gets the region of the resource.
|
String |
regionName()
Gets the name of the resource region.
|
String |
storageAccountId()
Gets the storageAccountId property: When backed by a blob, the storage account where the blob is.
|
Map<String,String> |
tags()
Gets the tags property: Resource tags.
|
String |
type()
Gets the type property: The type of the resource.
|
String |
uniqueIdentifier()
Gets the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).
|
Disk.Update |
update()
Begins update for the Disk resource.
|
String id()
String name()
String type()
String location()
StorageType diskType()
Integer diskSizeGiB()
String leasedByLabVmId()
String diskBlobName()
String diskUri()
String storageAccountId()
OffsetDateTime createdDate()
String hostCaching()
String managedDiskId()
String provisioningState()
String uniqueIdentifier()
com.azure.core.management.Region region()
String regionName()
DiskInner innerModel()
Disk.Update update()
Disk refresh()
Disk refresh(com.azure.core.util.Context context)
context
- The context to associate with this operation.void attach(AttachDiskProperties attachDiskProperties)
attachDiskProperties
- Properties of the disk to attach.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void attach(AttachDiskProperties attachDiskProperties, com.azure.core.util.Context context)
attachDiskProperties
- Properties of the disk to attach.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void detach(DetachDiskProperties detachDiskProperties)
detachDiskProperties
- Properties of the disk to detach.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void detach(DetachDiskProperties detachDiskProperties, com.azure.core.util.Context context)
detachDiskProperties
- Properties of the disk to detach.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.Copyright © 2021 Microsoft Corporation. All rights reserved.