Interface BackupPoliciesClient


public interface BackupPoliciesClient
An instance of this class provides access to all the operations defined in BackupPoliciesClient.
  • Method Details

    • list

      com.azure.core.http.rest.PagedIterable<BaseBackupPolicyResourceInner> 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<BaseBackupPolicyResourceInner> 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<BaseBackupPolicyResourceInner> 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

      BaseBackupPolicyResourceInner get(String resourceGroupName, String vaultName, String backupPolicyName)
      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.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<BaseBackupPolicyResourceInner> createOrUpdateWithResponse(String resourceGroupName, String vaultName, String backupPolicyName, BaseBackupPolicyResourceInner parameters, com.azure.core.util.Context context)
      Creates or Updates 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 - Name of the policy.
      parameters - Request body for operation.
      context - The context to associate with this operation.
      Returns:
      baseBackupPolicyResource 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.
    • createOrUpdate

      BaseBackupPolicyResourceInner createOrUpdate(String resourceGroupName, String vaultName, String backupPolicyName, BaseBackupPolicyResourceInner parameters)
      Creates or Updates 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 - 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.
    • 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

      void delete(String resourceGroupName, String vaultName, String backupPolicyName)
      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.