Interface Disk
-
- All Superinterfaces:
GroupableResource<ComputeManager,DiskInner>,HasId,HasInnerModel<DiskInner>,HasManager<ComputeManager>,HasName,HasResourceGroup,Indexable,Refreshable<Disk>,Resource,Updatable<Disk.Update>
public interface Disk extends GroupableResource<ComputeManager,DiskInner>, Refreshable<Disk>, Updatable<Disk.Update>
An immutable client-side representation of an Azure managed disk.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceDisk.DefinitionThe entirety of the managed disk definition.static interfaceDisk.DefinitionStagesGrouping of managed disk definition stages.static interfaceDisk.UpdateThe template for an update operation, containing all the settings that can be modified.static interfaceDisk.UpdateStagesGrouping of managed disk update stages.-
Nested classes/interfaces inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.Resource
Resource.DefinitionWithRegion<T extends Object>, Resource.DefinitionWithTags<T extends Object>, Resource.UpdateWithTags<T extends Object>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<AvailabilityZoneId>availabilityZones()DiskCreateOptioncreationMethod()Encryptionencryption()EncryptionSettingsCollectionencryptionSettings()StringgrantAccess(int accessDurationInSeconds)Grants access to the disk.Mono<String>grantAccessAsync(int accessDurationInSeconds)Grants access to the disk asynchronously.booleanisAttachedToVirtualMachine()OperatingSystemTypesosType()voidrevokeAccess()Revokes access granted to the disk.Mono<Void>revokeAccessAsync()Revokes access granted to the disk asynchronously.longsizeInByte()intsizeInGB()DiskSkuTypessku()CreationSourcesource()StringvirtualMachineId()-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModel
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager
manager
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasName
name
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasResourceGroup
resourceGroupName
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Refreshable
refresh, refreshAsync
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.Resource
region, regionName, tags, type
-
-
-
-
Method Detail
-
sku
DiskSkuTypes sku()
- Returns:
- the disk SKU
-
creationMethod
DiskCreateOption creationMethod()
- Returns:
- the disk creation method
-
isAttachedToVirtualMachine
boolean isAttachedToVirtualMachine()
- Returns:
- true if the disk is attached to a virtual machine, otherwise false
-
virtualMachineId
String virtualMachineId()
- Returns:
- the resource ID of the virtual machine this disk is attached to, or null if the disk is in a detached state
-
sizeInGB
int sizeInGB()
- Returns:
- disk size in GB
-
sizeInByte
long sizeInByte()
- Returns:
- disk size in byte
-
osType
OperatingSystemTypes osType()
- Returns:
- the type of the operating system on the disk
-
source
CreationSource source()
- Returns:
- the details of the source from which the disk is created
-
availabilityZones
Set<AvailabilityZoneId> availabilityZones()
- Returns:
- the availability zones assigned to the disk
-
encryptionSettings
EncryptionSettingsCollection encryptionSettings()
- Returns:
- the disk encryption settings
-
encryption
Encryption encryption()
- Returns:
- the disk encryption
-
grantAccess
String grantAccess(int accessDurationInSeconds)
Grants access to the disk.- Parameters:
accessDurationInSeconds- the access duration in seconds- Returns:
- the read-only SAS URI to the disk
-
grantAccessAsync
Mono<String> grantAccessAsync(int accessDurationInSeconds)
Grants access to the disk asynchronously.- Parameters:
accessDurationInSeconds- the access duration in seconds- Returns:
- a representation of the deferred computation of this call returning a read-only SAS URI to the disk
-
revokeAccess
void revokeAccess()
Revokes access granted to the disk.
-
-