Snapshot Interface
public interface Snapshot extends GroupableResource<ComputeManager, SnapshotInner>,Refreshable,Updatable<Snapshot.Update>
An immutable client-side representation of an Azure managed snapshot.
Method Summary
Modifier and Type | Method and Description |
---|---|
Disk |
creationMethod() |
String |
grantAccess(int accessDurationInSeconds)
Grants access to the snapshot. |
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. |
Operating |
osType() |
void |
revokeAccess()
Revoke access granted to the snapshot. |
Completable |
revokeAccessAsync()
Revoke access granted to the snapshot asynchronously. |
ServiceFuture<Void> |
revokeAccessAsync(ServiceCallback<Void> callback)
Revoke access granted to the snapshot asynchronously. |
int | sizeInGB() |
Disk |
sku() |
Creation |
source() |
Inherited Members
Method Details
creationMethod
public DiskCreateOption creationMethod()
Returns:
grantAccess
public String grantAccess(int accessDurationInSeconds)
Grants access to the snapshot.
Parameters:
Returns:
grantAccessAsync
public Observable
Grants access to the snapshot asynchronously.
Parameters:
Returns:
grantAccessAsync
public ServiceFuture
Grants access to the snapshot asynchronously.
Parameters:
Returns:
osType
public OperatingSystemTypes osType()
Returns:
revokeAccess
public void revokeAccess()
Revoke access granted to the snapshot.
revokeAccessAsync
public Completable revokeAccessAsync()
Revoke access granted to the snapshot asynchronously.
Returns:
revokeAccessAsync
public ServiceFuture
Revoke access granted to the snapshot asynchronously.
Parameters:
Returns:
sizeInGB
public int sizeInGB()
Returns:
sku
public DiskSkuTypes sku()
Returns:
source
public CreationSource source()
Returns:
Applies to
Azure SDK for Java