Interface BackupPoliciesClient
-
public interface BackupPoliciesClient
An instance of this class provides access to all the operations defined in BackupPoliciesClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BaseBackupPolicyResourceInner
createOrUpdate(String vaultName, String resourceGroupName, String backupPolicyName, BaseBackupPolicyResourceInner parameters)
Creates or Updates a backup policy belonging to a backup vault.com.azure.core.http.rest.Response<BaseBackupPolicyResourceInner>
createOrUpdateWithResponse(String vaultName, String resourceGroupName, String backupPolicyName, BaseBackupPolicyResourceInner parameters, com.azure.core.util.Context context)
Creates or Updates a backup policy belonging to a backup vault.void
delete(String vaultName, String resourceGroupName, String backupPolicyName)
Deletes a backup policy belonging to a backup vault.com.azure.core.http.rest.Response<Void>
deleteWithResponse(String vaultName, String resourceGroupName, String backupPolicyName, com.azure.core.util.Context context)
Deletes a backup policy belonging to a backup vault.BaseBackupPolicyResourceInner
get(String vaultName, String resourceGroupName, String backupPolicyName)
Gets a backup policy belonging to a backup vault.com.azure.core.http.rest.Response<BaseBackupPolicyResourceInner>
getWithResponse(String vaultName, String resourceGroupName, String backupPolicyName, com.azure.core.util.Context context)
Gets a backup policy belonging to a backup vault.com.azure.core.http.rest.PagedIterable<BaseBackupPolicyResourceInner>
list(String vaultName, String resourceGroupName)
Returns list of backup policies belonging to a backup vault.com.azure.core.http.rest.PagedIterable<BaseBackupPolicyResourceInner>
list(String vaultName, String resourceGroupName, com.azure.core.util.Context context)
Returns list of backup policies belonging to a backup vault.
-
-
-
Method Detail
-
list
com.azure.core.http.rest.PagedIterable<BaseBackupPolicyResourceInner> list(String vaultName, String resourceGroupName)
Returns list of backup policies belonging to a backup vault.- Parameters:
vaultName
- The name of the backup vault.resourceGroupName
- The name of the resource group where the backup vault is present.- Returns:
- baseBackupPolicyResourceList.
- 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<BaseBackupPolicyResourceInner> list(String vaultName, String resourceGroupName, com.azure.core.util.Context context)
Returns list of backup policies belonging to a backup vault.- Parameters:
vaultName
- The name of the backup vault.resourceGroupName
- The name of the resource group where the backup vault is present.context
- The context to associate with this operation.- Returns:
- baseBackupPolicyResourceList.
- 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
BaseBackupPolicyResourceInner get(String vaultName, String resourceGroupName, String backupPolicyName)
Gets a backup policy belonging to a backup vault.- Parameters:
vaultName
- The name of the backup vault.resourceGroupName
- The name of the resource group where the backup vault is present.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.
-
getWithResponse
com.azure.core.http.rest.Response<BaseBackupPolicyResourceInner> getWithResponse(String vaultName, String resourceGroupName, String backupPolicyName, com.azure.core.util.Context context)
Gets a backup policy belonging to a backup vault.- Parameters:
vaultName
- The name of the backup vault.resourceGroupName
- The name of the resource group where the backup vault is present.backupPolicyName
- The backupPolicyName parameter.context
- The context to associate with this operation.- 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.
-
createOrUpdate
BaseBackupPolicyResourceInner createOrUpdate(String vaultName, String resourceGroupName, String backupPolicyName, BaseBackupPolicyResourceInner parameters)
Creates or Updates a backup policy belonging to a backup vault.- Parameters:
vaultName
- The name of the backup vault.resourceGroupName
- The name of the resource group where the backup vault is present.backupPolicyName
- Name of the policy.parameters
- Request body for operation.- Returns:
- baseBackupPolicyResource.
- 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<BaseBackupPolicyResourceInner> createOrUpdateWithResponse(String vaultName, String resourceGroupName, String backupPolicyName, BaseBackupPolicyResourceInner parameters, com.azure.core.util.Context context)
Creates or Updates a backup policy belonging to a backup vault.- Parameters:
vaultName
- The name of the backup vault.resourceGroupName
- The name of the resource group where the backup vault is present.backupPolicyName
- Name of the policy.parameters
- Request body for operation.context
- The context to associate with this operation.- Returns:
- baseBackupPolicyResource.
- 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 vaultName, String resourceGroupName, String backupPolicyName)
Deletes a backup policy belonging to a backup vault.- Parameters:
vaultName
- The name of the backup vault.resourceGroupName
- The name of the resource group where the backup vault is present.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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String vaultName, String resourceGroupName, String backupPolicyName, com.azure.core.util.Context context)
Deletes a backup policy belonging to a backup vault.- Parameters:
vaultName
- The name of the backup vault.resourceGroupName
- The name of the resource group where the backup vault is present.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.
-
-