Interface LongTermRetentionBackupsClient


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

      • getByResourceGroupWithResponseAsync

        Mono<com.azure.core.http.rest.Response<LongTermRetentionBackupInner>> getByResourceGroupWithResponseAsync​(String resourceGroupName,
                                                                                                                  String locationName,
                                                                                                                  String longTermRetentionServerName,
                                                                                                                  String longTermRetentionDatabaseName,
                                                                                                                  String backupName)
        Gets a long term retention backup.
        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.
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        Returns:
        a long term retention backup.
        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.
      • getByResourceGroupAsync

        Mono<LongTermRetentionBackupInner> getByResourceGroupAsync​(String resourceGroupName,
                                                                   String locationName,
                                                                   String longTermRetentionServerName,
                                                                   String longTermRetentionDatabaseName,
                                                                   String backupName)
        Gets a long term retention backup.
        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.
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        Returns:
        a long term retention backup.
        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.
      • getByResourceGroup

        LongTermRetentionBackupInner getByResourceGroup​(String resourceGroupName,
                                                        String locationName,
                                                        String longTermRetentionServerName,
                                                        String longTermRetentionDatabaseName,
                                                        String backupName)
        Gets a long term retention backup.
        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.
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        Returns:
        a long term retention backup.
        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.
      • getByResourceGroupWithResponse

        com.azure.core.http.rest.Response<LongTermRetentionBackupInner> getByResourceGroupWithResponse​(String resourceGroupName,
                                                                                                       String locationName,
                                                                                                       String longTermRetentionServerName,
                                                                                                       String longTermRetentionDatabaseName,
                                                                                                       String backupName,
                                                                                                       com.azure.core.util.Context context)
        Gets a long term retention backup.
        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.
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        context - The context to associate with this operation.
        Returns:
        a long term retention backup.
        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.
      • deleteByResourceGroupWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteByResourceGroupWithResponseAsync​(String resourceGroupName,
                                                                                                         String locationName,
                                                                                                         String longTermRetentionServerName,
                                                                                                         String longTermRetentionDatabaseName,
                                                                                                         String backupName)
        Deletes a long term retention backup.
        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.
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        Returns:
        the completion.
        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.
      • beginDeleteByResourceGroupAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginDeleteByResourceGroupAsync​(String resourceGroupName,
                                                                                                                                              String locationName,
                                                                                                                                              String longTermRetentionServerName,
                                                                                                                                              String longTermRetentionDatabaseName,
                                                                                                                                              String backupName)
        Deletes a long term retention backup.
        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.
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        Returns:
        the completion.
        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.
      • beginDeleteByResourceGroup

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDeleteByResourceGroup​(String resourceGroupName,
                                                                                                                                         String locationName,
                                                                                                                                         String longTermRetentionServerName,
                                                                                                                                         String longTermRetentionDatabaseName,
                                                                                                                                         String backupName)
        Deletes a long term retention backup.
        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.
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        Returns:
        the completion.
        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.
      • beginDeleteByResourceGroup

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDeleteByResourceGroup​(String resourceGroupName,
                                                                                                                                         String locationName,
                                                                                                                                         String longTermRetentionServerName,
                                                                                                                                         String longTermRetentionDatabaseName,
                                                                                                                                         String backupName,
                                                                                                                                         com.azure.core.util.Context context)
        Deletes a long term retention backup.
        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.
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        context - The context to associate with this operation.
        Returns:
        the completion.
        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.
      • deleteByResourceGroupAsync

        Mono<Void> deleteByResourceGroupAsync​(String resourceGroupName,
                                              String locationName,
                                              String longTermRetentionServerName,
                                              String longTermRetentionDatabaseName,
                                              String backupName)
        Deletes a long term retention backup.
        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.
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        Returns:
        the completion.
        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.
      • deleteByResourceGroup

        void deleteByResourceGroup​(String resourceGroupName,
                                   String locationName,
                                   String longTermRetentionServerName,
                                   String longTermRetentionDatabaseName,
                                   String backupName)
        Deletes a long term retention backup.
        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.
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        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.
      • deleteByResourceGroup

        void deleteByResourceGroup​(String resourceGroupName,
                                   String locationName,
                                   String longTermRetentionServerName,
                                   String longTermRetentionDatabaseName,
                                   String backupName,
                                   com.azure.core.util.Context context)
        Deletes a long term retention backup.
        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.
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        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.
      • listByResourceGroupDatabaseAsync

        com.azure.core.http.rest.PagedFlux<LongTermRetentionBackupInner> listByResourceGroupDatabaseAsync​(String resourceGroupName,
                                                                                                          String locationName,
                                                                                                          String longTermRetentionServerName,
                                                                                                          String longTermRetentionDatabaseName,
                                                                                                          Boolean onlyLatestPerDatabase,
                                                                                                          LongTermRetentionDatabaseState databaseState)
        Lists all long term retention backups for a database.
        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.
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        onlyLatestPerDatabase - Whether or not to only get the latest backup for each database.
        databaseState - Whether to query against just live databases, just deleted databases, or all databases.
        Returns:
        a list of long term retention backups.
        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.
      • listByResourceGroupDatabaseAsync

        com.azure.core.http.rest.PagedFlux<LongTermRetentionBackupInner> listByResourceGroupDatabaseAsync​(String resourceGroupName,
                                                                                                          String locationName,
                                                                                                          String longTermRetentionServerName,
                                                                                                          String longTermRetentionDatabaseName)
        Lists all long term retention backups for a database.
        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.
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        Returns:
        a list of long term retention backups.
        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.
      • listByResourceGroupDatabase

        com.azure.core.http.rest.PagedIterable<LongTermRetentionBackupInner> listByResourceGroupDatabase​(String resourceGroupName,
                                                                                                         String locationName,
                                                                                                         String longTermRetentionServerName,
                                                                                                         String longTermRetentionDatabaseName,
                                                                                                         Boolean onlyLatestPerDatabase,
                                                                                                         LongTermRetentionDatabaseState databaseState,
                                                                                                         com.azure.core.util.Context context)
        Lists all long term retention backups for a database.
        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.
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        onlyLatestPerDatabase - Whether or not to only get the latest backup for each database.
        databaseState - Whether to query against just live databases, just deleted databases, or all databases.
        context - The context to associate with this operation.
        Returns:
        a list of long term retention backups.
        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.
      • listByResourceGroupDatabase

        com.azure.core.http.rest.PagedIterable<LongTermRetentionBackupInner> listByResourceGroupDatabase​(String resourceGroupName,
                                                                                                         String locationName,
                                                                                                         String longTermRetentionServerName,
                                                                                                         String longTermRetentionDatabaseName)
        Lists all long term retention backups for a database.
        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.
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        Returns:
        a list of long term retention backups.
        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.
      • listByResourceGroupLocationAsync

        com.azure.core.http.rest.PagedFlux<LongTermRetentionBackupInner> listByResourceGroupLocationAsync​(String resourceGroupName,
                                                                                                          String locationName,
                                                                                                          Boolean onlyLatestPerDatabase,
                                                                                                          LongTermRetentionDatabaseState databaseState)
        Lists the long term retention backups for a given location.
        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.
        locationName - The location of the database.
        onlyLatestPerDatabase - Whether or not to only get the latest backup for each database.
        databaseState - Whether to query against just live databases, just deleted databases, or all databases.
        Returns:
        a list of long term retention backups.
        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.
      • listByResourceGroupLocationAsync

        com.azure.core.http.rest.PagedFlux<LongTermRetentionBackupInner> listByResourceGroupLocationAsync​(String resourceGroupName,
                                                                                                          String locationName)
        Lists the long term retention backups for a given location.
        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.
        locationName - The location of the database.
        Returns:
        a list of long term retention backups.
        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.
      • listByResourceGroupLocation

        com.azure.core.http.rest.PagedIterable<LongTermRetentionBackupInner> listByResourceGroupLocation​(String resourceGroupName,
                                                                                                         String locationName,
                                                                                                         Boolean onlyLatestPerDatabase,
                                                                                                         LongTermRetentionDatabaseState databaseState,
                                                                                                         com.azure.core.util.Context context)
        Lists the long term retention backups for a given location.
        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.
        locationName - The location of the database.
        onlyLatestPerDatabase - Whether or not to only get the latest backup for each database.
        databaseState - Whether to query against just live databases, just deleted databases, or all databases.
        context - The context to associate with this operation.
        Returns:
        a list of long term retention backups.
        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.
      • listByResourceGroupLocation

        com.azure.core.http.rest.PagedIterable<LongTermRetentionBackupInner> listByResourceGroupLocation​(String resourceGroupName,
                                                                                                         String locationName)
        Lists the long term retention backups for a given location.
        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.
        locationName - The location of the database.
        Returns:
        a list of long term retention backups.
        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.
      • listByResourceGroupServerAsync

        com.azure.core.http.rest.PagedFlux<LongTermRetentionBackupInner> listByResourceGroupServerAsync​(String resourceGroupName,
                                                                                                        String locationName,
                                                                                                        String longTermRetentionServerName,
                                                                                                        Boolean onlyLatestPerDatabase,
                                                                                                        LongTermRetentionDatabaseState databaseState)
        Lists the long term retention backups for a given server.
        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.
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        onlyLatestPerDatabase - Whether or not to only get the latest backup for each database.
        databaseState - Whether to query against just live databases, just deleted databases, or all databases.
        Returns:
        a list of long term retention backups.
        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.
      • listByResourceGroupServerAsync

        com.azure.core.http.rest.PagedFlux<LongTermRetentionBackupInner> listByResourceGroupServerAsync​(String resourceGroupName,
                                                                                                        String locationName,
                                                                                                        String longTermRetentionServerName)
        Lists the long term retention backups for a given server.
        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.
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        Returns:
        a list of long term retention backups.
        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.
      • listByResourceGroupServer

        com.azure.core.http.rest.PagedIterable<LongTermRetentionBackupInner> listByResourceGroupServer​(String resourceGroupName,
                                                                                                       String locationName,
                                                                                                       String longTermRetentionServerName,
                                                                                                       Boolean onlyLatestPerDatabase,
                                                                                                       LongTermRetentionDatabaseState databaseState,
                                                                                                       com.azure.core.util.Context context)
        Lists the long term retention backups for a given server.
        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.
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        onlyLatestPerDatabase - Whether or not to only get the latest backup for each database.
        databaseState - Whether to query against just live databases, just deleted databases, or all databases.
        context - The context to associate with this operation.
        Returns:
        a list of long term retention backups.
        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.
      • listByResourceGroupServer

        com.azure.core.http.rest.PagedIterable<LongTermRetentionBackupInner> listByResourceGroupServer​(String resourceGroupName,
                                                                                                       String locationName,
                                                                                                       String longTermRetentionServerName)
        Lists the long term retention backups for a given server.
        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.
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        Returns:
        a list of long term retention backups.
        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<LongTermRetentionBackupInner>> getWithResponseAsync​(String locationName,
                                                                                                   String longTermRetentionServerName,
                                                                                                   String longTermRetentionDatabaseName,
                                                                                                   String backupName)
        Gets a long term retention backup.
        Parameters:
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        Returns:
        a long term retention backup.
        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<LongTermRetentionBackupInner> getAsync​(String locationName,
                                                    String longTermRetentionServerName,
                                                    String longTermRetentionDatabaseName,
                                                    String backupName)
        Gets a long term retention backup.
        Parameters:
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        Returns:
        a long term retention backup.
        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

        LongTermRetentionBackupInner get​(String locationName,
                                         String longTermRetentionServerName,
                                         String longTermRetentionDatabaseName,
                                         String backupName)
        Gets a long term retention backup.
        Parameters:
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        Returns:
        a long term retention backup.
        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<LongTermRetentionBackupInner> getWithResponse​(String locationName,
                                                                                        String longTermRetentionServerName,
                                                                                        String longTermRetentionDatabaseName,
                                                                                        String backupName,
                                                                                        com.azure.core.util.Context context)
        Gets a long term retention backup.
        Parameters:
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        context - The context to associate with this operation.
        Returns:
        a long term retention backup.
        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.
      • deleteWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync​(String locationName,
                                                                                          String longTermRetentionServerName,
                                                                                          String longTermRetentionDatabaseName,
                                                                                          String backupName)
        Deletes a long term retention backup.
        Parameters:
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        Returns:
        the completion.
        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.
      • beginDeleteAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginDeleteAsync​(String locationName,
                                                                                                                               String longTermRetentionServerName,
                                                                                                                               String longTermRetentionDatabaseName,
                                                                                                                               String backupName)
        Deletes a long term retention backup.
        Parameters:
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        Returns:
        the completion.
        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.
      • beginDelete

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDelete​(String locationName,
                                                                                                                          String longTermRetentionServerName,
                                                                                                                          String longTermRetentionDatabaseName,
                                                                                                                          String backupName)
        Deletes a long term retention backup.
        Parameters:
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        Returns:
        the completion.
        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.
      • beginDelete

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDelete​(String locationName,
                                                                                                                          String longTermRetentionServerName,
                                                                                                                          String longTermRetentionDatabaseName,
                                                                                                                          String backupName,
                                                                                                                          com.azure.core.util.Context context)
        Deletes a long term retention backup.
        Parameters:
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        context - The context to associate with this operation.
        Returns:
        the completion.
        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.
      • deleteAsync

        Mono<Void> deleteAsync​(String locationName,
                               String longTermRetentionServerName,
                               String longTermRetentionDatabaseName,
                               String backupName)
        Deletes a long term retention backup.
        Parameters:
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        Returns:
        the completion.
        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 locationName,
                    String longTermRetentionServerName,
                    String longTermRetentionDatabaseName,
                    String backupName)
        Deletes a long term retention backup.
        Parameters:
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        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 locationName,
                    String longTermRetentionServerName,
                    String longTermRetentionDatabaseName,
                    String backupName,
                    com.azure.core.util.Context context)
        Deletes a long term retention backup.
        Parameters:
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        backupName - The backup name.
        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.
      • listByDatabaseAsync

        com.azure.core.http.rest.PagedFlux<LongTermRetentionBackupInner> listByDatabaseAsync​(String locationName,
                                                                                             String longTermRetentionServerName,
                                                                                             String longTermRetentionDatabaseName,
                                                                                             Boolean onlyLatestPerDatabase,
                                                                                             LongTermRetentionDatabaseState databaseState)
        Lists all long term retention backups for a database.
        Parameters:
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        onlyLatestPerDatabase - Whether or not to only get the latest backup for each database.
        databaseState - Whether to query against just live databases, just deleted databases, or all databases.
        Returns:
        a list of long term retention backups.
        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.
      • listByDatabaseAsync

        com.azure.core.http.rest.PagedFlux<LongTermRetentionBackupInner> listByDatabaseAsync​(String locationName,
                                                                                             String longTermRetentionServerName,
                                                                                             String longTermRetentionDatabaseName)
        Lists all long term retention backups for a database.
        Parameters:
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        Returns:
        a list of long term retention backups.
        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.
      • listByDatabase

        com.azure.core.http.rest.PagedIterable<LongTermRetentionBackupInner> listByDatabase​(String locationName,
                                                                                            String longTermRetentionServerName,
                                                                                            String longTermRetentionDatabaseName,
                                                                                            Boolean onlyLatestPerDatabase,
                                                                                            LongTermRetentionDatabaseState databaseState,
                                                                                            com.azure.core.util.Context context)
        Lists all long term retention backups for a database.
        Parameters:
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        onlyLatestPerDatabase - Whether or not to only get the latest backup for each database.
        databaseState - Whether to query against just live databases, just deleted databases, or all databases.
        context - The context to associate with this operation.
        Returns:
        a list of long term retention backups.
        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.
      • listByDatabase

        com.azure.core.http.rest.PagedIterable<LongTermRetentionBackupInner> listByDatabase​(String locationName,
                                                                                            String longTermRetentionServerName,
                                                                                            String longTermRetentionDatabaseName)
        Lists all long term retention backups for a database.
        Parameters:
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        longTermRetentionDatabaseName - The name of the database.
        Returns:
        a list of long term retention backups.
        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.
      • listByLocationAsync

        com.azure.core.http.rest.PagedFlux<LongTermRetentionBackupInner> listByLocationAsync​(String locationName,
                                                                                             Boolean onlyLatestPerDatabase,
                                                                                             LongTermRetentionDatabaseState databaseState)
        Lists the long term retention backups for a given location.
        Parameters:
        locationName - The location of the database.
        onlyLatestPerDatabase - Whether or not to only get the latest backup for each database.
        databaseState - Whether to query against just live databases, just deleted databases, or all databases.
        Returns:
        a list of long term retention backups.
        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.
      • listByLocationAsync

        com.azure.core.http.rest.PagedFlux<LongTermRetentionBackupInner> listByLocationAsync​(String locationName)
        Lists the long term retention backups for a given location.
        Parameters:
        locationName - The location of the database.
        Returns:
        a list of long term retention backups.
        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.
      • listByLocation

        com.azure.core.http.rest.PagedIterable<LongTermRetentionBackupInner> listByLocation​(String locationName,
                                                                                            Boolean onlyLatestPerDatabase,
                                                                                            LongTermRetentionDatabaseState databaseState,
                                                                                            com.azure.core.util.Context context)
        Lists the long term retention backups for a given location.
        Parameters:
        locationName - The location of the database.
        onlyLatestPerDatabase - Whether or not to only get the latest backup for each database.
        databaseState - Whether to query against just live databases, just deleted databases, or all databases.
        context - The context to associate with this operation.
        Returns:
        a list of long term retention backups.
        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.
      • listByLocation

        com.azure.core.http.rest.PagedIterable<LongTermRetentionBackupInner> listByLocation​(String locationName)
        Lists the long term retention backups for a given location.
        Parameters:
        locationName - The location of the database.
        Returns:
        a list of long term retention backups.
        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.
      • listByServerAsync

        com.azure.core.http.rest.PagedFlux<LongTermRetentionBackupInner> listByServerAsync​(String locationName,
                                                                                           String longTermRetentionServerName,
                                                                                           Boolean onlyLatestPerDatabase,
                                                                                           LongTermRetentionDatabaseState databaseState)
        Lists the long term retention backups for a given server.
        Parameters:
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        onlyLatestPerDatabase - Whether or not to only get the latest backup for each database.
        databaseState - Whether to query against just live databases, just deleted databases, or all databases.
        Returns:
        a list of long term retention backups.
        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.
      • listByServerAsync

        com.azure.core.http.rest.PagedFlux<LongTermRetentionBackupInner> listByServerAsync​(String locationName,
                                                                                           String longTermRetentionServerName)
        Lists the long term retention backups for a given server.
        Parameters:
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        Returns:
        a list of long term retention backups.
        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.
      • listByServer

        com.azure.core.http.rest.PagedIterable<LongTermRetentionBackupInner> listByServer​(String locationName,
                                                                                          String longTermRetentionServerName,
                                                                                          Boolean onlyLatestPerDatabase,
                                                                                          LongTermRetentionDatabaseState databaseState,
                                                                                          com.azure.core.util.Context context)
        Lists the long term retention backups for a given server.
        Parameters:
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        onlyLatestPerDatabase - Whether or not to only get the latest backup for each database.
        databaseState - Whether to query against just live databases, just deleted databases, or all databases.
        context - The context to associate with this operation.
        Returns:
        a list of long term retention backups.
        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.
      • listByServer

        com.azure.core.http.rest.PagedIterable<LongTermRetentionBackupInner> listByServer​(String locationName,
                                                                                          String longTermRetentionServerName)
        Lists the long term retention backups for a given server.
        Parameters:
        locationName - The location of the database.
        longTermRetentionServerName - The name of the server.
        Returns:
        a list of long term retention backups.
        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.