public interface Disk extends GroupableResource<com.microsoft.azure.management.compute.implementation.ComputeManager,com.microsoft.azure.management.compute.implementation.DiskInner>, Refreshable<Disk>, Updatable<Disk.Update>
Modifier and Type | Interface and Description |
---|---|
static interface |
Disk.Definition
The entirety of the managed disk definition.
|
static interface |
Disk.DefinitionStages
Grouping of managed disk definition stages.
|
static interface |
Disk.Update
The template for an update operation, containing all the settings that
can be modified.
|
static interface |
Disk.UpdateStages
Grouping of managed disk update stages.
|
Resource.DefinitionWithRegion<T>, Resource.DefinitionWithTags<T>, Resource.UpdateWithTags<T>
Modifier and Type | Method and Description |
---|---|
Set<AvailabilityZoneId> |
availabilityZones() |
DiskCreateOption |
creationMethod() |
EncryptionSettingsCollection |
encryptionSettings() |
String |
grantAccess(int accessDurationInSeconds)
Grants access to the disk.
|
rx.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() |
OperatingSystemTypes |
osType() |
void |
revokeAccess()
Revokes access granted to the disk.
|
rx.Completable |
revokeAccessAsync()
Revokes access granted to the disk asynchronously.
|
ServiceFuture<Void> |
revokeAccessAsync(ServiceCallback<Void> callback)
Revokes access granted to the disk asynchronously.
|
int |
sizeInGB() |
DiskSkuTypes |
sku() |
CreationSource |
source() |
String |
virtualMachineId() |
region, regionName, tags, type
key
id
name
resourceGroupName
manager
inner
refresh, refreshAsync
DiskSkuTypes sku()
DiskCreateOption creationMethod()
boolean isAttachedToVirtualMachine()
String virtualMachineId()
int sizeInGB()
OperatingSystemTypes osType()
CreationSource source()
@Beta(value=V1_3_0) Set<AvailabilityZoneId> availabilityZones()
@Beta(value=V1_19_0) EncryptionSettingsCollection encryptionSettings()
String grantAccess(int accessDurationInSeconds)
accessDurationInSeconds
- the access duration in secondsrx.Observable<String> grantAccessAsync(int accessDurationInSeconds)
accessDurationInSeconds
- the access duration in secondsServiceFuture<String> grantAccessAsync(int accessDurationInSeconds, ServiceCallback<String> callback)
accessDurationInSeconds
- the access duration in secondscallback
- the callback to call on success or failure, containing a read-only SAS URI to the disk, if successfulvoid revokeAccess()
rx.Completable revokeAccessAsync()
ServiceFuture<Void> revokeAccessAsync(ServiceCallback<Void> callback)
callback
- the callback to call on success or failureCopyright © 2019. All rights reserved.