Interface BackupsClient
public interface BackupsClient
An instance of this class provides access to all the operations defined in BackupsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller
<com.azure.core.management.polling.PollResult<BackupInner>, BackupInner> beginCreate
(String resourceGroupName, String accountName, String backupVaultName, String backupName, BackupInner body) Create a backup Create a backup under the Backup Vault.com.azure.core.util.polling.SyncPoller
<com.azure.core.management.polling.PollResult<BackupInner>, BackupInner> beginCreate
(String resourceGroupName, String accountName, String backupVaultName, String backupName, BackupInner body, com.azure.core.util.Context context) Create a backup Create a backup under the Backup Vault.beginDelete
(String resourceGroupName, String accountName, String backupVaultName, String backupName) Delete backup Delete a Backup under the Backup Vault.beginDelete
(String resourceGroupName, String accountName, String backupVaultName, String backupName, com.azure.core.util.Context context) Delete backup Delete a Backup under the Backup Vault.com.azure.core.util.polling.SyncPoller
<com.azure.core.management.polling.PollResult<BackupInner>, BackupInner> beginUpdate
(String resourceGroupName, String accountName, String backupVaultName, String backupName) Patch a backup Patch a Backup under the Backup Vault.com.azure.core.util.polling.SyncPoller
<com.azure.core.management.polling.PollResult<BackupInner>, BackupInner> beginUpdate
(String resourceGroupName, String accountName, String backupVaultName, String backupName, BackupPatch body, com.azure.core.util.Context context) Patch a backup Patch a Backup under the Backup Vault.create
(String resourceGroupName, String accountName, String backupVaultName, String backupName, BackupInner body) Create a backup Create a backup under the Backup Vault.create
(String resourceGroupName, String accountName, String backupVaultName, String backupName, BackupInner body, com.azure.core.util.Context context) Create a backup Create a backup under the Backup Vault.void
Delete backup Delete a Backup under the Backup Vault.void
delete
(String resourceGroupName, String accountName, String backupVaultName, String backupName, com.azure.core.util.Context context) Delete backup Delete a Backup under the Backup Vault.Describe the Backup under Backup Vault Get the specified Backup under Backup Vault.getLatestStatus
(String resourceGroupName, String accountName, String poolName, String volumeName) Get the latest backup status of a volume Get the latest status of the backup for a volume.com.azure.core.http.rest.Response
<BackupStatusInner> getLatestStatusWithResponse
(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Get the latest backup status of a volume Get the latest status of the backup for a volume.getVolumeLatestRestoreStatus
(String resourceGroupName, String accountName, String poolName, String volumeName) Get the latest restore status of a volume Get the latest status of the restore for a volume.com.azure.core.http.rest.Response
<RestoreStatusInner> getVolumeLatestRestoreStatusWithResponse
(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Get the latest restore status of a volume Get the latest status of the restore for a volume.com.azure.core.http.rest.Response
<BackupInner> getWithResponse
(String resourceGroupName, String accountName, String backupVaultName, String backupName, com.azure.core.util.Context context) Describe the Backup under Backup Vault Get the specified Backup under Backup Vault.com.azure.core.http.rest.PagedIterable
<BackupInner> listByVault
(String resourceGroupName, String accountName, String backupVaultName) List Backups List all backups Under a Backup Vault.com.azure.core.http.rest.PagedIterable
<BackupInner> listByVault
(String resourceGroupName, String accountName, String backupVaultName, String filter, com.azure.core.util.Context context) List Backups List all backups Under a Backup Vault.Patch a backup Patch a Backup under the Backup Vault.update
(String resourceGroupName, String accountName, String backupVaultName, String backupName, BackupPatch body, com.azure.core.util.Context context) Patch a backup Patch a Backup under the Backup Vault.
-
Method Details
-
getLatestStatusWithResponse
com.azure.core.http.rest.Response<BackupStatusInner> getLatestStatusWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Get the latest backup status of a volume Get the latest status of the backup for a volume.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.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 latest 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.
-
getLatestStatus
BackupStatusInner getLatestStatus(String resourceGroupName, String accountName, String poolName, String volumeName) Get the latest backup status of a volume Get the latest status of the backup for a volume.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.- Returns:
- the latest 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.
-
getVolumeLatestRestoreStatusWithResponse
com.azure.core.http.rest.Response<RestoreStatusInner> getVolumeLatestRestoreStatusWithResponse(String resourceGroupName, String accountName, String poolName, String volumeName, com.azure.core.util.Context context) Get the latest restore status of a volume Get the latest status of the restore for a volume.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.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 latest 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.
-
getVolumeLatestRestoreStatus
RestoreStatusInner getVolumeLatestRestoreStatus(String resourceGroupName, String accountName, String poolName, String volumeName) Get the latest restore status of a volume Get the latest status of the restore for a volume.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the NetApp account.poolName
- The name of the capacity pool.volumeName
- The name of the volume.- Returns:
- the latest 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.
-
listByVault
com.azure.core.http.rest.PagedIterable<BackupInner> listByVault(String resourceGroupName, String accountName, String backupVaultName) List Backups List all backups Under a Backup Vault.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the NetApp account.backupVaultName
- The name of the Backup Vault.- 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.
-
listByVault
com.azure.core.http.rest.PagedIterable<BackupInner> listByVault(String resourceGroupName, String accountName, String backupVaultName, String filter, com.azure.core.util.Context context) List Backups List all backups Under a Backup Vault.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the NetApp account.backupVaultName
- The name of the Backup Vault.filter
- An option to specify the VolumeResourceId. If present, then only returns the backups under the specified 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.
-
getWithResponse
com.azure.core.http.rest.Response<BackupInner> getWithResponse(String resourceGroupName, String accountName, String backupVaultName, String backupName, com.azure.core.util.Context context) Describe the Backup under Backup Vault Get the specified Backup under Backup Vault.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the NetApp account.backupVaultName
- The name of the Backup Vault.backupName
- The name of the backup.context
- The context to associate with this operation.- Returns:
- the specified Backup under Backup Vault 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.
-
get
BackupInner get(String resourceGroupName, String accountName, String backupVaultName, String backupName) Describe the Backup under Backup Vault Get the specified Backup under Backup Vault.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the NetApp account.backupVaultName
- The name of the Backup Vault.backupName
- The name of the backup.- Returns:
- the specified Backup under Backup Vault.
- 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<BackupInner>,BackupInner> beginCreate(String resourceGroupName, String accountName, String backupVaultName, String backupName, BackupInner body) Create a backup Create a backup under the Backup Vault.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the NetApp account.backupVaultName
- The name of the Backup Vault.backupName
- The name of the backup.body
- Backup object supplied in the body of the operation.- Returns:
- the
SyncPoller
for polling of backup under a Backup Vault. - 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<BackupInner>,BackupInner> beginCreate(String resourceGroupName, String accountName, String backupVaultName, String backupName, BackupInner body, com.azure.core.util.Context context) Create a backup Create a backup under the Backup Vault.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the NetApp account.backupVaultName
- The name of the Backup Vault.backupName
- The name of the backup.body
- Backup object supplied in the body of the operation.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of backup under a Backup Vault. - 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.
-
create
BackupInner create(String resourceGroupName, String accountName, String backupVaultName, String backupName, BackupInner body) Create a backup Create a backup under the Backup Vault.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the NetApp account.backupVaultName
- The name of the Backup Vault.backupName
- The name of the backup.body
- Backup object supplied in the body of the operation.- Returns:
- backup under a Backup Vault.
- 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.
-
create
BackupInner create(String resourceGroupName, String accountName, String backupVaultName, String backupName, BackupInner body, com.azure.core.util.Context context) Create a backup Create a backup under the Backup Vault.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the NetApp account.backupVaultName
- The name of the Backup Vault.backupName
- The name of the backup.body
- Backup object supplied in the body of the operation.context
- The context to associate with this operation.- Returns:
- backup under a Backup Vault.
- 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<BackupInner>,BackupInner> beginUpdate(String resourceGroupName, String accountName, String backupVaultName, String backupName) Patch a backup Patch a Backup under the Backup Vault.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the NetApp account.backupVaultName
- The name of the Backup Vault.backupName
- The name of the backup.- Returns:
- the
SyncPoller
for polling of backup under a Backup Vault. - 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<BackupInner>,BackupInner> beginUpdate(String resourceGroupName, String accountName, String backupVaultName, String backupName, BackupPatch body, com.azure.core.util.Context context) Patch a backup Patch a Backup under the Backup Vault.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the NetApp account.backupVaultName
- The name of the Backup Vault.backupName
- The name of the backup.body
- Backup object supplied in the body of the operation.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of backup under a Backup Vault. - 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.
-
update
BackupInner update(String resourceGroupName, String accountName, String backupVaultName, String backupName) Patch a backup Patch a Backup under the Backup Vault.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the NetApp account.backupVaultName
- The name of the Backup Vault.backupName
- The name of the backup.- Returns:
- backup under a Backup Vault.
- 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.
-
update
BackupInner update(String resourceGroupName, String accountName, String backupVaultName, String backupName, BackupPatch body, com.azure.core.util.Context context) Patch a backup Patch a Backup under the Backup Vault.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the NetApp account.backupVaultName
- The name of the Backup Vault.backupName
- The name of the backup.body
- Backup object supplied in the body of the operation.context
- The context to associate with this operation.- Returns:
- backup under a Backup Vault.
- 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String accountName, String backupVaultName, String backupName) Delete backup Delete a Backup under the Backup Vault.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the NetApp account.backupVaultName
- The name of the Backup Vault.backupName
- The name of the backup.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String accountName, String backupVaultName, String backupName, com.azure.core.util.Context context) Delete backup Delete a Backup under the Backup Vault.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the NetApp account.backupVaultName
- The name of the Backup Vault.backupName
- The name of the backup.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
delete
void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName) Delete backup Delete a Backup under the Backup Vault.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the NetApp account.backupVaultName
- The name of the Backup Vault.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 backupVaultName, String backupName, com.azure.core.util.Context context) Delete backup Delete a Backup under the Backup Vault.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.accountName
- The name of the NetApp account.backupVaultName
- The name of the Backup Vault.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.
-