Interface BackupPoliciesClient
public interface BackupPoliciesClient
An instance of this class provides access to all the operations defined in BackupPoliciesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<BackupPolicyInner>, BackupPolicyInner> beginCreate(String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body) Create a backup policy Create a backup policy for Netapp Account.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<BackupPolicyInner>, BackupPolicyInner> beginCreate(String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body, com.azure.core.util.Context context) Create a backup policy Create a backup policy for Netapp Account.beginDelete(String resourceGroupName, String accountName, String backupPolicyName) Delete a backup policy Delete backup policy.beginDelete(String resourceGroupName, String accountName, String backupPolicyName, com.azure.core.util.Context context) Delete a backup policy Delete backup policy.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<BackupPolicyInner>, BackupPolicyInner> beginUpdate(String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body) Patch a backup policy Patch a backup policy for Netapp Account.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<BackupPolicyInner>, BackupPolicyInner> beginUpdate(String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body, com.azure.core.util.Context context) Patch a backup policy Patch a backup policy for Netapp Account.create(String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body) Create a backup policy Create a backup policy for Netapp Account.create(String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body, com.azure.core.util.Context context) Create a backup policy Create a backup policy for Netapp Account.voidDelete a backup policy Delete backup policy.voiddelete(String resourceGroupName, String accountName, String backupPolicyName, com.azure.core.util.Context context) Delete a backup policy Delete backup policy.Get a backup Policy Get a particular backup Policy.com.azure.core.http.rest.Response<BackupPolicyInner> getWithResponse(String resourceGroupName, String accountName, String backupPolicyName, com.azure.core.util.Context context) Get a backup Policy Get a particular backup Policy.com.azure.core.http.rest.PagedIterable<BackupPolicyInner> List backup policies List backup policies for Netapp Account.com.azure.core.http.rest.PagedIterable<BackupPolicyInner> List backup policies List backup policies for Netapp Account.update(String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body) Patch a backup policy Patch a backup policy for Netapp Account.update(String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body, com.azure.core.util.Context context) Patch a backup policy Patch a backup policy for Netapp Account.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<BackupPolicyInner> list(String resourceGroupName, String accountName) List backup policies List backup policies for Netapp Account.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.- Returns:
- list of Backup Policies 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<BackupPolicyInner> list(String resourceGroupName, String accountName, com.azure.core.util.Context context) List backup policies List backup policies for Netapp Account.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.context- The context to associate with this operation.- Returns:
- list of Backup Policies 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<BackupPolicyInner> getWithResponse(String resourceGroupName, String accountName, String backupPolicyName, com.azure.core.util.Context context) Get a backup Policy Get a particular backup Policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.backupPolicyName- Backup policy Name which uniquely identify backup policy.context- The context to associate with this operation.- Returns:
- a particular backup Policy 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
Get a backup Policy Get a particular backup Policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.backupPolicyName- Backup policy Name which uniquely identify backup policy.- Returns:
- a particular backup Policy.
- 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<BackupPolicyInner>,BackupPolicyInner> beginCreate(String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body) Create a backup policy Create a backup policy for Netapp Account.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.backupPolicyName- Backup policy Name which uniquely identify backup policy.body- Backup policy object supplied in the body of the operation.- Returns:
- the
SyncPollerfor polling of backup policy information. - 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<BackupPolicyInner>,BackupPolicyInner> beginCreate(String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body, com.azure.core.util.Context context) Create a backup policy Create a backup policy for Netapp Account.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.backupPolicyName- Backup policy Name which uniquely identify backup policy.body- Backup policy object supplied in the body of the operation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of backup policy information. - 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
BackupPolicyInner create(String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body) Create a backup policy Create a backup policy for Netapp Account.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.backupPolicyName- Backup policy Name which uniquely identify backup policy.body- Backup policy object supplied in the body of the operation.- Returns:
- backup policy information.
- 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
BackupPolicyInner create(String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body, com.azure.core.util.Context context) Create a backup policy Create a backup policy for Netapp Account.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.backupPolicyName- Backup policy Name which uniquely identify backup policy.body- Backup policy object supplied in the body of the operation.context- The context to associate with this operation.- Returns:
- backup policy information.
- 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<BackupPolicyInner>,BackupPolicyInner> beginUpdate(String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body) Patch a backup policy Patch a backup policy for Netapp Account.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.backupPolicyName- Backup policy Name which uniquely identify backup policy.body- Backup policy object supplied in the body of the operation.- Returns:
- the
SyncPollerfor polling of backup policy information. - 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<BackupPolicyInner>,BackupPolicyInner> beginUpdate(String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body, com.azure.core.util.Context context) Patch a backup policy Patch a backup policy for Netapp Account.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.backupPolicyName- Backup policy Name which uniquely identify backup policy.body- Backup policy object supplied in the body of the operation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of backup policy information. - 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
BackupPolicyInner update(String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body) Patch a backup policy Patch a backup policy for Netapp Account.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.backupPolicyName- Backup policy Name which uniquely identify backup policy.body- Backup policy object supplied in the body of the operation.- Returns:
- backup policy information.
- 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
BackupPolicyInner update(String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body, com.azure.core.util.Context context) Patch a backup policy Patch a backup policy for Netapp Account.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.backupPolicyName- Backup policy Name which uniquely identify backup policy.body- Backup policy object supplied in the body of the operation.context- The context to associate with this operation.- Returns:
- backup policy information.
- 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 backupPolicyName) Delete a backup policy Delete backup policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.backupPolicyName- Backup policy Name which uniquely identify backup policy.- Returns:
- the
SyncPollerfor 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 backupPolicyName, com.azure.core.util.Context context) Delete a backup policy Delete backup policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.backupPolicyName- Backup policy Name which uniquely identify backup policy.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor 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
Delete a backup policy Delete backup policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.backupPolicyName- Backup policy Name which uniquely identify backup policy.- 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 backupPolicyName, com.azure.core.util.Context context) Delete a backup policy Delete backup policy.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.accountName- The name of the NetApp account.backupPolicyName- Backup policy Name which uniquely identify backup policy.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.
-