Interface BackupPolicies
-
public interface BackupPolicies
Resource collection API of BackupPolicies.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BaseBackupPolicyResource.DefinitionStages.Blank
define(String name)
Begins definition for a new BaseBackupPolicyResource resource.void
delete(String vaultName, String resourceGroupName, String backupPolicyName)
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 vaultName, String resourceGroupName, String backupPolicyName, com.azure.core.util.Context context)
Deletes a backup policy belonging to a backup vault.BaseBackupPolicyResource
get(String vaultName, String resourceGroupName, String backupPolicyName)
Gets a backup policy belonging to a backup vault.BaseBackupPolicyResource
getById(String id)
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 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<BaseBackupPolicyResource>
list(String vaultName, String resourceGroupName)
Returns list of backup policies belonging to a backup vault.com.azure.core.http.rest.PagedIterable<BaseBackupPolicyResource>
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<BaseBackupPolicyResource> 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<BaseBackupPolicyResource> 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
BaseBackupPolicyResource 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<BaseBackupPolicyResource> 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.
-
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.
-
getById
BaseBackupPolicyResource getById(String id)
Gets a backup policy belonging to a backup vault.- Parameters:
id
- the resource ID.- 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.
-
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.
- 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)
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
BaseBackupPolicyResource.DefinitionStages.Blank define(String name)
Begins definition for a new BaseBackupPolicyResource resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new BaseBackupPolicyResource definition.
-
-