Interface DatabasesClient
public interface DatabasesClient
An instance of this class provides access to all the operations defined in DatabasesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) Creates a new database or updates an existing database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, com.azure.core.util.Context context) Creates a new database or updates an existing database.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) Creates a new database or updates an existing database.beginDelete(String resourceGroupName, String serverName, String databaseName) Deletes the database.beginDelete(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Deletes the database.beginDeleteAsync(String resourceGroupName, String serverName, String databaseName) Deletes the database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportOperationResultInner>,ImportExportOperationResultInner> beginExport(String resourceGroupName, String serverName, String databaseName, ExportDatabaseDefinition parameters) Exports a database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportOperationResultInner>,ImportExportOperationResultInner> beginExport(String resourceGroupName, String serverName, String databaseName, ExportDatabaseDefinition parameters, com.azure.core.util.Context context) Exports a database.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ImportExportOperationResultInner>,ImportExportOperationResultInner> beginExportAsync(String resourceGroupName, String serverName, String databaseName, ExportDatabaseDefinition parameters) Exports a database.beginFailover(String resourceGroupName, String serverName, String databaseName) Failovers a database.beginFailover(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType, com.azure.core.util.Context context) Failovers a database.beginFailoverAsync(String resourceGroupName, String serverName, String databaseName) Failovers a database.beginFailoverAsync(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType) Failovers a database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportOperationResultInner>,ImportExportOperationResultInner> beginImportMethod(String resourceGroupName, String serverName, String databaseName, ImportExistingDatabaseDefinition parameters) Imports a bacpac into a new database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportOperationResultInner>,ImportExportOperationResultInner> beginImportMethod(String resourceGroupName, String serverName, String databaseName, ImportExistingDatabaseDefinition parameters, com.azure.core.util.Context context) Imports a bacpac into a new database.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ImportExportOperationResultInner>,ImportExportOperationResultInner> beginImportMethodAsync(String resourceGroupName, String serverName, String databaseName, ImportExistingDatabaseDefinition parameters) Imports a bacpac into a new database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginPause(String resourceGroupName, String serverName, String databaseName) Pauses a database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginPause(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Pauses a database.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginPauseAsync(String resourceGroupName, String serverName, String databaseName) Pauses a database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginResume(String resourceGroupName, String serverName, String databaseName) Resumes a database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginResume(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Resumes a database.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginResumeAsync(String resourceGroupName, String serverName, String databaseName) Resumes a database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters) Updates an existing database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters, com.azure.core.util.Context context) Updates an existing database.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters) Updates an existing database.beginUpgradeDataWarehouse(String resourceGroupName, String serverName, String databaseName) Upgrades a data warehouse.beginUpgradeDataWarehouse(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Upgrades a data warehouse.beginUpgradeDataWarehouseAsync(String resourceGroupName, String serverName, String databaseName) Upgrades a data warehouse.createOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) Creates a new database or updates an existing database.createOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, com.azure.core.util.Context context) Creates a new database or updates an existing database.createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) Creates a new database or updates an existing database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) Creates a new database or updates an existing database.voidDeletes the database.voiddelete(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Deletes the database.deleteAsync(String resourceGroupName, String serverName, String databaseName) Deletes the database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>deleteWithResponseAsync(String resourceGroupName, String serverName, String databaseName) Deletes the database.export(String resourceGroupName, String serverName, String databaseName, ExportDatabaseDefinition parameters) Exports a database.export(String resourceGroupName, String serverName, String databaseName, ExportDatabaseDefinition parameters, com.azure.core.util.Context context) Exports a database.exportAsync(String resourceGroupName, String serverName, String databaseName, ExportDatabaseDefinition parameters) Exports a database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>exportWithResponseAsync(String resourceGroupName, String serverName, String databaseName, ExportDatabaseDefinition parameters) Exports a database.voidFailovers a database.voidfailover(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType, com.azure.core.util.Context context) Failovers a database.failoverAsync(String resourceGroupName, String serverName, String databaseName) Failovers a database.failoverAsync(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType) Failovers a database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>failoverWithResponseAsync(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType) Failovers a database.Gets a database.Gets a database.com.azure.core.http.rest.Response<DatabaseInner>getWithResponse(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Gets a database.Mono<com.azure.core.http.rest.Response<DatabaseInner>>getWithResponseAsync(String resourceGroupName, String serverName, String databaseName) Gets a database.importMethod(String resourceGroupName, String serverName, String databaseName, ImportExistingDatabaseDefinition parameters) Imports a bacpac into a new database.importMethod(String resourceGroupName, String serverName, String databaseName, ImportExistingDatabaseDefinition parameters, com.azure.core.util.Context context) Imports a bacpac into a new database.importMethodAsync(String resourceGroupName, String serverName, String databaseName, ImportExistingDatabaseDefinition parameters) Imports a bacpac into a new database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>importMethodWithResponseAsync(String resourceGroupName, String serverName, String databaseName, ImportExistingDatabaseDefinition parameters) Imports a bacpac into a new database.com.azure.core.http.rest.PagedIterable<DatabaseInner>listByElasticPool(String resourceGroupName, String serverName, String elasticPoolName) Gets a list of databases in an elastic pool.com.azure.core.http.rest.PagedIterable<DatabaseInner>listByElasticPool(String resourceGroupName, String serverName, String elasticPoolName, com.azure.core.util.Context context) Gets a list of databases in an elastic pool.com.azure.core.http.rest.PagedFlux<DatabaseInner>listByElasticPoolAsync(String resourceGroupName, String serverName, String elasticPoolName) Gets a list of databases in an elastic pool.com.azure.core.http.rest.PagedIterable<DatabaseInner>listByServer(String resourceGroupName, String serverName) Gets a list of databases.com.azure.core.http.rest.PagedIterable<DatabaseInner>listByServer(String resourceGroupName, String serverName, String skipToken, com.azure.core.util.Context context) Gets a list of databases.com.azure.core.http.rest.PagedFlux<DatabaseInner>listByServerAsync(String resourceGroupName, String serverName) Gets a list of databases.com.azure.core.http.rest.PagedFlux<DatabaseInner>listByServerAsync(String resourceGroupName, String serverName, String skipToken) Gets a list of databases.com.azure.core.http.rest.PagedIterable<DatabaseInner>listInaccessibleByServer(String resourceGroupName, String serverName) Gets a list of inaccessible databases in a logical server.com.azure.core.http.rest.PagedIterable<DatabaseInner>listInaccessibleByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context) Gets a list of inaccessible databases in a logical server.com.azure.core.http.rest.PagedFlux<DatabaseInner>listInaccessibleByServerAsync(String resourceGroupName, String serverName) Gets a list of inaccessible databases in a logical server.Pauses a database.pause(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Pauses a database.pauseAsync(String resourceGroupName, String serverName, String databaseName) Pauses a database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>pauseWithResponseAsync(String resourceGroupName, String serverName, String databaseName) Pauses a database.voidrename(String resourceGroupName, String serverName, String databaseName, ResourceMoveDefinition parameters) Renames a database.renameAsync(String resourceGroupName, String serverName, String databaseName, ResourceMoveDefinition parameters) Renames a database.com.azure.core.http.rest.Response<Void>renameWithResponse(String resourceGroupName, String serverName, String databaseName, ResourceMoveDefinition parameters, com.azure.core.util.Context context) Renames a database.renameWithResponseAsync(String resourceGroupName, String serverName, String databaseName, ResourceMoveDefinition parameters) Renames a database.Resumes a database.resume(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Resumes a database.resumeAsync(String resourceGroupName, String serverName, String databaseName) Resumes a database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>resumeWithResponseAsync(String resourceGroupName, String serverName, String databaseName) Resumes a database.update(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters) Updates an existing database.update(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters, com.azure.core.util.Context context) Updates an existing database.updateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters) Updates an existing database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>updateWithResponseAsync(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters) Updates an existing database.voidupgradeDataWarehouse(String resourceGroupName, String serverName, String databaseName) Upgrades a data warehouse.voidupgradeDataWarehouse(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Upgrades a data warehouse.upgradeDataWarehouseAsync(String resourceGroupName, String serverName, String databaseName) Upgrades a data warehouse.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>upgradeDataWarehouseWithResponseAsync(String resourceGroupName, String serverName, String databaseName) Upgrades a data warehouse.
-
Method Details
-
listByServerAsync
com.azure.core.http.rest.PagedFlux<DatabaseInner> listByServerAsync(String resourceGroupName, String serverName, String skipToken) Gets a list of databases.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.skipToken- The skipToken parameter.- Returns:
- a list of databases 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<DatabaseInner> listByServerAsync(String resourceGroupName, String serverName) Gets a list of databases.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.- Returns:
- a list of databases 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<DatabaseInner> listByServer(String resourceGroupName, String serverName) Gets a list of databases.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.- Returns:
- a list of databases 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<DatabaseInner> listByServer(String resourceGroupName, String serverName, String skipToken, com.azure.core.util.Context context) Gets a list of databases.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.skipToken- The skipToken parameter.context- The context to associate with this operation.- Returns:
- a list of databases 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<DatabaseInner>> getWithResponseAsync(String resourceGroupName, String serverName, String databaseName) Gets 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.serverName- The name of the server.databaseName- The name of the database.- Returns:
- a database along with
Responseon successful completion ofMono. - 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
Gets 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.serverName- The name of the server.databaseName- The name of the database.- Returns:
- a database 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<DatabaseInner> getWithResponse(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Gets 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.serverName- The name of the server.databaseName- The name of the database.context- The context to associate with this operation.- Returns:
- a database 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
Gets 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.serverName- The name of the server.databaseName- The name of the database.- Returns:
- a database.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) Creates a new database or updates an existing 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.serverName- The name of the server.databaseName- The name of the database.parameters- The requested database resource state.- Returns:
- a database resource along with
Responseon successful completion ofMono. - 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.
-
beginCreateOrUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) Creates a new database or updates an existing 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.serverName- The name of the server.databaseName- The name of the database.parameters- The requested database resource state.- Returns:
- the
PollerFluxfor polling of a database resource. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) Creates a new database or updates an existing 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.serverName- The name of the server.databaseName- The name of the database.parameters- The requested database resource state.- Returns:
- the
SyncPollerfor polling of a database resource. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, com.azure.core.util.Context context) Creates a new database or updates an existing 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.serverName- The name of the server.databaseName- The name of the database.parameters- The requested database resource state.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of a database resource. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateAsync
Mono<DatabaseInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) Creates a new database or updates an existing 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.serverName- The name of the server.databaseName- The name of the database.parameters- The requested database resource state.- Returns:
- a database resource on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
DatabaseInner createOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) Creates a new database or updates an existing 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.serverName- The name of the server.databaseName- The name of the database.parameters- The requested database resource state.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
DatabaseInner createOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, com.azure.core.util.Context context) Creates a new database or updates an existing 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.serverName- The name of the server.databaseName- The name of the database.parameters- The requested database resource state.context- The context to associate with this operation.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String serverName, String databaseName) Deletes the 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.serverName- The name of the server.databaseName- The name of the database.- Returns:
- the
Responseon successful completion ofMono. - 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 resourceGroupName, String serverName, String databaseName) Deletes the 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.serverName- The name of the server.databaseName- The name of the database.- Returns:
- the
PollerFluxfor 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 resourceGroupName, String serverName, String databaseName) Deletes the 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.serverName- The name of the server.databaseName- The name of the database.- Returns:
- the
SyncPollerfor 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 resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Deletes the 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.serverName- The name of the server.databaseName- The name of the database.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor 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
Deletes the 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.serverName- The name of the server.databaseName- The name of the database.- Returns:
- A
Monothat 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
Deletes the 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.serverName- The name of the server.databaseName- The name of the database.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Deletes the 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.serverName- The name of the server.databaseName- The name of the database.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.
-
updateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters) Updates an existing 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.serverName- The name of the server.databaseName- The name of the database.parameters- The requested database resource state.- Returns:
- a database resource along with
Responseon successful completion ofMono. - 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<DatabaseInner>,DatabaseInner> beginUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters) Updates an existing 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.serverName- The name of the server.databaseName- The name of the database.parameters- The requested database resource state.- Returns:
- the
PollerFluxfor polling of a database resource. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters) Updates an existing 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.serverName- The name of the server.databaseName- The name of the database.parameters- The requested database resource state.- Returns:
- the
SyncPollerfor polling of a database resource. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters, com.azure.core.util.Context context) Updates an existing 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.serverName- The name of the server.databaseName- The name of the database.parameters- The requested database resource state.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of a database resource. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateAsync
Mono<DatabaseInner> updateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters) Updates an existing 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.serverName- The name of the server.databaseName- The name of the database.parameters- The requested database resource state.- Returns:
- a database resource on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
update
DatabaseInner update(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters) Updates an existing 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.serverName- The name of the server.databaseName- The name of the database.parameters- The requested database resource state.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
update
DatabaseInner update(String resourceGroupName, String serverName, String databaseName, DatabaseUpdate parameters, com.azure.core.util.Context context) Updates an existing 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.serverName- The name of the server.databaseName- The name of the database.parameters- The requested database resource state.context- The context to associate with this operation.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
exportWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> exportWithResponseAsync(String resourceGroupName, String serverName, String databaseName, ExportDatabaseDefinition parameters) Exports 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.serverName- The name of the server.databaseName- The name of the database.parameters- The database export request parameters.- Returns:
- an ImportExport operation result resource along with
Responseon successful completion ofMono. - 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.
-
beginExportAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ImportExportOperationResultInner>,ImportExportOperationResultInner> beginExportAsync(String resourceGroupName, String serverName, String databaseName, ExportDatabaseDefinition parameters) Exports 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.serverName- The name of the server.databaseName- The name of the database.parameters- The database export request parameters.- Returns:
- the
PollerFluxfor polling of an ImportExport 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.
-
beginExport
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportOperationResultInner>,ImportExportOperationResultInner> beginExport(String resourceGroupName, String serverName, String databaseName, ExportDatabaseDefinition parameters) Exports 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.serverName- The name of the server.databaseName- The name of the database.parameters- The database export request parameters.- Returns:
- the
SyncPollerfor polling of an ImportExport 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.
-
beginExport
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportOperationResultInner>,ImportExportOperationResultInner> beginExport(String resourceGroupName, String serverName, String databaseName, ExportDatabaseDefinition parameters, com.azure.core.util.Context context) Exports 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.serverName- The name of the server.databaseName- The name of the database.parameters- The database export request parameters.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of an ImportExport 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.
-
exportAsync
Mono<ImportExportOperationResultInner> exportAsync(String resourceGroupName, String serverName, String databaseName, ExportDatabaseDefinition parameters) Exports 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.serverName- The name of the server.databaseName- The name of the database.parameters- The database export request parameters.- Returns:
- an ImportExport 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.
-
export
ImportExportOperationResultInner export(String resourceGroupName, String serverName, String databaseName, ExportDatabaseDefinition parameters) Exports 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.serverName- The name of the server.databaseName- The name of the database.parameters- The database export request parameters.- Returns:
- an ImportExport 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.
-
export
ImportExportOperationResultInner export(String resourceGroupName, String serverName, String databaseName, ExportDatabaseDefinition parameters, com.azure.core.util.Context context) Exports 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.serverName- The name of the server.databaseName- The name of the database.parameters- The database export request parameters.context- The context to associate with this operation.- Returns:
- an ImportExport 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.
-
failoverWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> failoverWithResponseAsync(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType) Failovers 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.serverName- The name of the server.databaseName- The name of the database to failover.replicaType- The type of replica to be failed over.- Returns:
- the
Responseon successful completion ofMono. - 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.
-
beginFailoverAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginFailoverAsync(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType) Failovers 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.serverName- The name of the server.databaseName- The name of the database to failover.replicaType- The type of replica to be failed over.- Returns:
- the
PollerFluxfor 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.
-
beginFailoverAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginFailoverAsync(String resourceGroupName, String serverName, String databaseName) Failovers 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.serverName- The name of the server.databaseName- The name of the database to failover.- Returns:
- the
PollerFluxfor 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.
-
beginFailover
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginFailover(String resourceGroupName, String serverName, String databaseName) Failovers 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.serverName- The name of the server.databaseName- The name of the database to failover.- Returns:
- the
SyncPollerfor 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.
-
beginFailover
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginFailover(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType, com.azure.core.util.Context context) Failovers 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.serverName- The name of the server.databaseName- The name of the database to failover.replicaType- The type of replica to be failed over.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor 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.
-
failoverAsync
Mono<Void> failoverAsync(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType) Failovers 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.serverName- The name of the server.databaseName- The name of the database to failover.replicaType- The type of replica to be failed over.- Returns:
- A
Monothat 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.
-
failoverAsync
Failovers 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.serverName- The name of the server.databaseName- The name of the database to failover.- Returns:
- A
Monothat 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.
-
failover
Failovers 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.serverName- The name of the server.databaseName- The name of the database to failover.- 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.
-
failover
void failover(String resourceGroupName, String serverName, String databaseName, ReplicaType replicaType, com.azure.core.util.Context context) Failovers 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.serverName- The name of the server.databaseName- The name of the database to failover.replicaType- The type of replica to be failed over.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.
-
importMethodWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> importMethodWithResponseAsync(String resourceGroupName, String serverName, String databaseName, ImportExistingDatabaseDefinition parameters) Imports a bacpac into a new 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.serverName- The name of the server.databaseName- The name of the database.parameters- The database import request parameters.- Returns:
- an ImportExport operation result resource along with
Responseon successful completion ofMono. - 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.
-
beginImportMethodAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ImportExportOperationResultInner>,ImportExportOperationResultInner> beginImportMethodAsync(String resourceGroupName, String serverName, String databaseName, ImportExistingDatabaseDefinition parameters) Imports a bacpac into a new 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.serverName- The name of the server.databaseName- The name of the database.parameters- The database import request parameters.- Returns:
- the
PollerFluxfor polling of an ImportExport 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.
-
beginImportMethod
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportOperationResultInner>,ImportExportOperationResultInner> beginImportMethod(String resourceGroupName, String serverName, String databaseName, ImportExistingDatabaseDefinition parameters) Imports a bacpac into a new 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.serverName- The name of the server.databaseName- The name of the database.parameters- The database import request parameters.- Returns:
- the
SyncPollerfor polling of an ImportExport 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.
-
beginImportMethod
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportOperationResultInner>,ImportExportOperationResultInner> beginImportMethod(String resourceGroupName, String serverName, String databaseName, ImportExistingDatabaseDefinition parameters, com.azure.core.util.Context context) Imports a bacpac into a new 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.serverName- The name of the server.databaseName- The name of the database.parameters- The database import request parameters.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of an ImportExport 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.
-
importMethodAsync
Mono<ImportExportOperationResultInner> importMethodAsync(String resourceGroupName, String serverName, String databaseName, ImportExistingDatabaseDefinition parameters) Imports a bacpac into a new 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.serverName- The name of the server.databaseName- The name of the database.parameters- The database import request parameters.- Returns:
- an ImportExport 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.
-
importMethod
ImportExportOperationResultInner importMethod(String resourceGroupName, String serverName, String databaseName, ImportExistingDatabaseDefinition parameters) Imports a bacpac into a new 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.serverName- The name of the server.databaseName- The name of the database.parameters- The database import request parameters.- Returns:
- an ImportExport 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.
-
importMethod
ImportExportOperationResultInner importMethod(String resourceGroupName, String serverName, String databaseName, ImportExistingDatabaseDefinition parameters, com.azure.core.util.Context context) Imports a bacpac into a new 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.serverName- The name of the server.databaseName- The name of the database.parameters- The database import request parameters.context- The context to associate with this operation.- Returns:
- an ImportExport 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.
-
renameWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> renameWithResponseAsync(String resourceGroupName, String serverName, String databaseName, ResourceMoveDefinition parameters) Renames 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.serverName- The name of the server.databaseName- The name of the database to rename.parameters- The resource move definition for renaming this database.- Returns:
- the
Responseon successful completion ofMono. - 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.
-
renameAsync
Mono<Void> renameAsync(String resourceGroupName, String serverName, String databaseName, ResourceMoveDefinition parameters) Renames 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.serverName- The name of the server.databaseName- The name of the database to rename.parameters- The resource move definition for renaming this database.- Returns:
- A
Monothat 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.
-
renameWithResponse
com.azure.core.http.rest.Response<Void> renameWithResponse(String resourceGroupName, String serverName, String databaseName, ResourceMoveDefinition parameters, com.azure.core.util.Context context) Renames 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.serverName- The name of the server.databaseName- The name of the database to rename.parameters- The resource move definition for renaming this database.context- The context to associate with this operation.- Returns:
- the
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
rename
void rename(String resourceGroupName, String serverName, String databaseName, ResourceMoveDefinition parameters) Renames 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.serverName- The name of the server.databaseName- The name of the database to rename.parameters- The resource move definition for renaming this database.- 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.
-
pauseWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> pauseWithResponseAsync(String resourceGroupName, String serverName, String databaseName) Pauses 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.serverName- The name of the server.databaseName- The name of the database to be paused.- Returns:
- a database resource along with
Responseon successful completion ofMono. - 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.
-
beginPauseAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginPauseAsync(String resourceGroupName, String serverName, String databaseName) Pauses 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.serverName- The name of the server.databaseName- The name of the database to be paused.- Returns:
- the
PollerFluxfor polling of a database resource. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginPause
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginPause(String resourceGroupName, String serverName, String databaseName) Pauses 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.serverName- The name of the server.databaseName- The name of the database to be paused.- Returns:
- the
SyncPollerfor polling of a database resource. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginPause
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginPause(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Pauses 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.serverName- The name of the server.databaseName- The name of the database to be paused.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of a database resource. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
pauseAsync
Pauses 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.serverName- The name of the server.databaseName- The name of the database to be paused.- Returns:
- a database resource on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
pause
Pauses 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.serverName- The name of the server.databaseName- The name of the database to be paused.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
pause
DatabaseInner pause(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Pauses 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.serverName- The name of the server.databaseName- The name of the database to be paused.context- The context to associate with this operation.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
resumeWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> resumeWithResponseAsync(String resourceGroupName, String serverName, String databaseName) Resumes 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.serverName- The name of the server.databaseName- The name of the database to be resumed.- Returns:
- a database resource along with
Responseon successful completion ofMono. - 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.
-
beginResumeAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginResumeAsync(String resourceGroupName, String serverName, String databaseName) Resumes 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.serverName- The name of the server.databaseName- The name of the database to be resumed.- Returns:
- the
PollerFluxfor polling of a database resource. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginResume
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginResume(String resourceGroupName, String serverName, String databaseName) Resumes 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.serverName- The name of the server.databaseName- The name of the database to be resumed.- Returns:
- the
SyncPollerfor polling of a database resource. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginResume
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginResume(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Resumes 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.serverName- The name of the server.databaseName- The name of the database to be resumed.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of a database resource. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
resumeAsync
Resumes 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.serverName- The name of the server.databaseName- The name of the database to be resumed.- Returns:
- a database resource on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
resume
Resumes 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.serverName- The name of the server.databaseName- The name of the database to be resumed.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
resume
DatabaseInner resume(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Resumes 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.serverName- The name of the server.databaseName- The name of the database to be resumed.context- The context to associate with this operation.- Returns:
- a database resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
upgradeDataWarehouseWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> upgradeDataWarehouseWithResponseAsync(String resourceGroupName, String serverName, String databaseName) Upgrades a data warehouse.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.databaseName- The name of the database to be upgraded.- Returns:
- the
Responseon successful completion ofMono. - 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.
-
beginUpgradeDataWarehouseAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginUpgradeDataWarehouseAsync(String resourceGroupName, String serverName, String databaseName) Upgrades a data warehouse.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.databaseName- The name of the database to be upgraded.- Returns:
- the
PollerFluxfor 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.
-
beginUpgradeDataWarehouse
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginUpgradeDataWarehouse(String resourceGroupName, String serverName, String databaseName) Upgrades a data warehouse.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.databaseName- The name of the database to be upgraded.- Returns:
- the
SyncPollerfor 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.
-
beginUpgradeDataWarehouse
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginUpgradeDataWarehouse(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Upgrades a data warehouse.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.databaseName- The name of the database to be upgraded.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor 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.
-
upgradeDataWarehouseAsync
Mono<Void> upgradeDataWarehouseAsync(String resourceGroupName, String serverName, String databaseName) Upgrades a data warehouse.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.databaseName- The name of the database to be upgraded.- Returns:
- A
Monothat 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.
-
upgradeDataWarehouse
Upgrades a data warehouse.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.databaseName- The name of the database to be upgraded.- 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.
-
upgradeDataWarehouse
void upgradeDataWarehouse(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Upgrades a data warehouse.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.databaseName- The name of the database to be upgraded.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.
-
listByElasticPoolAsync
com.azure.core.http.rest.PagedFlux<DatabaseInner> listByElasticPoolAsync(String resourceGroupName, String serverName, String elasticPoolName) Gets a list of databases in an elastic pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.elasticPoolName- The name of the elastic pool.- Returns:
- a list of databases in an elastic pool 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.
-
listByElasticPool
com.azure.core.http.rest.PagedIterable<DatabaseInner> listByElasticPool(String resourceGroupName, String serverName, String elasticPoolName) Gets a list of databases in an elastic pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.elasticPoolName- The name of the elastic pool.- Returns:
- a list of databases in an elastic pool 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.
-
listByElasticPool
com.azure.core.http.rest.PagedIterable<DatabaseInner> listByElasticPool(String resourceGroupName, String serverName, String elasticPoolName, com.azure.core.util.Context context) Gets a list of databases in an elastic pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.elasticPoolName- The name of the elastic pool.context- The context to associate with this operation.- Returns:
- a list of databases in an elastic pool 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.
-
listInaccessibleByServerAsync
com.azure.core.http.rest.PagedFlux<DatabaseInner> listInaccessibleByServerAsync(String resourceGroupName, String serverName) Gets a list of inaccessible databases in a logical 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.serverName- The name of the server.- Returns:
- a list of inaccessible databases in a logical server 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.
-
listInaccessibleByServer
com.azure.core.http.rest.PagedIterable<DatabaseInner> listInaccessibleByServer(String resourceGroupName, String serverName) Gets a list of inaccessible databases in a logical 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.serverName- The name of the server.- Returns:
- a list of inaccessible databases in a logical server 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.
-
listInaccessibleByServer
com.azure.core.http.rest.PagedIterable<DatabaseInner> listInaccessibleByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context) Gets a list of inaccessible databases in a logical 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.serverName- The name of the server.context- The context to associate with this operation.- Returns:
- a list of inaccessible databases in a logical server 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.
-