Interface LongTermRetentionBackupsClient


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

    • listByLocationAsync

      com.azure.core.http.rest.PagedFlux<LongTermRetentionBackupInner> listByLocationAsync(String locationName, Boolean onlyLatestPerDatabase, DatabaseState 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 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.
    • 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 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.
    • 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 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.
    • listByLocation

      com.azure.core.http.rest.PagedIterable<LongTermRetentionBackupInner> listByLocation(String locationName, Boolean onlyLatestPerDatabase, DatabaseState 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 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.
    • listByServerAsync

      com.azure.core.http.rest.PagedFlux<LongTermRetentionBackupInner> listByServerAsync(String locationName, String longTermRetentionServerName, Boolean onlyLatestPerDatabase, DatabaseState 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 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.
    • 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 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.
    • 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 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.
    • listByServer

      com.azure.core.http.rest.PagedIterable<LongTermRetentionBackupInner> listByServer(String locationName, String longTermRetentionServerName, Boolean onlyLatestPerDatabase, DatabaseState 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 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.
    • listByDatabaseAsync

      com.azure.core.http.rest.PagedFlux<LongTermRetentionBackupInner> listByDatabaseAsync(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, Boolean onlyLatestPerDatabase, DatabaseState 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 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.
    • 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 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.
    • 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 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.
    • listByDatabase

      com.azure.core.http.rest.PagedIterable<LongTermRetentionBackupInner> listByDatabase(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, Boolean onlyLatestPerDatabase, DatabaseState 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 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<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 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<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 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<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 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

      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.
    • 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 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.
    • 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 PollerFlux for polling of long-running 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.
    • 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 SyncPoller for polling of long-running 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.
    • 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 SyncPoller for polling of long-running 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.
    • 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:
      A Mono that completes when a successful response is received.
      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.
    • copyWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> copyWithResponseAsync(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, CopyLongTermRetentionBackupParameters parameters)
      Copy an existing 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.
      parameters - The parameters needed for long term retention copy request.
      Returns:
      a LongTermRetentionBackup operation result 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.
    • beginCopyAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<LongTermRetentionBackupOperationResultInner>,LongTermRetentionBackupOperationResultInner> beginCopyAsync(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, CopyLongTermRetentionBackupParameters parameters)
      Copy an existing 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.
      parameters - The parameters needed for long term retention copy request.
      Returns:
      the PollerFlux for polling of a LongTermRetentionBackup operation result 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.
    • beginCopy

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LongTermRetentionBackupOperationResultInner>,LongTermRetentionBackupOperationResultInner> beginCopy(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, CopyLongTermRetentionBackupParameters parameters)
      Copy an existing 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.
      parameters - The parameters needed for long term retention copy request.
      Returns:
      the SyncPoller for polling of a LongTermRetentionBackup operation result 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.
    • beginCopy

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LongTermRetentionBackupOperationResultInner>,LongTermRetentionBackupOperationResultInner> beginCopy(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, CopyLongTermRetentionBackupParameters parameters, com.azure.core.util.Context context)
      Copy an existing 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.
      parameters - The parameters needed for long term retention copy request.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of a LongTermRetentionBackup operation result 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.
    • copyAsync

      Mono<LongTermRetentionBackupOperationResultInner> copyAsync(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, CopyLongTermRetentionBackupParameters parameters)
      Copy an existing 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.
      parameters - The parameters needed for long term retention copy request.
      Returns:
      a LongTermRetentionBackup operation result 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.
    • copy

      LongTermRetentionBackupOperationResultInner copy(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, CopyLongTermRetentionBackupParameters parameters)
      Copy an existing 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.
      parameters - The parameters needed for long term retention copy request.
      Returns:
      a LongTermRetentionBackup operation result 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.
    • copy

      LongTermRetentionBackupOperationResultInner copy(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, CopyLongTermRetentionBackupParameters parameters, com.azure.core.util.Context context)
      Copy an existing 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.
      parameters - The parameters needed for long term retention copy request.
      context - The context to associate with this operation.
      Returns:
      a LongTermRetentionBackup operation result 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.
    • updateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, UpdateLongTermRetentionBackupParameters parameters)
      Updates an existing 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.
      parameters - The requested backup resource state.
      Returns:
      a LongTermRetentionBackup operation result 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.
    • beginUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<LongTermRetentionBackupOperationResultInner>,LongTermRetentionBackupOperationResultInner> beginUpdateAsync(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, UpdateLongTermRetentionBackupParameters parameters)
      Updates an existing 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.
      parameters - The requested backup resource state.
      Returns:
      the PollerFlux for polling of a LongTermRetentionBackup operation result 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.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LongTermRetentionBackupOperationResultInner>,LongTermRetentionBackupOperationResultInner> beginUpdate(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, UpdateLongTermRetentionBackupParameters parameters)
      Updates an existing 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.
      parameters - The requested backup resource state.
      Returns:
      the SyncPoller for polling of a LongTermRetentionBackup operation result 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.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LongTermRetentionBackupOperationResultInner>,LongTermRetentionBackupOperationResultInner> beginUpdate(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, UpdateLongTermRetentionBackupParameters parameters, com.azure.core.util.Context context)
      Updates an existing 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.
      parameters - The requested backup resource state.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of a LongTermRetentionBackup operation result 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.
    • updateAsync

      Mono<LongTermRetentionBackupOperationResultInner> updateAsync(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, UpdateLongTermRetentionBackupParameters parameters)
      Updates an existing 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.
      parameters - The requested backup resource state.
      Returns:
      a LongTermRetentionBackup operation result 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.
    • update

      LongTermRetentionBackupOperationResultInner update(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, UpdateLongTermRetentionBackupParameters parameters)
      Updates an existing 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.
      parameters - The requested backup resource state.
      Returns:
      a LongTermRetentionBackup operation result 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.
    • update

      LongTermRetentionBackupOperationResultInner update(String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, UpdateLongTermRetentionBackupParameters parameters, com.azure.core.util.Context context)
      Updates an existing 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.
      parameters - The requested backup resource state.
      context - The context to associate with this operation.
      Returns:
      a LongTermRetentionBackup operation result 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.
    • listByResourceGroupLocationAsync

      com.azure.core.http.rest.PagedFlux<LongTermRetentionBackupInner> listByResourceGroupLocationAsync(String resourceGroupName, String locationName, Boolean onlyLatestPerDatabase, DatabaseState 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 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.
    • 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 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.
    • 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 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.
    • listByResourceGroupLocation

      com.azure.core.http.rest.PagedIterable<LongTermRetentionBackupInner> listByResourceGroupLocation(String resourceGroupName, String locationName, Boolean onlyLatestPerDatabase, DatabaseState 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 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.
    • listByResourceGroupServerAsync

      com.azure.core.http.rest.PagedFlux<LongTermRetentionBackupInner> listByResourceGroupServerAsync(String resourceGroupName, String locationName, String longTermRetentionServerName, Boolean onlyLatestPerDatabase, DatabaseState 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 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.
    • 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 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.
    • 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 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.
    • listByResourceGroupServer

      com.azure.core.http.rest.PagedIterable<LongTermRetentionBackupInner> listByResourceGroupServer(String resourceGroupName, String locationName, String longTermRetentionServerName, Boolean onlyLatestPerDatabase, DatabaseState 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 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.
    • listByResourceGroupDatabaseAsync

      com.azure.core.http.rest.PagedFlux<LongTermRetentionBackupInner> listByResourceGroupDatabaseAsync(String resourceGroupName, String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, Boolean onlyLatestPerDatabase, DatabaseState 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 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.
    • 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 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.
    • 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 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.
    • listByResourceGroupDatabase

      com.azure.core.http.rest.PagedIterable<LongTermRetentionBackupInner> listByResourceGroupDatabase(String resourceGroupName, String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, Boolean onlyLatestPerDatabase, DatabaseState 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 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.
    • 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 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.
    • 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 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.
    • 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 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.
    • 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.
    • 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 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.
    • 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 PollerFlux for polling of long-running 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.
    • 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 SyncPoller for polling of long-running 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.
    • 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 SyncPoller for polling of long-running 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.
    • 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:
      A Mono that completes when a successful response is received.
      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.
    • copyByResourceGroupWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> copyByResourceGroupWithResponseAsync(String resourceGroupName, String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, CopyLongTermRetentionBackupParameters parameters)
      Copy an existing long term retention backup to a different 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.
      longTermRetentionDatabaseName - The name of the database.
      backupName - The backup name.
      parameters - The parameters needed for long term retention copy request.
      Returns:
      a LongTermRetentionBackup operation result 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.
    • beginCopyByResourceGroupAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<LongTermRetentionBackupOperationResultInner>,LongTermRetentionBackupOperationResultInner> beginCopyByResourceGroupAsync(String resourceGroupName, String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, CopyLongTermRetentionBackupParameters parameters)
      Copy an existing long term retention backup to a different 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.
      longTermRetentionDatabaseName - The name of the database.
      backupName - The backup name.
      parameters - The parameters needed for long term retention copy request.
      Returns:
      the PollerFlux for polling of a LongTermRetentionBackup operation result 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.
    • beginCopyByResourceGroup

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LongTermRetentionBackupOperationResultInner>,LongTermRetentionBackupOperationResultInner> beginCopyByResourceGroup(String resourceGroupName, String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, CopyLongTermRetentionBackupParameters parameters)
      Copy an existing long term retention backup to a different 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.
      longTermRetentionDatabaseName - The name of the database.
      backupName - The backup name.
      parameters - The parameters needed for long term retention copy request.
      Returns:
      the SyncPoller for polling of a LongTermRetentionBackup operation result 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.
    • beginCopyByResourceGroup

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LongTermRetentionBackupOperationResultInner>,LongTermRetentionBackupOperationResultInner> beginCopyByResourceGroup(String resourceGroupName, String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, CopyLongTermRetentionBackupParameters parameters, com.azure.core.util.Context context)
      Copy an existing long term retention backup to a different 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.
      longTermRetentionDatabaseName - The name of the database.
      backupName - The backup name.
      parameters - The parameters needed for long term retention copy request.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of a LongTermRetentionBackup operation result 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.
    • copyByResourceGroupAsync

      Mono<LongTermRetentionBackupOperationResultInner> copyByResourceGroupAsync(String resourceGroupName, String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, CopyLongTermRetentionBackupParameters parameters)
      Copy an existing long term retention backup to a different 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.
      longTermRetentionDatabaseName - The name of the database.
      backupName - The backup name.
      parameters - The parameters needed for long term retention copy request.
      Returns:
      a LongTermRetentionBackup operation result 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.
    • copyByResourceGroup

      LongTermRetentionBackupOperationResultInner copyByResourceGroup(String resourceGroupName, String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, CopyLongTermRetentionBackupParameters parameters)
      Copy an existing long term retention backup to a different 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.
      longTermRetentionDatabaseName - The name of the database.
      backupName - The backup name.
      parameters - The parameters needed for long term retention copy request.
      Returns:
      a LongTermRetentionBackup operation result 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.
    • copyByResourceGroup

      LongTermRetentionBackupOperationResultInner copyByResourceGroup(String resourceGroupName, String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, CopyLongTermRetentionBackupParameters parameters, com.azure.core.util.Context context)
      Copy an existing long term retention backup to a different 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.
      longTermRetentionDatabaseName - The name of the database.
      backupName - The backup name.
      parameters - The parameters needed for long term retention copy request.
      context - The context to associate with this operation.
      Returns:
      a LongTermRetentionBackup operation result 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.
    • updateByResourceGroupWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateByResourceGroupWithResponseAsync(String resourceGroupName, String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, UpdateLongTermRetentionBackupParameters parameters)
      Updates an existing 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.
      parameters - The requested backup resource state.
      Returns:
      a LongTermRetentionBackup operation result 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.
    • beginUpdateByResourceGroupAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<LongTermRetentionBackupOperationResultInner>,LongTermRetentionBackupOperationResultInner> beginUpdateByResourceGroupAsync(String resourceGroupName, String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, UpdateLongTermRetentionBackupParameters parameters)
      Updates an existing 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.
      parameters - The requested backup resource state.
      Returns:
      the PollerFlux for polling of a LongTermRetentionBackup operation result 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.
    • beginUpdateByResourceGroup

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LongTermRetentionBackupOperationResultInner>,LongTermRetentionBackupOperationResultInner> beginUpdateByResourceGroup(String resourceGroupName, String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, UpdateLongTermRetentionBackupParameters parameters)
      Updates an existing 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.
      parameters - The requested backup resource state.
      Returns:
      the SyncPoller for polling of a LongTermRetentionBackup operation result 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.
    • beginUpdateByResourceGroup

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LongTermRetentionBackupOperationResultInner>,LongTermRetentionBackupOperationResultInner> beginUpdateByResourceGroup(String resourceGroupName, String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, UpdateLongTermRetentionBackupParameters parameters, com.azure.core.util.Context context)
      Updates an existing 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.
      parameters - The requested backup resource state.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of a LongTermRetentionBackup operation result 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.
    • updateByResourceGroupAsync

      Mono<LongTermRetentionBackupOperationResultInner> updateByResourceGroupAsync(String resourceGroupName, String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, UpdateLongTermRetentionBackupParameters parameters)
      Updates an existing 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.
      parameters - The requested backup resource state.
      Returns:
      a LongTermRetentionBackup operation result 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.
    • updateByResourceGroup

      LongTermRetentionBackupOperationResultInner updateByResourceGroup(String resourceGroupName, String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, UpdateLongTermRetentionBackupParameters parameters)
      Updates an existing 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.
      parameters - The requested backup resource state.
      Returns:
      a LongTermRetentionBackup operation result 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.
    • updateByResourceGroup

      LongTermRetentionBackupOperationResultInner updateByResourceGroup(String resourceGroupName, String locationName, String longTermRetentionServerName, String longTermRetentionDatabaseName, String backupName, UpdateLongTermRetentionBackupParameters parameters, com.azure.core.util.Context context)
      Updates an existing 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.
      parameters - The requested backup resource state.
      context - The context to associate with this operation.
      Returns:
      a LongTermRetentionBackup operation result 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.