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 policycom.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 policybeginDelete
(String resourceGroupName, String accountName, String backupPolicyName) Delete a backup policybeginDelete
(String resourceGroupName, String accountName, String backupPolicyName, com.azure.core.util.Context context) Delete a backup policycom.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 policycom.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 policycreate
(String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body) Create a backup policycreate
(String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyInner body, com.azure.core.util.Context context) Create a backup policyvoid
Delete a backup policyvoid
delete
(String resourceGroupName, String accountName, String backupPolicyName, com.azure.core.util.Context context) Delete a backup policyGet a backup Policycom.azure.core.http.rest.Response<BackupPolicyInner>
getWithResponse
(String resourceGroupName, String accountName, String backupPolicyName, com.azure.core.util.Context context) Get a backup Policycom.azure.core.http.rest.PagedIterable<BackupPolicyInner>
List backup policiescom.azure.core.http.rest.PagedIterable<BackupPolicyInner>
List backup policiesupdate
(String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body) Patch a backup policyupdate
(String resourceGroupName, String accountName, String backupPolicyName, BackupPolicyPatch body, com.azure.core.util.Context context) Patch a backup policy
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<BackupPolicyInner> list(String resourceGroupName, String accountName) List backup policiesList backup policies for Netapp Account.
- Parameters:
resourceGroupName
- The name of the resource group.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 policiesList backup policies for Netapp Account.
- Parameters:
resourceGroupName
- The name of the resource group.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.
-
get
Get a backup PolicyGet a particular backup Policy.
- Parameters:
resourceGroupName
- The name of the resource group.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.
-
getWithResponse
com.azure.core.http.rest.Response<BackupPolicyInner> getWithResponse(String resourceGroupName, String accountName, String backupPolicyName, com.azure.core.util.Context context) Get a backup PolicyGet a particular backup Policy.
- Parameters:
resourceGroupName
- The name of the resource group.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.
-
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 policyCreate a backup policy for Netapp Account.
- Parameters:
resourceGroupName
- The name of the resource group.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
SyncPoller
for 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 policyCreate a backup policy for Netapp Account.
- Parameters:
resourceGroupName
- The name of the resource group.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
SyncPoller
for 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 policyCreate a backup policy for Netapp Account.
- Parameters:
resourceGroupName
- The name of the resource group.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 policyCreate a backup policy for Netapp Account.
- Parameters:
resourceGroupName
- The name of the resource group.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 policyPatch a backup policy for Netapp Account.
- Parameters:
resourceGroupName
- The name of the resource group.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
SyncPoller
for 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 policyPatch a backup policy for Netapp Account.
- Parameters:
resourceGroupName
- The name of the resource group.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
SyncPoller
for 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 policyPatch a backup policy for Netapp Account.
- Parameters:
resourceGroupName
- The name of the resource group.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 policyPatch a backup policy for Netapp Account.
- Parameters:
resourceGroupName
- The name of the resource group.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 policyDelete backup policy.
- Parameters:
resourceGroupName
- The name of the resource group.accountName
- The name of the NetApp account.backupPolicyName
- Backup policy Name which uniquely identify backup policy.- 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 backupPolicyName, com.azure.core.util.Context context) Delete a backup policyDelete backup policy.
- Parameters:
resourceGroupName
- The name of the resource group.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
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
Delete a backup policyDelete backup policy.
- Parameters:
resourceGroupName
- The name of the resource group.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 policyDelete backup policy.
- Parameters:
resourceGroupName
- The name of the resource group.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.
-