public interface Disk extends com.microsoft.azure.management.resources.fluentcore.arm.models.GroupableResource<com.microsoft.azure.management.compute.implementation.ComputeManager,com.microsoft.azure.management.compute.implementation.DiskInner>, com.microsoft.azure.management.resources.fluentcore.model.Refreshable<Disk>, com.microsoft.azure.management.resources.fluentcore.model.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.
|
com.microsoft.azure.management.resources.fluentcore.arm.models.Resource.DefinitionWithRegion<T>, com.microsoft.azure.management.resources.fluentcore.arm.models.Resource.DefinitionWithTags<T>, com.microsoft.azure.management.resources.fluentcore.arm.models.Resource.UpdateWithTags<T>| Modifier and Type | Method and Description |
|---|---|
Set<com.microsoft.azure.management.resources.fluentcore.arm.AvailabilityZoneId> |
availabilityZones() |
DiskCreateOption |
creationMethod() |
EncryptionSettings |
encryptionSettings() |
String |
grantAccess(int accessDurationInSeconds)
Grants access to the disk.
|
rx.Observable<String> |
grantAccessAsync(int accessDurationInSeconds)
Grants access to the disk asynchronously.
|
com.microsoft.rest.ServiceFuture<String> |
grantAccessAsync(int accessDurationInSeconds,
com.microsoft.rest.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.
|
com.microsoft.rest.ServiceFuture<Void> |
revokeAccessAsync(com.microsoft.rest.ServiceCallback<Void> callback)
Revokes access granted to the disk asynchronously.
|
int |
sizeInGB() |
DiskSkuTypes |
sku() |
CreationSource |
source() |
String |
virtualMachineId() |
region, regionName, tags, typekeyidnameresourceGroupNamemanagerinnerDiskSkuTypes sku()
DiskCreateOption creationMethod()
boolean isAttachedToVirtualMachine()
String virtualMachineId()
int sizeInGB()
OperatingSystemTypes osType()
CreationSource source()
@Beta(value=V1_3_0) Set<com.microsoft.azure.management.resources.fluentcore.arm.AvailabilityZoneId> availabilityZones()
@Beta(value=V1_19_0) EncryptionSettings encryptionSettings()
String grantAccess(int accessDurationInSeconds)
accessDurationInSeconds - the access duration in secondsrx.Observable<String> grantAccessAsync(int accessDurationInSeconds)
accessDurationInSeconds - the access duration in secondscom.microsoft.rest.ServiceFuture<String> grantAccessAsync(int accessDurationInSeconds, com.microsoft.rest.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()
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/