Interface BackupPolicies
public interface BackupPolicies
Resource collection API of BackupPolicies.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new BaseBackupPolicyResource resource.void
Deletes a backup policy belonging to a backup vault.void
deleteById
(String id) Deletes a backup policy belonging to a backup vault.com.azure.core.http.rest.Response<Void>
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes a backup policy belonging to a backup vault.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String vaultName, String backupPolicyName, com.azure.core.util.Context context) Deletes a backup policy belonging to a backup vault.Gets a backup policy belonging to a backup vault.Gets a backup policy belonging to a backup vault.com.azure.core.http.rest.Response<BaseBackupPolicyResource>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets a backup policy belonging to a backup vault.com.azure.core.http.rest.Response<BaseBackupPolicyResource>
getWithResponse
(String resourceGroupName, String vaultName, String backupPolicyName, com.azure.core.util.Context context) Gets a backup policy belonging to a backup vault.com.azure.core.http.rest.PagedIterable<BaseBackupPolicyResource>
Returns list of backup policies belonging to a backup vault.com.azure.core.http.rest.PagedIterable<BaseBackupPolicyResource>
Returns list of backup policies belonging to a backup vault.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<BaseBackupPolicyResource> list(String resourceGroupName, String vaultName) Returns list of backup policies belonging to a backup vault.- Parameters:
resourceGroupName
- The name of the resource group where the backup vault is present.vaultName
- The name of the backup vault.- Returns:
- baseBackupPolicyResourceList 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<BaseBackupPolicyResource> list(String resourceGroupName, String vaultName, com.azure.core.util.Context context) Returns list of backup policies belonging to a backup vault.- Parameters:
resourceGroupName
- The name of the resource group where the backup vault is present.vaultName
- The name of the backup vault.context
- The context to associate with this operation.- Returns:
- baseBackupPolicyResourceList 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<BaseBackupPolicyResource> getWithResponse(String resourceGroupName, String vaultName, String backupPolicyName, com.azure.core.util.Context context) Gets a backup policy belonging to a backup vault.- Parameters:
resourceGroupName
- The name of the resource group where the backup vault is present.vaultName
- The name of the backup vault.backupPolicyName
- The backupPolicyName parameter.context
- The context to associate with this operation.- Returns:
- a backup policy belonging to a backup vault 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
Gets a backup policy belonging to a backup vault.- Parameters:
resourceGroupName
- The name of the resource group where the backup vault is present.vaultName
- The name of the backup vault.backupPolicyName
- The backupPolicyName parameter.- Returns:
- a backup policy belonging to a backup vault.
- 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String vaultName, String backupPolicyName, com.azure.core.util.Context context) Deletes a backup policy belonging to a backup vault.- Parameters:
resourceGroupName
- The name of the resource group where the backup vault is present.vaultName
- The name of the backup vault.backupPolicyName
- The backupPolicyName parameter.context
- The context to associate with this operation.- Returns:
- the
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
Deletes a backup policy belonging to a backup vault.- Parameters:
resourceGroupName
- The name of the resource group where the backup vault is present.vaultName
- The name of the backup vault.backupPolicyName
- The backupPolicyName parameter.- 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
Gets a backup policy belonging to a backup vault.- Parameters:
id
- the resource ID.- Returns:
- a backup policy belonging to a backup vault 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<BaseBackupPolicyResource> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a backup policy belonging to a backup vault.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- a backup policy belonging to a backup vault 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
Deletes a backup policy belonging to a backup vault.- 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
com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context) Deletes a backup policy belonging to a backup vault.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- the
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.
-
define
Begins definition for a new BaseBackupPolicyResource resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new BaseBackupPolicyResource definition.
-