Interface Snapshot
- All Superinterfaces:
GroupableResource<com.microsoft.azure.management.compute.implementation.ComputeManager,
,com.microsoft.azure.management.compute.implementation.SnapshotInner> HasId
,HasInner<com.microsoft.azure.management.compute.implementation.SnapshotInner>
,HasManager<com.microsoft.azure.management.compute.implementation.ComputeManager>
,HasName
,HasResourceGroup
,Indexable
,Refreshable<Snapshot>
,Resource
,Updatable<Snapshot.Update>
public interface Snapshot
extends GroupableResource<com.microsoft.azure.management.compute.implementation.ComputeManager,com.microsoft.azure.management.compute.implementation.SnapshotInner>, Refreshable<Snapshot>, Updatable<Snapshot.Update>
An immutable client-side representation of an Azure managed snapshot.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The entirety of the managed snapshot definition.static interface
Grouping of managed snapshot definition stages.static interface
The template for an update operation, containing all the settings that can be modified.static interface
Grouping of managed snapshot update stages.Nested classes/interfaces inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.Resource
Resource.DefinitionWithRegion<T>, Resource.DefinitionWithTags<T>, Resource.UpdateWithTags<T>
-
Method Summary
Modifier and TypeMethodDescriptiongrantAccess
(int accessDurationInSeconds) Grants access to the snapshot.rx.Observable<String>
grantAccessAsync
(int accessDurationInSeconds) Grants access to the snapshot asynchronously.com.microsoft.rest.ServiceFuture<String>
grantAccessAsync
(int accessDurationInSeconds, com.microsoft.rest.ServiceCallback<String> callback) Grants access to the snapshot asynchronously.boolean
osType()
void
Revoke access granted to the snapshot.rx.Completable
Revoke access granted to the snapshot asynchronously.com.microsoft.rest.ServiceFuture<Void>
revokeAccessAsync
(com.microsoft.rest.ServiceCallback<Void> callback) Revoke access granted to the snapshot asynchronously.int
sizeInGB()
sku()
Deprecated.skuType()
source()
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasId
id
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.HasInner
inner
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager
manager
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasName
name
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasResourceGroup
resourceGroupName
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Indexable
key
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Refreshable
refresh, refreshAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.Resource
region, regionName, tags, type
-
Method Details
-
sku
Deprecated.useskuType()
instead.- Returns:
- the snapshot SKU type.
-
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
Grants access to the snapshot.- Parameters:
accessDurationInSeconds
- the access duration in seconds- Returns:
- the read-only SAS URI to the snapshot
-
grantAccessAsync
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
-
grantAccessAsync
com.microsoft.rest.ServiceFuture<String> grantAccessAsync(int accessDurationInSeconds, com.microsoft.rest.ServiceCallback<String> callback) Grants access to the snapshot asynchronously.- Parameters:
accessDurationInSeconds
- the access duration in secondscallback
- the callback to call on success or failure, on success it will pass read-only SAS URI to the disk in callback- Returns:
- a handle to cancel the request
-
revokeAccess
void revokeAccess()Revoke access granted to the snapshot. -
revokeAccessAsync
rx.Completable revokeAccessAsync()Revoke access granted to the snapshot asynchronously.- Returns:
- a representation of the deferred computation of this call
-
revokeAccessAsync
com.microsoft.rest.ServiceFuture<Void> revokeAccessAsync(com.microsoft.rest.ServiceCallback<Void> callback) Revoke access granted to the snapshot asynchronously.- Parameters:
callback
- the callback to call on success or failure- Returns:
- a handle to cancel the request
-
skuType()
instead.