public interface Snapshot extends com.microsoft.azure.management.resources.fluentcore.arm.models.GroupableResource<com.microsoft.azure.management.compute.implementation.ComputeManager,com.microsoft.azure.management.compute.implementation.SnapshotInner>, com.microsoft.azure.management.resources.fluentcore.model.Refreshable<Snapshot>, com.microsoft.azure.management.resources.fluentcore.model.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.
|
com.microsoft.azure.management.resources.fluentcore.arm.models.Resource.DefinitionWithRegion<T>, com.microsoft.azure.management.resources.fluentcore.arm.models.Resource.DefinitionWithTags<T>, com.microsoft.azure.management.resources.fluentcore.arm.models.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.
|
com.microsoft.rest.ServiceFuture<String> |
grantAccessAsync(int accessDurationInSeconds,
com.microsoft.rest.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.
|
com.microsoft.rest.ServiceFuture<Void> |
revokeAccessAsync(com.microsoft.rest.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, typekeyidnameresourceGroupNamemanagerinner@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 secondscom.microsoft.rest.ServiceFuture<String> grantAccessAsync(int accessDurationInSeconds, com.microsoft.rest.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()
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/