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> beginCreate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) Creates a new database.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>, DatabaseInner> beginCreate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, com.azure.core.util.Context context) Creates a new database.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DatabaseInner>, DatabaseInner> beginCreateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) Creates a new database.beginDelete(String resourceGroupName, String serverName, String databaseName) Deletes an existing database.beginDelete(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Deletes an existing database.beginDeleteAsync(String resourceGroupName, String serverName, String databaseName) Deletes an existing database.create(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) Creates a new database.create(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, com.azure.core.util.Context context) Creates a new database.createAsync(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) Creates a new database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createWithResponseAsync(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) Creates a new database.voidDeletes an existing database.voiddelete(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Deletes an existing database.deleteAsync(String resourceGroupName, String serverName, String databaseName) Deletes an existing database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String serverName, String databaseName) Deletes an existing database.Gets information about an existing database.Gets information about an existing database.com.azure.core.http.rest.Response<DatabaseInner> getWithResponse(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Gets information about an existing database.Mono<com.azure.core.http.rest.Response<DatabaseInner>> getWithResponseAsync(String resourceGroupName, String serverName, String databaseName) Gets information about an existing database.com.azure.core.http.rest.PagedIterable<DatabaseInner> listByServer(String resourceGroupName, String serverName) Lists all databases in a server.com.azure.core.http.rest.PagedIterable<DatabaseInner> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context) Lists all databases in a server.com.azure.core.http.rest.PagedFlux<DatabaseInner> listByServerAsync(String resourceGroupName, String serverName) Lists all databases in a server.
-
Method Details
-
createWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createWithResponseAsync(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) Creates a new database.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.databaseName- Name of the database (case-sensitive). Exact database names can be retrieved by getting the list of all existing databases in a server.parameters- Parameters required to create a new database.- Returns:
- represents 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.
-
beginCreateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DatabaseInner>, DatabaseInner> beginCreateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) Creates a new database.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.databaseName- Name of the database (case-sensitive). Exact database names can be retrieved by getting the list of all existing databases in a server.parameters- Parameters required to create a new database.- Returns:
- the
PollerFluxfor polling of represents 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>, DatabaseInner> beginCreate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) Creates a new database.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.databaseName- Name of the database (case-sensitive). Exact database names can be retrieved by getting the list of all existing databases in a server.parameters- Parameters required to create a new database.- Returns:
- the
SyncPollerfor polling of represents 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>, DatabaseInner> beginCreate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, com.azure.core.util.Context context) Creates a new database.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.databaseName- Name of the database (case-sensitive). Exact database names can be retrieved by getting the list of all existing databases in a server.parameters- Parameters required to create a new database.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of represents 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.
-
createAsync
Mono<DatabaseInner> createAsync(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) Creates a new database.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.databaseName- Name of the database (case-sensitive). Exact database names can be retrieved by getting the list of all existing databases in a server.parameters- Parameters required to create a new database.- Returns:
- represents 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.
-
create
DatabaseInner create(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters) Creates a new database.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.databaseName- Name of the database (case-sensitive). Exact database names can be retrieved by getting the list of all existing databases in a server.parameters- Parameters required to create a new database.- Returns:
- represents 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.
-
create
DatabaseInner create(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, com.azure.core.util.Context context) Creates a new database.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.databaseName- Name of the database (case-sensitive). Exact database names can be retrieved by getting the list of all existing databases in a server.parameters- Parameters required to create a new database.context- The context to associate with this operation.- Returns:
- represents 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.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String serverName, String databaseName) Deletes an existing database.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.databaseName- Name of the database (case-sensitive). Exact database names can be retrieved by getting the list of all existing databases in a server.- 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 an existing database.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.databaseName- Name of the database (case-sensitive). Exact database names can be retrieved by getting the list of all existing databases in a server.- 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 an existing database.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.databaseName- Name of the database (case-sensitive). Exact database names can be retrieved by getting the list of all existing databases in a server.- 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 an existing database.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.databaseName- Name of the database (case-sensitive). Exact database names can be retrieved by getting the list of all existing databases in a server.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 an existing database.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.databaseName- Name of the database (case-sensitive). Exact database names can be retrieved by getting the list of all existing databases in a server.- 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 an existing database.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.databaseName- Name of the database (case-sensitive). Exact database names can be retrieved by getting the list of all existing databases in a server.- 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 an existing database.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.databaseName- Name of the database (case-sensitive). Exact database names can be retrieved by getting the list of all existing databases in a server.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.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<DatabaseInner>> getWithResponseAsync(String resourceGroupName, String serverName, String databaseName) Gets information about an existing database.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.databaseName- Name of the database (case-sensitive). Exact database names can be retrieved by getting the list of all existing databases in a server.- Returns:
- information about an existing 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 information about an existing database.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.databaseName- Name of the database (case-sensitive). Exact database names can be retrieved by getting the list of all existing databases in a server.- Returns:
- information about an existing 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 information about an existing database.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.databaseName- Name of the database (case-sensitive). Exact database names can be retrieved by getting the list of all existing databases in a server.context- The context to associate with this operation.- Returns:
- information about an existing 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 information about an existing database.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.databaseName- Name of the database (case-sensitive). Exact database names can be retrieved by getting the list of all existing databases in a server.- Returns:
- information about an existing 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.
-
listByServerAsync
com.azure.core.http.rest.PagedFlux<DatabaseInner> listByServerAsync(String resourceGroupName, String serverName) Lists all databases in a server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.- Returns:
- list of all databases in a 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.
-
listByServer
com.azure.core.http.rest.PagedIterable<DatabaseInner> listByServer(String resourceGroupName, String serverName) Lists all databases in a server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.- Returns:
- list of all databases in a 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.
-
listByServer
com.azure.core.http.rest.PagedIterable<DatabaseInner> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context) Lists all databases in a server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.context- The context to associate with this operation.- Returns:
- list of all databases in a 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.
-