ServicesClient Interface

public interface ServicesClient

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

Method Summary

Modifier and Type Method and Description
abstract SyncPoller<PollResult<ServiceResourceInner>,ServiceResourceInner> beginCreate(String resourceGroupName, String accountName, String serviceName, ServiceResourceCreateUpdateParameters createUpdateParameters)

Creates a service.

abstract SyncPoller<PollResult<ServiceResourceInner>,ServiceResourceInner> beginCreate(String resourceGroupName, String accountName, String serviceName, ServiceResourceCreateUpdateParameters createUpdateParameters, Context context)

Creates a service.

abstract PollerFlux<PollResult<ServiceResourceInner>,ServiceResourceInner> beginCreateAsync(String resourceGroupName, String accountName, String serviceName, ServiceResourceCreateUpdateParameters createUpdateParameters)

Creates a service.

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

Deletes service with the given serviceName.

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

Deletes service with the given serviceName.

abstract PollerFlux<PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String accountName, String serviceName)

Deletes service with the given serviceName.

abstract ServiceResourceInner create(String resourceGroupName, String accountName, String serviceName, ServiceResourceCreateUpdateParameters createUpdateParameters)

Creates a service.

abstract ServiceResourceInner create(String resourceGroupName, String accountName, String serviceName, ServiceResourceCreateUpdateParameters createUpdateParameters, Context context)

Creates a service.

abstract Mono<ServiceResourceInner> createAsync(String resourceGroupName, String accountName, String serviceName, ServiceResourceCreateUpdateParameters createUpdateParameters)

Creates a service.

abstract Mono<Response<Flux<ByteBuffer>>> createWithResponseAsync(String resourceGroupName, String accountName, String serviceName, ServiceResourceCreateUpdateParameters createUpdateParameters)

Creates a service.

abstract void delete(String resourceGroupName, String accountName, String serviceName)

Deletes service with the given serviceName.

abstract void delete(String resourceGroupName, String accountName, String serviceName, Context context)

Deletes service with the given serviceName.

abstract Mono<Void> deleteAsync(String resourceGroupName, String accountName, String serviceName)

Deletes service with the given serviceName.

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

Deletes service with the given serviceName.

abstract ServiceResourceInner get(String resourceGroupName, String accountName, String serviceName)

Gets the status of service.

abstract Mono<ServiceResourceInner> getAsync(String resourceGroupName, String accountName, String serviceName)

Gets the status of service.

abstract Response<ServiceResourceInner> getWithResponse(String resourceGroupName, String accountName, String serviceName, Context context)

Gets the status of service.

abstract Mono<Response<ServiceResourceInner>> getWithResponseAsync(String resourceGroupName, String accountName, String serviceName)

Gets the status of service.

abstract PagedIterable<ServiceResourceInner> list(String resourceGroupName, String accountName)

Gets the status of service.

abstract PagedIterable<ServiceResourceInner> list(String resourceGroupName, String accountName, Context context)

Gets the status of service.

abstract PagedFlux<ServiceResourceInner> listAsync(String resourceGroupName, String accountName)

Gets the status of service.

Method Details

beginCreate

public abstract SyncPoller,ServiceResourceInner> beginCreate(String resourceGroupName, String accountName, String serviceName, ServiceResourceCreateUpdateParameters createUpdateParameters)

Creates a service.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
serviceName - Cosmos DB service name.
createUpdateParameters - The Service resource parameters.

Returns:

the SyncPoller<T,U> for polling of properties for the database account.

beginCreate

public abstract SyncPoller,ServiceResourceInner> beginCreate(String resourceGroupName, String accountName, String serviceName, ServiceResourceCreateUpdateParameters createUpdateParameters, Context context)

Creates a service.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
serviceName - Cosmos DB service name.
createUpdateParameters - The Service resource parameters.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of properties for the database account.

beginCreateAsync

public abstract PollerFlux,ServiceResourceInner> beginCreateAsync(String resourceGroupName, String accountName, String serviceName, ServiceResourceCreateUpdateParameters createUpdateParameters)

Creates a service.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
serviceName - Cosmos DB service name.
createUpdateParameters - The Service resource parameters.

Returns:

the PollerFlux<T,U> for polling of properties for the database account.

beginDelete

