Interface BackupPolicies
public interface BackupPolicies
Resource collection API of BackupPolicies.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new BackupPolicy resource.void
Delete backup policy.void
delete
(String resourceGroupName, String accountName, String backupPolicyName, com.azure.core.util.Context context) Delete backup policy.void
deleteById
(String id) Delete backup policy.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete backup policy.Get a particular backup Policy.Get a particular backup Policy.com.azure.core.http.rest.Response<BackupPolicy>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get a particular backup Policy.com.azure.core.http.rest.Response<BackupPolicy>
getWithResponse
(String resourceGroupName, String accountName, String backupPolicyName, com.azure.core.util.Context context) Get a particular backup Policy.com.azure.core.http.rest.PagedIterable<BackupPolicy>
List backup policies for Netapp Account.com.azure.core.http.rest.PagedIterable<BackupPolicy>
List backup policies for Netapp Account.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<BackupPolicy> list(String resourceGroupName, String accountName) List 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 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 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 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 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 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 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 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 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 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.
-