Interface BackupPolicies


public interface BackupPolicies
Resource collection API of BackupPolicies.
  • Method Details

    • list

      com.azure.core.http.rest.PagedIterable<BackupPolicy> list(String resourceGroupName, String accountName)
      List backup policies

      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

      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 backup Policy

      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 backup Policy

      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 a backup policy

      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 a backup policy

      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 backup Policy

      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 backup Policy

      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 a backup policy

      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 a backup policy

      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

      Begins definition for a new BackupPolicy resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new BackupPolicy definition.