Partilhar via


DatabasesClient Interface

public interface DatabasesClient

An instance of this class provides access to all the operations defined in DatabasesClient.

Method Summary

Modifier and Type Method and Description
abstract SyncPoller<PollResult<DatabaseInner>,DatabaseInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters)

Creates a new database or updates an existing database.

abstract SyncPoller<PollResult<DatabaseInner>,DatabaseInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, Context context)

Creates a new database or updates an existing database.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String serverName, String databaseName)

Deletes a database.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String serverName, String databaseName, Context context)

Deletes a database.

abstract DatabaseInner createOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters)

Creates a new database or updates an existing database.

abstract DatabaseInner createOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, Context context)

Creates a new database or updates an existing database.

abstract void delete(String resourceGroupName, String serverName, String databaseName)

Deletes a database.

abstract void delete(String resourceGroupName, String serverName, String databaseName, Context context)

Deletes a database.

abstract DatabaseInner get(String resourceGroupName, String serverName, String databaseName)

Gets information about a database.

abstract Response<DatabaseInner> getWithResponse(String resourceGroupName, String serverName, String databaseName, Context context)

Gets information about a database.

abstract PagedIterable<DatabaseInner> listByServer(String resourceGroupName, String serverName)

List all the databases in a given server.

abstract PagedIterable<DatabaseInner> listByServer(String resourceGroupName, String serverName, Context context)

List all the databases in a given server.

Method Details

beginCreateOrUpdate

public abstract SyncPoller<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. 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.

Returns:

represents a Database along with Response<T> on successful completion of Mono.

beginCreateOrUpdate

public abstract SyncPoller<PollResult<DatabaseInner>,DatabaseInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, Context context)

Creates a new database or updates an existing database.

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.
context - The context to associate with this operation.

Returns:

represents a Database along with Response<T> on successful completion of Mono.

beginDelete

public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String serverName, String databaseName)

Deletes a database.

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.

Returns:

the Response<T> on successful completion of Mono.

beginDelete

public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String serverName, String databaseName, Context context)

Deletes a database.

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.
context - The context to associate with this operation.

Returns:

the Response<T> on successful completion of Mono.

createOrUpdate

public abstract 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. 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.

Returns:

represents a Database.

createOrUpdate

public abstract DatabaseInner createOrUpdate(String resourceGroupName, String serverName, String databaseName, DatabaseInner parameters, Context context)

Creates a new database or updates an existing database.

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.
context - The context to associate with this operation.

Returns:

represents a Database.

delete

public abstract void delete(String resourceGroupName, String serverName, String databaseName)

Deletes a database.

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.

delete

public abstract void delete(String resourceGroupName, String serverName, String databaseName, Context context)

Deletes a database.

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.
context - The context to associate with this operation.

get

public abstract DatabaseInner get(String resourceGroupName, String serverName, String databaseName)

Gets information about a database.

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.

Returns:

information about a database.

getWithResponse

public abstract Response<DatabaseInner> getWithResponse(String resourceGroupName, String serverName, String databaseName, Context context)

Gets information about a database.

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.
context - The context to associate with this operation.

Returns:

information about a database along with Response<T>.

listByServer

public abstract PagedIterable<DatabaseInner> listByServer(String resourceGroupName, String serverName)

List all the databases in a given server.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.

Returns:

a List of databases.

listByServer

public abstract PagedIterable<DatabaseInner> listByServer(String resourceGroupName, String serverName, Context context)

List all the databases in a given 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:

a List of databases.

Applies to