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 PollerFlux<PollResult<ServerInner>,ServerInner> beginCreateAsync(String resourceGroupName, String serverName, ServerForCreate parameters)

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 PollerFlux<PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String serverName)

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 PollerFlux<PollResult<Void>,Void> beginRestartAsync(String resourceGroupName, String serverName)

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 PollerFlux<PollResult<ServerInner>,ServerInner> beginUpdateAsync(String resourceGroupName, String serverName, ServerUpdateParameters parameters)

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 Mono<ServerInner> createAsync(String resourceGroupName, String serverName, ServerForCreate parameters)

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

abstract Mono<Response<Flux<ByteBuffer>>> createWithResponseAsync(String resourceGroupName, String serverName, ServerForCreate parameters)

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 Mono<Void> deleteAsync(String resourceGroupName, String serverName)

Deletes a server.

abstract Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String serverName)

Deletes a server.

abstract ServerInner getByResourceGroup(String resourceGroupName, String serverName)

Gets information about a server.

abstract Mono<ServerInner> getByResourceGroupAsync(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 Mono<Response<ServerInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String serverName)

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 PagedFlux<ServerInner> listAsync()

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 PagedFlux<ServerInner> listByResourceGroupAsync(String resourceGroupName)

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 Mono<Void> restartAsync(String resourceGroupName, String serverName)

Restarts a server.

abstract Mono<Response<Flux<ByteBuffer>>> restartWithResponseAsync(String resourceGroupName, String serverName)

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.

abstract Mono<ServerInner> updateAsync(String resourceGroupName, String serverName, ServerUpdateParameters parameters)

Updates an existing server.

abstract Mono<Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String serverName, ServerUpdateParameters parameters)

Updates an existing server.

Method Details

beginCreate

public abstract SyncPoller<PollResult<ServerInner>,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:

the SyncPoller<T,U> for polling of represents a server.

beginCreate

public abstract SyncPoller<PollResult<ServerInner>,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:

the SyncPoller<T,U> for polling of represents a server.

beginCreateAsync

public abstract PollerFlux<PollResult<ServerInner>,ServerInner> beginCreateAsync(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:

the PollerFlux<T,U> for polling of represents a server.

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 SyncPoller<T,U> for polling of long-running operation.

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 SyncPoller<T,U> for polling of long-running operation.

beginDeleteAsync

public abstract PollerFlux<PollResult<Void>,Void> beginDeleteAsync(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 PollerFlux<T,U> for polling of long-running operation.

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 SyncPoller<T,U> for polling of long-running operation.

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 SyncPoller<T,U> for polling of long-running operation.

beginRestartAsync

public abstract PollerFlux<PollResult<Void>,Void> beginRestartAsync(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 PollerFlux<T,U> for polling of long-running operation.

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:

the SyncPoller<T,U> for polling of represents a server.

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:

the SyncPoller<T,U> for polling of represents a server.

beginUpdateAsync

public abstract PollerFlux<PollResult<ServerInner>,ServerInner> beginUpdateAsync(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:

the PollerFlux<T,U> for polling of represents a server.

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.

createAsync

public abstract Mono<ServerInner> createAsync(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 on successful completion of Mono.

createWithResponseAsync

public abstract Mono<Response<Flux<ByteBuffer>>> createWithResponseAsync(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.

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.

deleteAsync

public abstract Mono<Void> deleteAsync(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:

A Mono that completes when a successful response is received.

deleteWithResponseAsync

public abstract Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(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.

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.

getByResourceGroupAsync

public abstract Mono<ServerInner> getByResourceGroupAsync(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 on successful completion of Mono.

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

getByResourceGroupWithResponseAsync

public abstract Mono<Response<ServerInner>> getByResourceGroupWithResponseAsync(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 along with Response<T> on successful completion of Mono.

list

public abstract PagedIterable<ServerInner> list()

List all the servers in a given subscription.

Returns:

a list of servers as paginated response with PagedIterable<T>.

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 as paginated response with PagedIterable<T>.

listAsync

public abstract PagedFlux<ServerInner> listAsync()

List all the servers in a given subscription.

Returns:

a list of servers as paginated response with PagedFlux<T>.

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 as paginated response with PagedIterable<T>.

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 as paginated response with PagedIterable<T>.

listByResourceGroupAsync

public abstract PagedFlux<ServerInner> listByResourceGroupAsync(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 as paginated response with PagedFlux<T>.

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.

restartAsync

public abstract Mono<Void> restartAsync(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:

A Mono that completes when a successful response is received.

restartWithResponseAsync

public abstract Mono<Response<Flux<ByteBuffer>>> restartWithResponseAsync(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.

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.

updateAsync

public abstract Mono<ServerInner> updateAsync(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 on successful completion of Mono.

updateWithResponseAsync

public abstract Mono<Response<Flux<ByteBuffer>>> updateWithResponseAsync(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.

Applies to