Interface BackupPolicies
public interface BackupPolicies
Resource collection API of BackupPolicies.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new BackupPolicy resource.void
Delete a backup policyvoid
delete
(String resourceGroupName, String accountName, String backupPolicyName, com.azure.core.util.Context context) Delete a backup policyvoid
deleteById
(String id) Delete a backup policyvoid
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete a backup policyGet a backup PolicyGet a backup Policycom.azure.core.http.rest.Response<BackupPolicy>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get a backup Policycom.azure.core.http.rest.Response<BackupPolicy>
getWithResponse
(String resourceGroupName, String accountName, String backupPolicyName, com.azure.core.util.Context context) Get a backup Policycom.azure.core.http.rest.PagedIterable<BackupPolicy>
List backup policiescom.azure.core.http.rest.PagedIterable<BackupPolicy>
List backup policies
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<BackupPolicy> 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<BackupPolicy> 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<BackupPolicy> 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.
-
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.
-
getById
Get a backup PolicyGet a particular backup Policy.
- Parameters:
id
- the resource ID.- 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<BackupPolicy> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a backup PolicyGet a particular backup Policy.
- Parameters:
id
- the resource ID.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.
-
deleteById
Delete a backup policyDelete backup policy.
- 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
Delete a backup policyDelete backup policy.
- 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
Begins definition for a new BackupPolicy resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new BackupPolicy definition.
-