Interface Snapshot
public interface Snapshot
An immutable client-side representation of Snapshot.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe entirety of the Snapshot definition.static interfaceThe Snapshot definition stages. -
Method Summary
Modifier and TypeMethodDescriptioncreated()Gets the created property: The creation date of the snapshot.id()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.Regionregion()Gets the region of the resource.Gets the name of the resource region.voidCreate a new Snapshot Restore Files request Restore the specified files from the specified snapshot to the active filesystem.voidrestoreFiles(SnapshotRestoreFiles body, com.azure.core.util.Context context) Create a new Snapshot Restore Files request Restore the specified files from the specified snapshot to the active filesystem.Gets the snapshotId property: UUID v4 used to identify the Snapshot.com.azure.core.management.SystemDataGets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.type()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.
-
systemData
com.azure.core.management.SystemData systemData()Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.- Returns:
- the systemData value.
-
snapshotId
String snapshotId()Gets the snapshotId property: UUID v4 used to identify the Snapshot.- Returns:
- the snapshotId value.
-
created
OffsetDateTime created()Gets the created property: The 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 request Restore 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 request Restore 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.
-