public interface DatabasesClient
| Modifier and Type | Method and Description |
|---|---|
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 or updates an existing 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 or updates an existing database.
|
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> |
beginDelete(String resourceGroupName,
String serverName,
String databaseName)
Deletes a database.
|
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 a database.
|
DatabaseInner |
create(String resourceGroupName,
String serverName,
String databaseName,
DatabaseInner parameters)
Creates a new database or updates an existing database.
|
DatabaseInner |
create(String resourceGroupName,
String serverName,
String databaseName,
DatabaseInner parameters,
com.azure.core.util.Context context)
Creates a new database or updates an existing database.
|
void |
delete(String resourceGroupName,
String serverName,
String databaseName)
Deletes a database.
|
void |
delete(String resourceGroupName,
String serverName,
String databaseName,
com.azure.core.util.Context context)
Deletes a database.
|
DatabaseInner |
get(String resourceGroupName,
String serverName,
String databaseName)
Gets information about a database.
|
com.azure.core.http.rest.Response<DatabaseInner> |
getWithResponse(String resourceGroupName,
String serverName,
String databaseName,
com.azure.core.util.Context context)
Gets information about a database.
|
com.azure.core.http.rest.PagedIterable<DatabaseInner> |
listByServer(String resourceGroupName,
String serverName)
List all the databases in a given server.
|
com.azure.core.http.rest.PagedIterable<DatabaseInner> |
listByServer(String resourceGroupName,
String serverName,
com.azure.core.util.Context context)
List all the databases in a given server.
|
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabaseInner>,DatabaseInner> beginCreate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.databaseName - The name of the database.parameters - The required parameters for creating or updating a database.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.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)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.databaseName - The name of the database.parameters - The required parameters for creating or updating a database.context - The context to associate with this operation.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.DatabaseInner create(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.databaseName - The name of the database.parameters - The required parameters for creating or updating a database.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.DatabaseInner create(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.databaseName - The name of the database.parameters - The required parameters for creating or updating a database.context - The context to associate with this operation.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String serverName, String databaseName)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.databaseName - The name of the database.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.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)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.databaseName - The name of the database.context - The context to associate with this operation.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.void delete(String resourceGroupName, String serverName, String databaseName)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.databaseName - The name of the database.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.void delete(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.databaseName - The name of the database.context - The context to associate with this operation.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.DatabaseInner get(String resourceGroupName, String serverName, String databaseName)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.databaseName - The name of the database.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.com.azure.core.http.rest.Response<DatabaseInner> getWithResponse(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.databaseName - The name of the database.context - The context to associate with this operation.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.com.azure.core.http.rest.PagedIterable<DatabaseInner> listByServer(String resourceGroupName, String serverName)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.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.com.azure.core.http.rest.PagedIterable<DatabaseInner> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context)
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.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.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.