ServersClient Interface

public interface ServersClient

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

Method Summary

Modifier and Type Method and Description
abstract SyncPoller<PollResult<ServerInner>,ServerInner> beginCreate(String resourceGroupName, String serverName, ServerForCreate parameters)

Creates a new server, or will overwrite an existing server.

abstract SyncPoller<PollResult<ServerInner>,ServerInner> beginCreate(String resourceGroupName, String serverName, ServerForCreate parameters, Context context)

Creates a new server, or will overwrite an existing server.

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

Deletes a server.

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

Deletes a server.

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

Restarts a server.

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

Restarts a server.

abstract SyncPoller<PollResult<ServerInner>,ServerInner> beginUpdate(String resourceGroupName, String serverName, ServerUpdateParameters parameters)

Updates an existing server.

abstract SyncPoller<PollResult<ServerInner>,ServerInner> beginUpdate(String resourceGroupName, String serverName, ServerUpdateParameters parameters, Context context)

Updates an existing server.

abstract ServerInner create(String resourceGroupName, String serverName, ServerForCreate parameters)

Creates a new server, or will overwrite an existing server.

abstract ServerInner create(String resourceGroupName, String serverName, ServerForCreate parameters, Context context)

Creates a new server, or will overwrite an existing server.

abstract void delete(String resourceGroupName, String serverName)

Deletes a server.

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

Deletes a server.

abstract ServerInner getByResourceGroup(String resourceGroupName, String serverName)

Gets information about a server.

abstract Response<ServerInner> getByResourceGroupWithResponse(String resourceGroupName, String serverName, Context context)

Gets information about a server.

abstract PagedIterable<ServerInner> list()

List all the servers in a given subscription.

abstract PagedIterable<ServerInner> list(Context context)

List all the servers in a given subscription.

abstract PagedIterable<ServerInner> listByResourceGroup(String resourceGroupName)

List all the servers in a given resource group.

abstract PagedIterable<ServerInner> listByResourceGroup(String resourceGroupName, Context context)

List all the servers in a given resource group.

abstract void restart(String resourceGroupName, String serverName)

Restarts a server.

abstract void restart(String resourceGroupName, String serverName, Context context)

Restarts a server.

abstract ServerInner update(String resourceGroupName, String serverName, ServerUpdateParameters parameters)

Updates an existing server.

abstract ServerInner update(String resourceGroupName, String serverName, ServerUpdateParameters parameters, Context context)

Updates an existing server.

Method Details

beginCreate

public abstract SyncPoller<>,ServerInner> beginCreate(String resourceGroupName, String serverName, ServerForCreate parameters)

Creates a new server, or will overwrite an existing server.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.
parameters - The required parameters for creating or updating a server.

Returns:

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

beginCreate

public abstract SyncPoller<>,ServerInner> beginCreate(String resourceGroupName, String serverName, ServerForCreate parameters, Context context)

Creates a new server, or will overwrite an existing server.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.
parameters - The required parameters for creating or updating a server.
context - The context to associate with this operation.

Returns:

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

beginDelete

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

Deletes a server.

Parameters:

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

Returns:

the Response<T> on successful completion of Mono.

beginDelete

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

Deletes 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:

the Response<T> on successful completion of Mono.

beginRestart

public abstract SyncPoller<>,Void> beginRestart(String resourceGroupName, String serverName)

Restarts a server.

Parameters:

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

Returns:

the Response<T> on successful completion of Mono.

beginRestart

public abstract SyncPoller<>,Void> beginRestart(String resourceGroupName, String serverName, Context context)

Restarts 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:

the Response<T> on successful completion of Mono.

beginUpdate

public abstract SyncPoller<>,ServerInner> beginUpdate(String resourceGroupName, String serverName, ServerUpdateParameters parameters)

Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.
parameters - The required parameters for updating a server.

Returns:

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

beginUpdate

public abstract SyncPoller<>,ServerInner> beginUpdate(String resourceGroupName, String serverName, ServerUpdateParameters parameters, Context context)

Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.
parameters - The required parameters for updating a server.
context - The context to associate with this operation.

Returns:

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

create

public abstract ServerInner create(String resourceGroupName, String serverName, ServerForCreate parameters)

Creates a new server, or will overwrite an existing server.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.
parameters - The required parameters for creating or updating a server.

Returns:

represents a server.

create

public abstract ServerInner create(String resourceGroupName, String serverName, ServerForCreate parameters, Context context)

Creates a new server, or will overwrite an existing server.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.
parameters - The required parameters for creating or updating a server.
context - The context to associate with this operation.

Returns:

represents a server.

delete

public abstract void delete(String resourceGroupName, String serverName)

Deletes a server.

Parameters:

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

delete

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

Deletes 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.

getByResourceGroup

public abstract ServerInner getByResourceGroup(String resourceGroupName, String serverName)

Gets information about a server.

Parameters:

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

Returns:

information about a server.

getByResourceGroupWithResponse

public abstract Response getByResourceGroupWithResponse(String resourceGroupName, String serverName, Context context)

Gets information about 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:

information about a server along with Response<T>.

list

public abstract PagedIterable list()

List all the servers in a given subscription.

Returns:

a list of servers.

list

public abstract PagedIterable list(Context context)

List all the servers in a given subscription.

Parameters:

context - The context to associate with this operation.

Returns:

a list of servers.

listByResourceGroup

public abstract PagedIterable listByResourceGroup(String resourceGroupName)

List all the servers in a given resource group.

Parameters:

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

Returns:

a list of servers.

listByResourceGroup

public abstract PagedIterable listByResourceGroup(String resourceGroupName, Context context)

List all the servers in a given resource group.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
context - The context to associate with this operation.

Returns:

a list of servers.

restart

public abstract void restart(String resourceGroupName, String serverName)

Restarts a server.

Parameters:

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

restart

public abstract void restart(String resourceGroupName, String serverName, Context context)

Restarts 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.

update

public abstract ServerInner update(String resourceGroupName, String serverName, ServerUpdateParameters parameters)

Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.
parameters - The required parameters for updating a server.

Returns:

represents a server.

update

public abstract ServerInner update(String resourceGroupName, String serverName, ServerUpdateParameters parameters, Context context)

Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.
parameters - The required parameters for updating a server.
context - The context to associate with this operation.

Returns:

represents a server.

Applies to