Interface Snapshot


public interface Snapshot
An immutable client-side representation of Snapshot.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    The entirety of the Snapshot definition.
    static interface 
    The Snapshot definition stages.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the created property: name
    id()
    Gets the id property: Fully qualified resource Id for the resource.
    Gets the inner com.azure.resourcemanager.netapp.fluent.models.SnapshotInner object.
    Gets the location property: Resource location.
    Gets the name property: The name of the resource.
    Gets the provisioningState property: Azure lifecycle management.
    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
    Gets the region of the resource.
    Gets the name of the resource region.
    void
    Create a new Snapshot Restore Files request
    void
    restoreFiles(SnapshotRestoreFiles body, com.azure.core.util.Context context)
    Create a new Snapshot Restore Files request
    Gets the snapshotId property: snapshotId
    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: snapshotId

      UUID v4 used to identify the Snapshot.

      Returns:
      the snapshotId value.
    • created

      OffsetDateTime created()
      Gets the created property: name

      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

      Snapshot refresh(com.azure.core.util.Context context)
      Refreshes the resource to sync with Azure.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the refreshed resource.
    • restoreFiles

      void restoreFiles(SnapshotRestoreFiles body)
      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

      void restoreFiles(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.

      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.