Interface GeoBackupPoliciesClient


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

    • listAsync

      com.azure.core.http.rest.PagedFlux<GeoBackupPolicyInner> listAsync(String resourceGroupName, String serverName, String databaseName)
      Gets a list of Geo backup policies for the given database resource.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      databaseName - The name of the database.
      Returns:
      a list of Geo backup policies for the given database resource as paginated response with PagedFlux.
      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<GeoBackupPolicyInner> list(String resourceGroupName, String serverName, String databaseName)
      Gets a list of Geo backup policies for the given database resource.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      databaseName - The name of the database.
      Returns:
      a list of Geo backup policies for the given database resource 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<GeoBackupPolicyInner> list(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)
      Gets a list of Geo backup policies for the given database resource.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      databaseName - The name of the database.
      context - The context to associate with this operation.
      Returns:
      a list of Geo backup policies for the given database resource 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.
    • getWithResponseAsync

      Mono<com.azure.core.http.rest.Response<GeoBackupPolicyInner>> getWithResponseAsync(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName)
      Gets a Geo backup policy for the given database resource.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      databaseName - The name of the database.
      geoBackupPolicyName - The name of the Geo backup policy. This should always be 'Default'.
      Returns:
      a Geo backup policy for the given database resource along with Response on successful completion of Mono.
      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.
    • getAsync

      Mono<GeoBackupPolicyInner> getAsync(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName)
      Gets a Geo backup policy for the given database resource.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      databaseName - The name of the database.
      geoBackupPolicyName - The name of the Geo backup policy. This should always be 'Default'.
      Returns:
      a Geo backup policy for the given database resource on successful completion of Mono.
      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<GeoBackupPolicyInner> getWithResponse(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName, com.azure.core.util.Context context)
      Gets a Geo backup policy for the given database resource.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      databaseName - The name of the database.
      geoBackupPolicyName - The name of the Geo backup policy. This should always be 'Default'.
      context - The context to associate with this operation.
      Returns:
      a Geo backup policy for the given database resource 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

      GeoBackupPolicyInner get(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName)
      Gets a Geo backup policy for the given database resource.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      databaseName - The name of the database.
      geoBackupPolicyName - The name of the Geo backup policy. This should always be 'Default'.
      Returns:
      a Geo backup policy for the given database resource.
      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.
    • createOrUpdateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<GeoBackupPolicyInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName, GeoBackupPolicyInner parameters)
      Create or update a database default Geo backup policy.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      databaseName - The name of the database.
      geoBackupPolicyName - The name of the Geo backup policy. This should always be 'Default'.
      parameters - The required parameters for creating or updating the geo backup policy.
      Returns:
      a Geo backup policy along with Response on successful completion of Mono.
      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.
    • createOrUpdateAsync

      Mono<GeoBackupPolicyInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName, GeoBackupPolicyInner parameters)
      Create or update a database default Geo backup policy.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      databaseName - The name of the database.
      geoBackupPolicyName - The name of the Geo backup policy. This should always be 'Default'.
      parameters - The required parameters for creating or updating the geo backup policy.
      Returns:
      a Geo backup policy on successful completion of Mono.
      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<GeoBackupPolicyInner> createOrUpdateWithResponse(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName, GeoBackupPolicyInner parameters, com.azure.core.util.Context context)
      Create or update a database default Geo backup policy.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      databaseName - The name of the database.
      geoBackupPolicyName - The name of the Geo backup policy. This should always be 'Default'.
      parameters - The required parameters for creating or updating the geo backup policy.
      context - The context to associate with this operation.
      Returns:
      a Geo 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.
    • createOrUpdate

      GeoBackupPolicyInner createOrUpdate(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName, GeoBackupPolicyInner parameters)
      Create or update a database default Geo backup policy.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      databaseName - The name of the database.
      geoBackupPolicyName - The name of the Geo backup policy. This should always be 'Default'.
      parameters - The required parameters for creating or updating the geo backup policy.
      Returns:
      a Geo 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.