Interface Snapshot
public interface Snapshot
An immutable client-side representation of Snapshot.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The entirety of the Snapshot definition.static interface
The Snapshot definition stages. -
Method Summary
Modifier and TypeMethodDescriptioncreated()
Gets the created property: nameid()
Gets the id property: Fully qualified resource Id for the resource.Gets the inner com.azure.resourcemanager.netapp.fluent.models.SnapshotInner object.location()
Gets the location property: Resource location.name()
Gets the name property: The name of the resource.Gets the provisioningState property: Azure lifecycle management.refresh()
Refreshes the resource to sync with Azure.refresh
(com.azure.core.util.Context context) Refreshes the resource to sync with Azure.com.azure.core.management.Region
region()
Gets the region of the resource.Gets the name of the resource region.void
Create a new Snapshot Restore Files requestvoid
restoreFiles
(SnapshotRestoreFiles body, com.azure.core.util.Context context) Create a new Snapshot Restore Files requestGets the snapshotId property: snapshotIdtype()
Gets the type property: The type of the resource.
-
Method Details
-
id
String id()Gets the id property: Fully qualified resource Id for the resource.- Returns:
- the id value.
-
name
String name()Gets the name property: The name of the resource.- Returns:
- the name value.
-
type
String type()Gets the type property: The type of the resource.- Returns:
- the type value.
-
location
String location()Gets the location property: Resource location.- Returns:
- the location value.
-
snapshotId
String snapshotId()Gets the snapshotId property: snapshotIdUUID v4 used to identify the Snapshot.
- Returns:
- the snapshotId value.
-
created
OffsetDateTime created()Gets the created property: nameThe creation date of the snapshot.
- Returns:
- the created value.
-
provisioningState
String provisioningState()Gets the provisioningState property: Azure lifecycle management.- Returns:
- the provisioningState value.
-
region
com.azure.core.management.Region region()Gets the region of the resource.- Returns:
- the region of the resource.
-
regionName
String regionName()Gets the name of the resource region.- Returns:
- the name of the resource region.
-
innerModel
SnapshotInner innerModel()Gets the inner com.azure.resourcemanager.netapp.fluent.models.SnapshotInner object.- Returns:
- the inner object.
-
refresh
Snapshot refresh()Refreshes the resource to sync with Azure.- Returns:
- the refreshed resource.
-
refresh
Refreshes the resource to sync with Azure.- Parameters:
context
- The context to associate with this operation.- Returns:
- the refreshed resource.
-
restoreFiles
Create a new Snapshot Restore Files requestRestore the specified files from the specified snapshot to the active filesystem.
- Parameters:
body
- Restore payload supplied in the body of the operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
restoreFiles
Create a new Snapshot Restore Files requestRestore the specified files from the specified snapshot to the active filesystem.
- Parameters:
body
- Restore payload supplied in the body of the operation.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-