public interface Snapshot extends GroupableResource<com.microsoft.azure.management.compute.implementation.ComputeManager,com.microsoft.azure.management.compute.implementation.SnapshotInner>, Refreshable<Snapshot>, Updatable<Snapshot.Update>
Modifier and Type | Interface and Description |
---|---|
static interface |
Snapshot.Definition
The entirety of the managed snapshot definition.
|
static interface |
Snapshot.DefinitionStages
Grouping of managed snapshot definition stages.
|
static interface |
Snapshot.Update
The template for an update operation, containing all the settings that
can be modified.
|
static interface |
Snapshot.UpdateStages
Grouping of managed snapshot update stages.
|
Resource.DefinitionWithRegion<T>, Resource.DefinitionWithTags<T>, Resource.UpdateWithTags<T>
Modifier and Type | Method and Description |
---|---|
DiskCreateOption |
creationMethod() |
String |
grantAccess(int accessDurationInSeconds)
Grants access to the snapshot.
|
rx.Observable<String> |
grantAccessAsync(int accessDurationInSeconds)
Grants access to the snapshot asynchronously.
|
ServiceFuture<String> |
grantAccessAsync(int accessDurationInSeconds,
ServiceCallback<String> callback)
Grants access to the snapshot asynchronously.
|
OperatingSystemTypes |
osType() |
void |
revokeAccess()
Revoke access granted to the snapshot.
|
rx.Completable |
revokeAccessAsync()
Revoke access granted to the snapshot asynchronously.
|
ServiceFuture<Void> |
revokeAccessAsync(ServiceCallback<Void> callback)
Revoke access granted to the snapshot asynchronously.
|
int |
sizeInGB() |
DiskSkuTypes |
sku()
Deprecated.
use
skuType() instead. |
SnapshotSkuType |
skuType() |
CreationSource |
source() |
region, regionName, tags, type
key
id
name
resourceGroupName
manager
inner
refresh, refreshAsync
@Deprecated DiskSkuTypes sku()
skuType()
instead.SnapshotSkuType skuType()
DiskCreateOption creationMethod()
int sizeInGB()
OperatingSystemTypes osType()
CreationSource source()
String grantAccess(int accessDurationInSeconds)
accessDurationInSeconds
- the access duration in secondsrx.Observable<String> grantAccessAsync(int accessDurationInSeconds)
accessDurationInSeconds
- the access duration in secondsServiceFuture<String> grantAccessAsync(int accessDurationInSeconds, ServiceCallback<String> callback)
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 callbackvoid revokeAccess()
rx.Completable revokeAccessAsync()
ServiceFuture<Void> revokeAccessAsync(ServiceCallback<Void> callback)
callback
- the callback to call on success or failureCopyright © 2019. All rights reserved.