Interface Snapshot
-
- All Superinterfaces:
GroupableResource<ComputeManager,SnapshotInner>,HasId,HasInnerModel<SnapshotInner>,HasManager<ComputeManager>,HasName,HasResourceGroup,Indexable,Refreshable<Snapshot>,Resource,Updatable<Snapshot.Update>
public interface Snapshot extends GroupableResource<ComputeManager,SnapshotInner>, Refreshable<Snapshot>, Updatable<Snapshot.Update>
An immutable client-side representation of an Azure managed snapshot.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceSnapshot.DefinitionThe entirety of the managed snapshot definition.static interfaceSnapshot.DefinitionStagesGrouping of managed snapshot definition stages.static interfaceSnapshot.UpdateThe template for an update operation, containing all the settings that can be modified.static interfaceSnapshot.UpdateStagesGrouping of managed snapshot 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 DiskCreateOptioncreationMethod()StringgrantAccess(int accessDurationInSeconds)Grants access to the snapshot.Mono<String>grantAccessAsync(int accessDurationInSeconds)Grants access to the snapshot asynchronously.booleanincremental()OperatingSystemTypesosType()voidrevokeAccess()Revoke access granted to the snapshot.Mono<Void>revokeAccessAsync()Revoke access granted to the snapshot asynchronously.intsizeInGB()SnapshotSkuTypeskuType()CreationSourcesource()-
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
-
skuType
SnapshotSkuType skuType()
- Returns:
- the snapshot SKU type.
-
incremental
boolean incremental()
- Returns:
- whether a snapshot is incremental
-
creationMethod
DiskCreateOption creationMethod()
- Returns:
- the snapshot creation method
-
sizeInGB
int sizeInGB()
- Returns:
- disk size in GB
-
osType
OperatingSystemTypes osType()
- Returns:
- the type of operating system in the snapshot
-
source
CreationSource source()
- Returns:
- the details of the source from which snapshot is created
-
grantAccess
String grantAccess(int accessDurationInSeconds)
Grants access to the snapshot.- Parameters:
accessDurationInSeconds- the access duration in seconds- Returns:
- the read-only SAS URI to the snapshot
-
grantAccessAsync
Mono<String> grantAccessAsync(int accessDurationInSeconds)
Grants access to the snapshot 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()
Revoke access granted to the snapshot.
-
-