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 updates an existing server.

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

Creates a new server or updates 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<Void>,Void> beginStart(String resourceGroupName, String serverName)

Starts a stopped server.

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

Starts a stopped server.

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

Stops a running server.

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

Stops a running 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 SyncPoller<PollResult<Void>,Void> beginUpgrade(String resourceGroupName, String serverName, ServerUpgradeParameters parameters)

Upgrade server version.

abstract SyncPoller<PollResult<Void>,Void> beginUpgrade(String resourceGroupName, String serverName, ServerUpgradeParameters parameters, Context context)

Upgrade server version.

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

Creates a new server or updates an existing server.

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

Creates a new server or updates 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 void start(String resourceGroupName, String serverName)

Starts a stopped server.

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

Starts a stopped server.

abstract void stop(String resourceGroupName, String serverName)

Stops a running server.

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

Stops a running 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.

abstract void upgrade(String resourceGroupName, String serverName, ServerUpgradeParameters parameters)

Upgrade server version.

abstract void upgrade(String resourceGroupName, String serverName, ServerUpgradeParameters parameters, Context context)

Upgrade server version.

Method Details

beginCreate

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

Creates a new server or updates an existing server. The update action will overwrite the 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<PollResult<ServerInner>,ServerInner> beginCreate(String resourceGroupName, String serverName, ServerForCreate parameters, Context context)

Creates a new server or updates an existing server. The update action will overwrite the 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<PollResult<Void>,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<PollResult<Void>,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<PollResult<Void>,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<PollResult<Void>,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.

beginStart

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

Starts a stopped 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.

beginStart

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

Starts a stopped 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.

beginStop

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

Stops a running 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.

beginStop

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

Stops a running 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<PollResult<ServerInner>,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<PollResult<ServerInner>,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.

beginUpgrade

public abstract SyncPoller<PollResult<Void>,Void> beginUpgrade(String resourceGroupName, String serverName, ServerUpgradeParameters parameters)

Upgrade server version.

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:

the Response<T> on successful completion of Mono.

beginUpgrade

public abstract SyncPoller<PollResult<Void>,Void> beginUpgrade(String resourceGroupName, String serverName, ServerUpgradeParameters parameters, Context context)

Upgrade server version.

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:

the Response<T> on successful completion of Mono.

create

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

Creates a new server or updates an existing server. The update action will overwrite the 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 updates an existing server. The update action will overwrite the 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<ServerInner> 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<ServerInner> list()

List all the servers in a given subscription.

Returns:

a list of servers.

list

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

start

public abstract void start(String resourceGroupName, String serverName)

Starts a stopped server.

Parameters:

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

start

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

Starts a stopped 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.

stop

public abstract void stop(String resourceGroupName, String serverName)

Stops a running server.

Parameters:

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

stop

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

Stops a running 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.

upgrade

public abstract void upgrade(String resourceGroupName, String serverName, ServerUpgradeParameters parameters)

Upgrade server version.

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.

upgrade

public abstract void upgrade(String resourceGroupName, String serverName, ServerUpgradeParameters parameters, Context context)

Upgrade server version.

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.

Applies to