Snapshot Interface
Implements
public interface Snapshot
extends GroupableResource<ComputeManager,SnapshotInner>, Refreshable<Snapshot>, Updatable<Update>
An immutable client-side representation of an Azure managed snapshot.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract void |
awaitCopyStartCompletion()
Await Copy |
abstract Boolean |
awaitCopyStartCompletion(Duration maxWaitTime)
Await Copy |
abstract Mono<Void> |
awaitCopyStartCompletionAsync()
Await Copy |
abstract
Copy |
copyCompletionError()
Gets the error details if the background copy of a resource created via the Copy |
abstract Float |
copyCompletionPercent()
Gets the percentage complete for the background copy when a resource is created via the Copy |
abstract
Disk |
creationMethod() |
abstract String |
grantAccess(int accessDurationInSeconds)
Grants access to the snapshot. |
abstract Mono<String> |
grantAccessAsync(int accessDurationInSeconds)
Grants access to the snapshot asynchronously. |
abstract boolean | incremental() |
abstract
Operating |
osType() |
abstract
Public |
publicNetworkAccess()
Whether the snapshot can be accessed from public network. |
abstract void |
revokeAccess()
Revoke access granted to the snapshot. |
abstract Mono<Void> |
revokeAccessAsync()
Revoke access granted to the snapshot asynchronously. |
abstract int | sizeInGB() |
abstract
Snapshot |
skuType() |
abstract
Creation |
source() |
Method Details
awaitCopyStartCompletion
public abstract void awaitCopyStartCompletion()
Await CopyStart completion indefinitely unless errors are encountered.
awaitCopyStartCompletion
public abstract Boolean awaitCopyStartCompletion(Duration maxWaitTime)
Await CopyStart completion for a specified timeout.
Parameters:
Returns:
awaitCopyStartCompletionAsync
public abstract Mono
Await CopyStart completion in async manner.
Returns:
copyCompletionError
public abstract CopyCompletionError copyCompletionError()
Gets the error details if the background copy of a resource created via the CopyStart operation fails.
For latest progress,Snapshot#refresh() or Snapshot#refreshAsync() should be called prior to this method.
Returns:
copyCompletionPercent
public abstract Float copyCompletionPercent()
Gets the percentage complete for the background copy when a resource is created via the CopyStart operation.
For latest progress,Snapshot#refresh() or Snapshot#refreshAsync() should be called prior to this method.
Returns:
creationMethod
public abstract DiskCreateOption creationMethod()
Returns:
grantAccess
public abstract String grantAccess(int accessDurationInSeconds)
Grants access to the snapshot.
Parameters:
Returns:
grantAccessAsync
public abstract Mono
Grants access to the snapshot asynchronously.
Parameters:
Returns:
incremental
public abstract boolean incremental()
Returns:
osType
public abstract OperatingSystemTypes osType()
Returns:
publicNetworkAccess
public abstract PublicNetworkAccess publicNetworkAccess()
Whether the snapshot can be accessed from public network.
Returns:
revokeAccess
public abstract void revokeAccess()
Revoke access granted to the snapshot.
revokeAccessAsync
public abstract Mono
Revoke access granted to the snapshot asynchronously.
Returns:
sizeInGB
public abstract int sizeInGB()
Returns:
skuType
public abstract SnapshotSkuType skuType()
Returns:
source
public abstract CreationSource source()
Returns:
Applies to
Azure SDK for Java