Interface BackupPolicies
-
public interface BackupPolicies
Resource collection API of BackupPolicies.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BackupPolicy.DefinitionStages.Blank
define(String name)
Begins definition for a new BackupPolicy resource.void
delete(String resourceGroupName, String accountName, String backupPolicyName)
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.BackupPolicy
get(String resourceGroupName, String accountName, String backupPolicyName)
Get a particular backup Policy.BackupPolicy
getById(String id)
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(String resourceGroupName, String accountName)
List backup policies for Netapp Account.com.azure.core.http.rest.PagedIterable<BackupPolicy>
list(String resourceGroupName, String accountName, com.azure.core.util.Context context)
List backup policies for Netapp Account.
-
-
-
Method Detail
-
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
BackupPolicy get(String resourceGroupName, String accountName, String backupPolicyName)
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
void delete(String resourceGroupName, String accountName, String backupPolicyName)
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
BackupPolicy getById(String id)
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
void deleteById(String id)
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
void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
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
BackupPolicy.DefinitionStages.Blank define(String name)
Begins definition for a new BackupPolicy resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new BackupPolicy definition.
-
-