public abstract SyncPoller,Void> beginDelete(String resourceGroupName, String accountName, String serviceName)

Deletes service with the given serviceName.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
serviceName - Cosmos DB service name.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginDelete

public abstract SyncPoller,Void> beginDelete(String resourceGroupName, String accountName, String serviceName, Context context)

Deletes service with the given serviceName.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
serviceName - Cosmos DB service name.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginDeleteAsync

public abstract PollerFlux,Void> beginDeleteAsync(String resourceGroupName, String accountName, String serviceName)

Deletes service with the given serviceName.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
serviceName - Cosmos DB service name.

Returns:

the PollerFlux<T,U> for polling of long-running operation.

create

public abstract ServiceResourceInner create(String resourceGroupName, String accountName, String serviceName, ServiceResourceCreateUpdateParameters createUpdateParameters)

Creates a service.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
serviceName - Cosmos DB service name.
createUpdateParameters - The Service resource parameters.

Returns:

properties for the database account.

create

public abstract ServiceResourceInner create(String resourceGroupName, String accountName, String serviceName, ServiceResourceCreateUpdateParameters createUpdateParameters, Context context)

Creates a service.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
serviceName - Cosmos DB service name.
createUpdateParameters - The Service resource parameters.
context - The context to associate with this operation.

Returns:

properties for the database account.

createAsync

public abstract Mono createAsync(String resourceGroupName, String accountName, String serviceName, ServiceResourceCreateUpdateParameters createUpdateParameters)

Creates a service.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
serviceName - Cosmos DB service name.
createUpdateParameters - The Service resource parameters.

Returns:

properties for the database account on successful completion of Mono.

createWithResponseAsync

public abstract Mono>> createWithResponseAsync(String resourceGroupName, String accountName, String serviceName, ServiceResourceCreateUpdateParameters createUpdateParameters)

Creates a service.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
serviceName - Cosmos DB service name.
createUpdateParameters - The Service resource parameters.

Returns:

properties for the database account along with Response<T> on successful completion of Mono.

delete

public abstract void delete(String resourceGroupName, String accountName, String serviceName)

Deletes service with the given serviceName.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
serviceName - Cosmos DB service name.

delete

public abstract void delete(String resourceGroupName, String accountName, String serviceName, Context context)

Deletes service with the given serviceName.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
serviceName - Cosmos DB service name.
context - The context to associate with this operation.

deleteAsync

public abstract Mono deleteAsync(String resourceGroupName, String accountName, String serviceName)

Deletes service with the given serviceName.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
serviceName - Cosmos DB service name.

Returns:

A Mono that completes when a successful response is received.

deleteWithResponseAsync

public abstract Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, String serviceName)

Deletes service with the given serviceName.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
serviceName - Cosmos DB service name.

Returns:

the Response<T> on successful completion of Mono.

get

public abstract ServiceResourceInner get(String resourceGroupName, String accountName, String serviceName)

Gets the status of service.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
serviceName - Cosmos DB service name.

Returns:

the status of service.

getAsync

public abstract Mono getAsync(String resourceGroupName, String accountName, String serviceName)

Gets the status of service.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
serviceName - Cosmos DB service name.

Returns:

the status of service on successful completion of Mono.

getWithResponse

public abstract Response getWithResponse(String resourceGroupName, String accountName, String serviceName, Context context)

Gets the status of service.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
serviceName - Cosmos DB service name.
context - The context to associate with this operation.

Returns:

the status of service along with Response<T>.

getWithResponseAsync

public abstract Mono> getWithResponseAsync(String resourceGroupName, String accountName, String serviceName)

Gets the status of service.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
serviceName - Cosmos DB service name.

Returns:

the status of service along with Response<T> on successful completion of Mono.

list

public abstract PagedIterable list(String resourceGroupName, String accountName)

Gets the status of service.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.

Returns:

the status of service as paginated response with PagedIterable<T>.

list

public abstract PagedIterable list(String resourceGroupName, String accountName, Context context)

Gets the status of service.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
context - The context to associate with this operation.

Returns:

the status of service as paginated response with PagedIterable<T>.

listAsync

public abstract PagedFlux listAsync(String resourceGroupName, String accountName)

Gets the status of service.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.

Returns:

the status of service as paginated response with PagedFlux<T>.

Applies to