Partager via


CosmosManager Class

public final class CosmosManager
extends Manager<CosmosDBManagementClient>

Entry point to Azure compute resource management.

Method Summary

Modifier and Type Method and Description
static CosmosManager authenticate(TokenCredential credential, AzureProfile profile)

Creates an instance of ComputeManager that exposes Compute resource management API entry points.

static CosmosManager authenticate(HttpPipeline httpPipeline, AzureProfile profile)

Creates an instance of ComputeManager that exposes Compute resource management API entry points.

static Configurable configure()

Get a Configurable instance that can be used to create ComputeManager with optional configuration.

CosmosDBAccounts databaseAccounts()

Methods inherited from Manager

Methods inherited from java.lang.Object

Method Details

authenticate

public static CosmosManager authenticate(TokenCredential credential, AzureProfile profile)

Creates an instance of ComputeManager that exposes Compute resource management API entry points.

Parameters:

credential - the credential to use
profile - the profile to use

Returns:

the ComputeManager

authenticate

public static CosmosManager authenticate(HttpPipeline httpPipeline, AzureProfile profile)

Creates an instance of ComputeManager that exposes Compute resource management API entry points.

Parameters:

httpPipeline - the HttpPipeline configured with Azure authentication credential.
profile - the profile

Returns:

the ComputeManager

configure

public static CosmosManager.Configurable configure()

Get a Configurable instance that can be used to create ComputeManager with optional configuration.

Returns:

Configurable

databaseAccounts

public CosmosDBAccounts databaseAccounts()

Returns:

the cosmos db database account resource management API entry point

Applies to