Interface Backups
-
public interface Backups
Resource collection API of Backups.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Backup.DefinitionStages.Blank
define(String name)
Begins definition for a new Backup resource.void
delete(String resourceGroupName, String accountName, String poolName, String volumeName, String backupName)
Delete a backup of the volume.void
delete(String resourceGroupName, String accountName, String poolName, String volumeName, String backupName, com.azure.core.util.Context context)
Delete a backup of the volume.void
deleteById(String id)
Delete a backup of the volume.void
deleteByIdWithResponse(String id, com.azure.core.util.Context context)
Delete a backup of the volume.Backup
get(String resourceGroupName, String accountName, String poolName, String volumeName, String backupName)
Gets the specified backup of the volume.Backup
getById(String id)
Gets the specified backup of the volume.com.azure.core.http.rest.Response<Backup>
getByIdWithResponse(String id, com.azure.core.util.Context context)
Gets the specified backup of the volume.BackupStatus
getStatus(String resourceGroupName, String accountName, String poolName, String volumeName)
Get the status of the backup for a volume.com.azure.core.http.rest.Response<BackupStatus>
getStatusWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context)
Get the status of the backup for a volume.RestoreStatus
getVolumeRestoreStatus(String resourceGroupName, String accountName, String poolName, String volumeName)
Get the status of the restore for a volume.com.azure.core.http.rest.Response<RestoreStatus>
getVolumeRestoreStatusWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context)
Get the status of the restore for a volume.com.azure.core.http.rest.Response<Backup>
getWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, String backupName, com.azure.core.util.Context context)
Gets the specified backup of the volume.com.azure.core.http.rest.PagedIterable<Backup>
list(String resourceGroupName, String accountName, String poolName, String volumeName)
List all backups for a volume.com.azure.core.http.rest.PagedIterable<Backup>
list(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context)
List all backups for a volume.
-
-
-
Method Detail
-
getStatus
BackupStatus getStatus(String resourceGroupName, String accountName, String poolName, String volumeName)
Get the status of the backup for a volume.- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.- Returns:
- the status of the backup for a volume.
- 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.
-
getStatusWithResponse
com.azure.core.http.rest.Response<BackupStatus> getStatusWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context)
Get the status of the backup for a volume.- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.context
- The context to associate with this operation.- Returns:
- the status of the backup for a volume along with
Response
. - 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.
-
getVolumeRestoreStatus
RestoreStatus getVolumeRestoreStatus(String resourceGroupName, String accountName, String poolName, String volumeName)
Get the status of the restore for a volume.- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.- Returns:
- the status of the restore for a volume.
- 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.
-
getVolumeRestoreStatusWithResponse
com.azure.core.http.rest.Response<RestoreStatus> getVolumeRestoreStatusWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context)
Get the status of the restore for a volume.- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.context
- The context to associate with this operation.- Returns:
- the status of the restore for a volume along with
Response
. - 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.
-
list
com.azure.core.http.rest.PagedIterable<Backup> list(String resourceGroupName, String accountName, String poolName, String volumeName)
List all backups for a volume.- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.- Returns:
- list of Backups as paginated response with
PagedIterable
. - 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.
-
list
com.azure.core.http.rest.PagedIterable<Backup> list(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context)
List all backups for a volume.- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.context
- The context to associate with this operation.- Returns:
- list of Backups as paginated response with
PagedIterable
. - 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.
-
get
Backup get(String resourceGroupName, String accountName, String poolName, String volumeName, String backupName)
Gets the specified backup of the volume.- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.backupName
- The name of the backup.- Returns:
- the specified backup of the volume.
- 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.
-
getWithResponse
com.azure.core.http.rest.Response<Backup> getWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, String backupName, com.azure.core.util.Context context)
Gets the specified backup of the volume.- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.backupName
- The name of the backup.context
- The context to associate with this operation.- Returns:
- the specified backup of the volume along with
Response
. - 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.
-
delete
void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String backupName)
Delete a backup of the volume.- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.backupName
- The name of the backup.- 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.
-
delete
void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String backupName, com.azure.core.util.Context context)
Delete a backup of the volume.- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.backupName
- The name of the backup.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.
-
getById
Backup getById(String id)
Gets the specified backup of the volume.- Parameters:
id
- the resource ID.- Returns:
- the specified backup of the volume along with
Response
. - 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<Backup> getByIdWithResponse(String id, com.azure.core.util.Context context)
Gets the specified backup of the volume.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- the specified backup of the volume along with
Response
. - 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.
-
deleteById
void deleteById(String id)
Delete a backup of the volume.- Parameters:
id
- the resource ID.- 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.
-
deleteByIdWithResponse
void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
Delete a backup of the volume.- Parameters:
id
- the resource ID.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.
-
define
Backup.DefinitionStages.Blank define(String name)
Begins definition for a new Backup resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new Backup definition.
-
-