Disk Interface
public interface Disk extends GroupableResource<ComputeManager, DiskInner>,Refreshable,Updatable<Disk.Update>
An immutable client-side representation of an Azure managed disk.
Method Summary
Modifier and Type | Method and Description |
---|---|
Set<Availability |
availabilityZones() |
Disk |
creationMethod() |
String |
grantAccess(int accessDurationInSeconds)
Grants access to the disk. |
Observable<String> |
grantAccessAsync(int accessDurationInSeconds)
Grants access to the disk asynchronously. |
ServiceFuture<String> |
grantAccessAsync(int accessDurationInSeconds, ServiceCallback<String> callback)
Grants access to the disk asynchronously. |
boolean | isAttachedToVirtualMachine() |
Operating |
osType() |
void |
revokeAccess()
Revokes access granted to the disk. |
Completable |
revokeAccessAsync()
Revokes access granted to the disk asynchronously. |
ServiceFuture<Void> |
revokeAccessAsync(ServiceCallback<Void> callback)
Revokes access granted to the disk asynchronously. |
int | sizeInGB() |
Disk |
sku() |
Creation |
source() |
String | virtualMachineId() |
Inherited Members
Method Details
availabilityZones
public Set
Returns:
creationMethod
public DiskCreateOption creationMethod()
Returns:
grantAccess
public String grantAccess(int accessDurationInSeconds)
Grants access to the disk.
Parameters:
Returns:
grantAccessAsync
public Observable
Grants access to the disk asynchronously.
Parameters:
Returns:
grantAccessAsync
public ServiceFuture
Grants access to the disk asynchronously.
Parameters:
Returns:
isAttachedToVirtualMachine
public boolean isAttachedToVirtualMachine()
Returns:
osType
public OperatingSystemTypes osType()
Returns:
revokeAccess
public void revokeAccess()
Revokes access granted to the disk.
revokeAccessAsync
public Completable revokeAccessAsync()
Revokes access granted to the disk asynchronously.
Returns:
revokeAccessAsync
public ServiceFuture
Revokes access granted to the disk asynchronously.
Parameters:
Returns:
sizeInGB
public int sizeInGB()
Returns:
sku
public DiskSkuTypes sku()
Returns:
source
public CreationSource source()
Returns:
virtualMachineId
public String virtualMachineId()
Returns:
Applies to
Azure SDK for Java