Interface ServicesClient


public interface ServicesClient
An instance of this class provides access to all the operations defined in ServicesClient.
  • Method Details

    • listAsync

      com.azure.core.http.rest.PagedFlux<ServiceResourceInner> 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.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • list

      com.azure.core.http.rest.PagedIterable<ServiceResourceInner> 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.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • list

      com.azure.core.http.rest.PagedIterable<ServiceResourceInner> list(String resourceGroupName, String accountName, com.azure.core.util.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.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> 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 on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginCreateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ServiceResourceInner>,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 for polling of properties for the database account.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginCreate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServiceResourceInner>,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 for polling of properties for the database account.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginCreate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServiceResourceInner>,ServiceResourceInner> beginCreate(String resourceGroupName, String accountName, String serviceName, ServiceResourceCreateUpdateParameters createUpdateParameters, com.azure.core.util.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 for polling of properties for the database account.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createAsync

      Mono<ServiceResourceInner> 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.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • create

      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.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • create

      ServiceResourceInner create(String resourceGroupName, String accountName, String serviceName, ServiceResourceCreateUpdateParameters createUpdateParameters, com.azure.core.util.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.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getWithResponseAsync

      Mono<com.azure.core.http.rest.Response<ServiceResourceInner>> 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 on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getAsync

      Mono<ServiceResourceInner> 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.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getWithResponse

      com.azure.core.http.rest.Response<ServiceResourceInner> getWithResponse(String resourceGroupName, String accountName, String serviceName, com.azure.core.util.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.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • get

      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.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> 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 on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDeleteAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,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 for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,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 for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String accountName, String serviceName, com.azure.core.util.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 for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteAsync

      Mono<Void> 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.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      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.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String resourceGroupName, String accountName, String serviceName, com.azure.core.util.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.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.