public interface Disk extends GroupableResource<ComputeManager,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.
|
Mono<String> |
grantAccessAsync(int accessDurationInSeconds)
Grants access to the disk asynchronously.
|
boolean |
isAttachedToVirtualMachine() |
OperatingSystemTypes |
osType() |
void |
revokeAccess()
Revokes access granted to the disk.
|
Mono<Void> |
revokeAccessAsync()
Revokes access granted to the disk asynchronously.
|
long |
sizeInByte() |
int |
sizeInGB() |
DiskSkuTypes |
sku() |
CreationSource |
source() |
String |
virtualMachineId() |
region, regionName, tags, type
name
resourceGroupName
manager
innerModel
refresh, refreshAsync
DiskSkuTypes sku()
DiskCreateOption creationMethod()
boolean isAttachedToVirtualMachine()
String virtualMachineId()
int sizeInGB()
long sizeInByte()
OperatingSystemTypes osType()
CreationSource source()
Set<AvailabilityZoneId> availabilityZones()
EncryptionSettingsCollection encryptionSettings()
String grantAccess(int accessDurationInSeconds)
accessDurationInSeconds
- the access duration in secondsMono<String> grantAccessAsync(int accessDurationInSeconds)
accessDurationInSeconds
- the access duration in secondsvoid revokeAccess()
Copyright © 2020 Microsoft Corporation. All rights reserved.