diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index f66bd339c8797..148d321d0dd8c 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -194,6 +194,7 @@ com.azure.resourcemanager:azure-resourcemanager-loganalytics;1.0.0-beta.1;1.0.0-
com.azure.resourcemanager:azure-resourcemanager-eventgrid;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-healthbot;1.0.0-beta.1;1.0.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-confluent;1.0.0-beta.1;1.0.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-cosmos-generated;1.0.0-beta.1;1.0.0-beta.1
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/CHANGELOG.md b/sdk/cosmos/azure-resourcemanager-cosmos-generated/CHANGELOG.md
new file mode 100644
index 0000000000000..d21e2eac79577
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2021-01-21)
+
+- Azure Resource Manager CosmosDB client library for Java. This package contains Microsoft Azure SDK for CosmosDB Management SDK. Azure Cosmos DB Database Service Resource Provider REST API. Package tag package-2020-09. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/README.md b/sdk/cosmos/azure-resourcemanager-cosmos-generated/README.md
new file mode 100644
index 0000000000000..34a8013f1890a
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/README.md
@@ -0,0 +1,99 @@
+# Azure Resource Manager CosmosDB client library for Java
+
+Azure Resource Manager CosmosDB client library for Java.
+
+This package contains Microsoft Azure SDK for CosmosDB Management SDK. Azure Cosmos DB Database Service Resource Provider REST API. Package tag package-2020-09. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+
+## We'd love to hear your feedback
+
+We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
+
+If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
+
+Thank you in advance for your collaboration. We really appreciate your time!
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
+
+## Getting started
+
+### Prerequisites
+
+- [Java Development Kit (JDK)][jdk] with version 8 or above
+- [Azure Subscription][azure_subscription]
+
+### Adding the package to your product
+
+[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-cosmos-generated;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-cosmos-generated
+ 1.0.0-beta.1
+
+```
+[//]: # ({x-version-update-end})
+
+### Include the recommended packages
+
+Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
+
+[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
+
+### Authentication
+
+By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
+
+- `AZURE_CLIENT_ID` for Azure client ID.
+- `AZURE_TENANT_ID` for Azure tenant ID.
+- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+
+In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
+
+With above configuration, `azure` client can be authenticated by following code:
+
+```java
+AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+TokenCredential credential = new DefaultAzureCredentialBuilder()
+ .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
+ .build();
+CosmosDBManager manager = CosmosDBManager
+ .authenticate(credential, profile);
+```
+
+The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+
+See [Authentication][authenticate] for more options.
+
+## Key concepts
+
+See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.
+
+## Examples
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/master/CONTRIBUTING.md).
+
+1. Fork it
+1. Create your feature branch (`git checkout -b my-new-feature`)
+1. Commit your changes (`git commit -am 'Add some feature'`)
+1. Push to the branch (`git push origin my-new-feature`)
+1. Create new Pull Request
+
+
+[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
+[docs]: https://azure.github.io/azure-sdk-for-java/
+[jdk]: https://docs.microsoft.com/java/azure/jdk/
+[azure_subscription]: https://azure.microsoft.com/free/
+[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/pom.xml b/sdk/cosmos/azure-resourcemanager-cosmos-generated/pom.xml
new file mode 100644
index 0000000000000..8df5fcc342fee
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/pom.xml
@@ -0,0 +1,62 @@
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-cosmos-generated
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for CosmosDB Management
+ This package contains Microsoft Azure SDK for CosmosDB Management SDK. Azure Cosmos DB Database Service Resource Provider REST API. Package tag package-2020-09. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+
+
+
+
+ com.azure
+ azure-core-management
+ 1.1.0
+
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.5
+
+ true
+
+
+
+
+
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/CosmosDBManager.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/CosmosDBManager.java
new file mode 100644
index 0000000000000..5e77ecefcf539
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/CosmosDBManager.java
@@ -0,0 +1,459 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated;
+
+import com.azure.core.credential.TokenCredential;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.AddDatePolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
+import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpPipelinePolicy;
+import com.azure.core.http.policy.HttpPolicyProviders;
+import com.azure.core.http.policy.RequestIdPolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.util.Configuration;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.cosmos.generated.fluent.CosmosDBManagementClient;
+import com.azure.resourcemanager.cosmos.generated.implementation.CassandraResourcesImpl;
+import com.azure.resourcemanager.cosmos.generated.implementation.CollectionPartitionRegionsImpl;
+import com.azure.resourcemanager.cosmos.generated.implementation.CollectionPartitionsImpl;
+import com.azure.resourcemanager.cosmos.generated.implementation.CollectionRegionsImpl;
+import com.azure.resourcemanager.cosmos.generated.implementation.CollectionsImpl;
+import com.azure.resourcemanager.cosmos.generated.implementation.CosmosDBManagementClientBuilder;
+import com.azure.resourcemanager.cosmos.generated.implementation.DatabaseAccountRegionsImpl;
+import com.azure.resourcemanager.cosmos.generated.implementation.DatabaseAccountsImpl;
+import com.azure.resourcemanager.cosmos.generated.implementation.DatabasesImpl;
+import com.azure.resourcemanager.cosmos.generated.implementation.GremlinResourcesImpl;
+import com.azure.resourcemanager.cosmos.generated.implementation.MongoDBResourcesImpl;
+import com.azure.resourcemanager.cosmos.generated.implementation.NotebookWorkspacesImpl;
+import com.azure.resourcemanager.cosmos.generated.implementation.OperationsImpl;
+import com.azure.resourcemanager.cosmos.generated.implementation.PartitionKeyRangeIdRegionsImpl;
+import com.azure.resourcemanager.cosmos.generated.implementation.PartitionKeyRangeIdsImpl;
+import com.azure.resourcemanager.cosmos.generated.implementation.PercentileSourceTargetsImpl;
+import com.azure.resourcemanager.cosmos.generated.implementation.PercentileTargetsImpl;
+import com.azure.resourcemanager.cosmos.generated.implementation.PercentilesImpl;
+import com.azure.resourcemanager.cosmos.generated.implementation.PrivateEndpointConnectionsImpl;
+import com.azure.resourcemanager.cosmos.generated.implementation.PrivateLinkResourcesImpl;
+import com.azure.resourcemanager.cosmos.generated.implementation.SqlResourcesImpl;
+import com.azure.resourcemanager.cosmos.generated.implementation.TableResourcesImpl;
+import com.azure.resourcemanager.cosmos.generated.models.CassandraResources;
+import com.azure.resourcemanager.cosmos.generated.models.CollectionPartitionRegions;
+import com.azure.resourcemanager.cosmos.generated.models.CollectionPartitions;
+import com.azure.resourcemanager.cosmos.generated.models.CollectionRegions;
+import com.azure.resourcemanager.cosmos.generated.models.Collections;
+import com.azure.resourcemanager.cosmos.generated.models.DatabaseAccountRegions;
+import com.azure.resourcemanager.cosmos.generated.models.DatabaseAccounts;
+import com.azure.resourcemanager.cosmos.generated.models.Databases;
+import com.azure.resourcemanager.cosmos.generated.models.GremlinResources;
+import com.azure.resourcemanager.cosmos.generated.models.MongoDBResources;
+import com.azure.resourcemanager.cosmos.generated.models.NotebookWorkspaces;
+import com.azure.resourcemanager.cosmos.generated.models.Operations;
+import com.azure.resourcemanager.cosmos.generated.models.PartitionKeyRangeIdRegions;
+import com.azure.resourcemanager.cosmos.generated.models.PartitionKeyRangeIds;
+import com.azure.resourcemanager.cosmos.generated.models.PercentileSourceTargets;
+import com.azure.resourcemanager.cosmos.generated.models.PercentileTargets;
+import com.azure.resourcemanager.cosmos.generated.models.Percentiles;
+import com.azure.resourcemanager.cosmos.generated.models.PrivateEndpointConnections;
+import com.azure.resourcemanager.cosmos.generated.models.PrivateLinkResources;
+import com.azure.resourcemanager.cosmos.generated.models.SqlResources;
+import com.azure.resourcemanager.cosmos.generated.models.TableResources;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/** Entry point to CosmosDBManager. Azure Cosmos DB Database Service Resource Provider REST API. */
+public final class CosmosDBManager {
+ private DatabaseAccounts databaseAccounts;
+
+ private Operations operations;
+
+ private Databases databases;
+
+ private Collections collections;
+
+ private CollectionRegions collectionRegions;
+
+ private DatabaseAccountRegions databaseAccountRegions;
+
+ private PercentileSourceTargets percentileSourceTargets;
+
+ private PercentileTargets percentileTargets;
+
+ private Percentiles percentiles;
+
+ private CollectionPartitionRegions collectionPartitionRegions;
+
+ private CollectionPartitions collectionPartitions;
+
+ private PartitionKeyRangeIds partitionKeyRangeIds;
+
+ private PartitionKeyRangeIdRegions partitionKeyRangeIdRegions;
+
+ private SqlResources sqlResources;
+
+ private MongoDBResources mongoDBResources;
+
+ private TableResources tableResources;
+
+ private CassandraResources cassandraResources;
+
+ private GremlinResources gremlinResources;
+
+ private NotebookWorkspaces notebookWorkspaces;
+
+ private PrivateLinkResources privateLinkResources;
+
+ private PrivateEndpointConnections privateEndpointConnections;
+
+ private final CosmosDBManagementClient clientObject;
+
+ private CosmosDBManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new CosmosDBManagementClientBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of CosmosDB service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the CosmosDB service API instance.
+ */
+ public static CosmosDBManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return configure().authenticate(credential, profile);
+ }
+
+ /**
+ * Gets a Configurable instance that can be used to create CosmosDBManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new CosmosDBManager.Configurable();
+ }
+
+ /** The Configurable allowing configurations to be set. */
+ public static final class Configurable {
+ private final ClientLogger logger = new ClientLogger(Configurable.class);
+
+ private HttpClient httpClient;
+ private HttpLogOptions httpLogOptions;
+ private final List policies = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of CosmosDB service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the CosmosDB service API instance.
+ */
+ public CosmosDBManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder
+ .append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.cosmos.generated")
+ .append("/")
+ .append("1.0.0-beta.1");
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder
+ .append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (retryPolicy == null) {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new RequestIdPolicy());
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies
+ .add(
+ new BearerTokenAuthenticationPolicy(
+ credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new CosmosDBManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @return Resource collection API of DatabaseAccounts. */
+ public DatabaseAccounts databaseAccounts() {
+ if (this.databaseAccounts == null) {
+ this.databaseAccounts = new DatabaseAccountsImpl(clientObject.getDatabaseAccounts(), this);
+ }
+ return databaseAccounts;
+ }
+
+ /** @return Resource collection API of Operations. */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /** @return Resource collection API of Databases. */
+ public Databases databases() {
+ if (this.databases == null) {
+ this.databases = new DatabasesImpl(clientObject.getDatabases(), this);
+ }
+ return databases;
+ }
+
+ /** @return Resource collection API of Collections. */
+ public Collections collections() {
+ if (this.collections == null) {
+ this.collections = new CollectionsImpl(clientObject.getCollections(), this);
+ }
+ return collections;
+ }
+
+ /** @return Resource collection API of CollectionRegions. */
+ public CollectionRegions collectionRegions() {
+ if (this.collectionRegions == null) {
+ this.collectionRegions = new CollectionRegionsImpl(clientObject.getCollectionRegions(), this);
+ }
+ return collectionRegions;
+ }
+
+ /** @return Resource collection API of DatabaseAccountRegions. */
+ public DatabaseAccountRegions databaseAccountRegions() {
+ if (this.databaseAccountRegions == null) {
+ this.databaseAccountRegions =
+ new DatabaseAccountRegionsImpl(clientObject.getDatabaseAccountRegions(), this);
+ }
+ return databaseAccountRegions;
+ }
+
+ /** @return Resource collection API of PercentileSourceTargets. */
+ public PercentileSourceTargets percentileSourceTargets() {
+ if (this.percentileSourceTargets == null) {
+ this.percentileSourceTargets =
+ new PercentileSourceTargetsImpl(clientObject.getPercentileSourceTargets(), this);
+ }
+ return percentileSourceTargets;
+ }
+
+ /** @return Resource collection API of PercentileTargets. */
+ public PercentileTargets percentileTargets() {
+ if (this.percentileTargets == null) {
+ this.percentileTargets = new PercentileTargetsImpl(clientObject.getPercentileTargets(), this);
+ }
+ return percentileTargets;
+ }
+
+ /** @return Resource collection API of Percentiles. */
+ public Percentiles percentiles() {
+ if (this.percentiles == null) {
+ this.percentiles = new PercentilesImpl(clientObject.getPercentiles(), this);
+ }
+ return percentiles;
+ }
+
+ /** @return Resource collection API of CollectionPartitionRegions. */
+ public CollectionPartitionRegions collectionPartitionRegions() {
+ if (this.collectionPartitionRegions == null) {
+ this.collectionPartitionRegions =
+ new CollectionPartitionRegionsImpl(clientObject.getCollectionPartitionRegions(), this);
+ }
+ return collectionPartitionRegions;
+ }
+
+ /** @return Resource collection API of CollectionPartitions. */
+ public CollectionPartitions collectionPartitions() {
+ if (this.collectionPartitions == null) {
+ this.collectionPartitions = new CollectionPartitionsImpl(clientObject.getCollectionPartitions(), this);
+ }
+ return collectionPartitions;
+ }
+
+ /** @return Resource collection API of PartitionKeyRangeIds. */
+ public PartitionKeyRangeIds partitionKeyRangeIds() {
+ if (this.partitionKeyRangeIds == null) {
+ this.partitionKeyRangeIds = new PartitionKeyRangeIdsImpl(clientObject.getPartitionKeyRangeIds(), this);
+ }
+ return partitionKeyRangeIds;
+ }
+
+ /** @return Resource collection API of PartitionKeyRangeIdRegions. */
+ public PartitionKeyRangeIdRegions partitionKeyRangeIdRegions() {
+ if (this.partitionKeyRangeIdRegions == null) {
+ this.partitionKeyRangeIdRegions =
+ new PartitionKeyRangeIdRegionsImpl(clientObject.getPartitionKeyRangeIdRegions(), this);
+ }
+ return partitionKeyRangeIdRegions;
+ }
+
+ /** @return Resource collection API of SqlResources. */
+ public SqlResources sqlResources() {
+ if (this.sqlResources == null) {
+ this.sqlResources = new SqlResourcesImpl(clientObject.getSqlResources(), this);
+ }
+ return sqlResources;
+ }
+
+ /** @return Resource collection API of MongoDBResources. */
+ public MongoDBResources mongoDBResources() {
+ if (this.mongoDBResources == null) {
+ this.mongoDBResources = new MongoDBResourcesImpl(clientObject.getMongoDBResources(), this);
+ }
+ return mongoDBResources;
+ }
+
+ /** @return Resource collection API of TableResources. */
+ public TableResources tableResources() {
+ if (this.tableResources == null) {
+ this.tableResources = new TableResourcesImpl(clientObject.getTableResources(), this);
+ }
+ return tableResources;
+ }
+
+ /** @return Resource collection API of CassandraResources. */
+ public CassandraResources cassandraResources() {
+ if (this.cassandraResources == null) {
+ this.cassandraResources = new CassandraResourcesImpl(clientObject.getCassandraResources(), this);
+ }
+ return cassandraResources;
+ }
+
+ /** @return Resource collection API of GremlinResources. */
+ public GremlinResources gremlinResources() {
+ if (this.gremlinResources == null) {
+ this.gremlinResources = new GremlinResourcesImpl(clientObject.getGremlinResources(), this);
+ }
+ return gremlinResources;
+ }
+
+ /** @return Resource collection API of NotebookWorkspaces. */
+ public NotebookWorkspaces notebookWorkspaces() {
+ if (this.notebookWorkspaces == null) {
+ this.notebookWorkspaces = new NotebookWorkspacesImpl(clientObject.getNotebookWorkspaces(), this);
+ }
+ return notebookWorkspaces;
+ }
+
+ /** @return Resource collection API of PrivateLinkResources. */
+ public PrivateLinkResources privateLinkResources() {
+ if (this.privateLinkResources == null) {
+ this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
+ }
+ return privateLinkResources;
+ }
+
+ /** @return Resource collection API of PrivateEndpointConnections. */
+ public PrivateEndpointConnections privateEndpointConnections() {
+ if (this.privateEndpointConnections == null) {
+ this.privateEndpointConnections =
+ new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ }
+ return privateEndpointConnections;
+ }
+
+ /**
+ * @return Wrapped service client CosmosDBManagementClient providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
+ */
+ public CosmosDBManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/CassandraResourcesClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/CassandraResourcesClient.java
new file mode 100644
index 0000000000000..288b9540b4782
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/CassandraResourcesClient.java
@@ -0,0 +1,954 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.CassandraKeyspaceGetResultsInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.CassandraTableGetResultsInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.ThroughputSettingsGetResultsInner;
+import com.azure.resourcemanager.cosmos.generated.models.CassandraKeyspaceCreateUpdateParameters;
+import com.azure.resourcemanager.cosmos.generated.models.CassandraTableCreateUpdateParameters;
+import com.azure.resourcemanager.cosmos.generated.models.ThroughputSettingsUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in CassandraResourcesClient. */
+public interface CassandraResourcesClient {
+ /**
+ * Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the Cassandra keyspaces and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listCassandraKeyspaces(
+ String resourceGroupName, String accountName);
+
+ /**
+ * Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the Cassandra keyspaces and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listCassandraKeyspaces(
+ String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CassandraKeyspaceGetResultsInner getCassandraKeyspace(
+ String resourceGroupName, String accountName, String keyspaceName);
+
+ /**
+ * Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getCassandraKeyspaceWithResponse(
+ String resourceGroupName, String accountName, String keyspaceName, Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB Cassandra keyspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param createUpdateCassandraKeyspaceParameters The parameters to provide for the current Cassandra keyspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB Cassandra keyspace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, CassandraKeyspaceGetResultsInner>
+ beginCreateUpdateCassandraKeyspace(
+ String resourceGroupName,
+ String accountName,
+ String keyspaceName,
+ CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB Cassandra keyspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param createUpdateCassandraKeyspaceParameters The parameters to provide for the current Cassandra keyspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB Cassandra keyspace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, CassandraKeyspaceGetResultsInner>
+ beginCreateUpdateCassandraKeyspace(
+ String resourceGroupName,
+ String accountName,
+ String keyspaceName,
+ CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters,
+ Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB Cassandra keyspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param createUpdateCassandraKeyspaceParameters The parameters to provide for the current Cassandra keyspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB Cassandra keyspace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CassandraKeyspaceGetResultsInner createUpdateCassandraKeyspace(
+ String resourceGroupName,
+ String accountName,
+ String keyspaceName,
+ CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB Cassandra keyspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param createUpdateCassandraKeyspaceParameters The parameters to provide for the current Cassandra keyspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB Cassandra keyspace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CassandraKeyspaceGetResultsInner createUpdateCassandraKeyspace(
+ String resourceGroupName,
+ String accountName,
+ String keyspaceName,
+ CassandraKeyspaceCreateUpdateParameters createUpdateCassandraKeyspaceParameters,
+ Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB Cassandra keyspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteCassandraKeyspace(
+ String resourceGroupName, String accountName, String keyspaceName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB Cassandra keyspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteCassandraKeyspace(
+ String resourceGroupName, String accountName, String keyspaceName, Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB Cassandra keyspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteCassandraKeyspace(String resourceGroupName, String accountName, String keyspaceName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB Cassandra keyspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteCassandraKeyspace(String resourceGroupName, String accountName, String keyspaceName, Context context);
+
+ /**
+ * Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the
+ * provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the
+ * provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner getCassandraKeyspaceThroughput(
+ String resourceGroupName, String accountName, String keyspaceName);
+
+ /**
+ * Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the
+ * provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the
+ * provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getCassandraKeyspaceThroughputWithResponse(
+ String resourceGroupName, String accountName, String keyspaceName, Context context);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB Cassandra Keyspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current Cassandra
+ * Keyspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginUpdateCassandraKeyspaceThroughput(
+ String resourceGroupName,
+ String accountName,
+ String keyspaceName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB Cassandra Keyspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current Cassandra
+ * Keyspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginUpdateCassandraKeyspaceThroughput(
+ String resourceGroupName,
+ String accountName,
+ String keyspaceName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters,
+ Context context);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB Cassandra Keyspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current Cassandra
+ * Keyspace.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner updateCassandraKeyspaceThroughput(
+ String resourceGroupName,
+ String accountName,
+ String keyspaceName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB Cassandra Keyspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current Cassandra
+ * Keyspace.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner updateCassandraKeyspaceThroughput(
+ String resourceGroupName,
+ String accountName,
+ String keyspaceName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters,
+ Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateCassandraKeyspaceToAutoscale(String resourceGroupName, String accountName, String keyspaceName);
+
+ /**
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateCassandraKeyspaceToAutoscale(
+ String resourceGroupName, String accountName, String keyspaceName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateCassandraKeyspaceToAutoscale(
+ String resourceGroupName, String accountName, String keyspaceName);
+
+ /**
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateCassandraKeyspaceToAutoscale(
+ String resourceGroupName, String accountName, String keyspaceName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateCassandraKeyspaceToManualThroughput(
+ String resourceGroupName, String accountName, String keyspaceName);
+
+ /**
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateCassandraKeyspaceToManualThroughput(
+ String resourceGroupName, String accountName, String keyspaceName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateCassandraKeyspaceToManualThroughput(
+ String resourceGroupName, String accountName, String keyspaceName);
+
+ /**
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateCassandraKeyspaceToManualThroughput(
+ String resourceGroupName, String accountName, String keyspaceName, Context context);
+
+ /**
+ * Lists the Cassandra table under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the Cassandra tables and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listCassandraTables(
+ String resourceGroupName, String accountName, String keyspaceName);
+
+ /**
+ * Lists the Cassandra table under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the Cassandra tables and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listCassandraTables(
+ String resourceGroupName, String accountName, String keyspaceName, Context context);
+
+ /**
+ * Gets the Cassandra table under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Cassandra table under an existing Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CassandraTableGetResultsInner getCassandraTable(
+ String resourceGroupName, String accountName, String keyspaceName, String tableName);
+
+ /**
+ * Gets the Cassandra table under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Cassandra table under an existing Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getCassandraTableWithResponse(
+ String resourceGroupName, String accountName, String keyspaceName, String tableName, Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB Cassandra Table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @param createUpdateCassandraTableParameters The parameters to provide for the current Cassandra Table.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB Cassandra table.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, CassandraTableGetResultsInner>
+ beginCreateUpdateCassandraTable(
+ String resourceGroupName,
+ String accountName,
+ String keyspaceName,
+ String tableName,
+ CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB Cassandra Table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @param createUpdateCassandraTableParameters The parameters to provide for the current Cassandra Table.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB Cassandra table.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, CassandraTableGetResultsInner>
+ beginCreateUpdateCassandraTable(
+ String resourceGroupName,
+ String accountName,
+ String keyspaceName,
+ String tableName,
+ CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters,
+ Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB Cassandra Table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @param createUpdateCassandraTableParameters The parameters to provide for the current Cassandra Table.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB Cassandra table.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CassandraTableGetResultsInner createUpdateCassandraTable(
+ String resourceGroupName,
+ String accountName,
+ String keyspaceName,
+ String tableName,
+ CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB Cassandra Table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @param createUpdateCassandraTableParameters The parameters to provide for the current Cassandra Table.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB Cassandra table.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CassandraTableGetResultsInner createUpdateCassandraTable(
+ String resourceGroupName,
+ String accountName,
+ String keyspaceName,
+ String tableName,
+ CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters,
+ Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB Cassandra table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteCassandraTable(
+ String resourceGroupName, String accountName, String keyspaceName, String tableName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB Cassandra table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteCassandraTable(
+ String resourceGroupName, String accountName, String keyspaceName, String tableName, Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB Cassandra table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteCassandraTable(String resourceGroupName, String accountName, String keyspaceName, String tableName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB Cassandra table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteCassandraTable(
+ String resourceGroupName, String accountName, String keyspaceName, String tableName, Context context);
+
+ /**
+ * Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the
+ * provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the
+ * provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner getCassandraTableThroughput(
+ String resourceGroupName, String accountName, String keyspaceName, String tableName);
+
+ /**
+ * Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the
+ * provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the
+ * provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getCassandraTableThroughputWithResponse(
+ String resourceGroupName, String accountName, String keyspaceName, String tableName, Context context);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB Cassandra table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current Cassandra
+ * table.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginUpdateCassandraTableThroughput(
+ String resourceGroupName,
+ String accountName,
+ String keyspaceName,
+ String tableName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB Cassandra table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current Cassandra
+ * table.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginUpdateCassandraTableThroughput(
+ String resourceGroupName,
+ String accountName,
+ String keyspaceName,
+ String tableName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters,
+ Context context);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB Cassandra table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current Cassandra
+ * table.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner updateCassandraTableThroughput(
+ String resourceGroupName,
+ String accountName,
+ String keyspaceName,
+ String tableName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB Cassandra table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current Cassandra
+ * table.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner updateCassandraTableThroughput(
+ String resourceGroupName,
+ String accountName,
+ String keyspaceName,
+ String tableName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters,
+ Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateCassandraTableToAutoscale(
+ String resourceGroupName, String accountName, String keyspaceName, String tableName);
+
+ /**
+ * Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateCassandraTableToAutoscale(
+ String resourceGroupName, String accountName, String keyspaceName, String tableName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateCassandraTableToAutoscale(
+ String resourceGroupName, String accountName, String keyspaceName, String tableName);
+
+ /**
+ * Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateCassandraTableToAutoscale(
+ String resourceGroupName, String accountName, String keyspaceName, String tableName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateCassandraTableToManualThroughput(
+ String resourceGroupName, String accountName, String keyspaceName, String tableName);
+
+ /**
+ * Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateCassandraTableToManualThroughput(
+ String resourceGroupName, String accountName, String keyspaceName, String tableName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateCassandraTableToManualThroughput(
+ String resourceGroupName, String accountName, String keyspaceName, String tableName);
+
+ /**
+ * Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyspaceName Cosmos DB keyspace name.
+ * @param tableName Cosmos DB table name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateCassandraTableToManualThroughput(
+ String resourceGroupName, String accountName, String keyspaceName, String tableName, Context context);
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/CollectionPartitionRegionsClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/CollectionPartitionRegionsClient.java
new file mode 100644
index 0000000000000..71bf720881e09
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/CollectionPartitionRegionsClient.java
@@ -0,0 +1,66 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.PartitionMetricInner;
+
+/** An instance of this class provides access to all the operations defined in CollectionPartitionRegionsClient. */
+public interface CollectionPartitionRegionsClient {
+ /**
+ * Retrieves the metrics determined by the given filter for the given collection and region, split by partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param region Cosmos DB region, with spaces between words and each word capitalized.
+ * @param databaseRid Cosmos DB database rid.
+ * @param collectionRid Cosmos DB collection rid.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list partition metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(
+ String resourceGroupName,
+ String accountName,
+ String region,
+ String databaseRid,
+ String collectionRid,
+ String filter);
+
+ /**
+ * Retrieves the metrics determined by the given filter for the given collection and region, split by partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param region Cosmos DB region, with spaces between words and each word capitalized.
+ * @param databaseRid Cosmos DB database rid.
+ * @param collectionRid Cosmos DB collection rid.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list partition metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(
+ String resourceGroupName,
+ String accountName,
+ String region,
+ String databaseRid,
+ String collectionRid,
+ String filter,
+ Context context);
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/CollectionPartitionsClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/CollectionPartitionsClient.java
new file mode 100644
index 0000000000000..2b56234440753
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/CollectionPartitionsClient.java
@@ -0,0 +1,99 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.PartitionMetricInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.PartitionUsageInner;
+
+/** An instance of this class provides access to all the operations defined in CollectionPartitionsClient. */
+public interface CollectionPartitionsClient {
+ /**
+ * Retrieves the metrics determined by the given filter for the given collection, split by partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseRid Cosmos DB database rid.
+ * @param collectionRid Cosmos DB collection rid.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list partition metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(
+ String resourceGroupName, String accountName, String databaseRid, String collectionRid, String filter);
+
+ /**
+ * Retrieves the metrics determined by the given filter for the given collection, split by partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseRid Cosmos DB database rid.
+ * @param collectionRid Cosmos DB collection rid.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list partition metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(
+ String resourceGroupName,
+ String accountName,
+ String databaseRid,
+ String collectionRid,
+ String filter,
+ Context context);
+
+ /**
+ * Retrieves the usages (most recent storage data) for the given collection, split by partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseRid Cosmos DB database rid.
+ * @param collectionRid Cosmos DB collection rid.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list partition level usage request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listUsages(
+ String resourceGroupName, String accountName, String databaseRid, String collectionRid);
+
+ /**
+ * Retrieves the usages (most recent storage data) for the given collection, split by partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseRid Cosmos DB database rid.
+ * @param collectionRid Cosmos DB collection rid.
+ * @param filter An OData filter expression that describes a subset of usages to return. The supported parameter is
+ * name.value (name of the metric, can have an or of multiple names).
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list partition level usage request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listUsages(
+ String resourceGroupName,
+ String accountName,
+ String databaseRid,
+ String collectionRid,
+ String filter,
+ Context context);
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/CollectionRegionsClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/CollectionRegionsClient.java
new file mode 100644
index 0000000000000..b91fa05e2f395
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/CollectionRegionsClient.java
@@ -0,0 +1,66 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.MetricInner;
+
+/** An instance of this class provides access to all the operations defined in CollectionRegionsClient. */
+public interface CollectionRegionsClient {
+ /**
+ * Retrieves the metrics determined by the given filter for the given database account, collection and region.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param region Cosmos DB region, with spaces between words and each word capitalized.
+ * @param databaseRid Cosmos DB database rid.
+ * @param collectionRid Cosmos DB collection rid.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(
+ String resourceGroupName,
+ String accountName,
+ String region,
+ String databaseRid,
+ String collectionRid,
+ String filter);
+
+ /**
+ * Retrieves the metrics determined by the given filter for the given database account, collection and region.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param region Cosmos DB region, with spaces between words and each word capitalized.
+ * @param databaseRid Cosmos DB database rid.
+ * @param collectionRid Cosmos DB collection rid.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(
+ String resourceGroupName,
+ String accountName,
+ String region,
+ String databaseRid,
+ String collectionRid,
+ String filter,
+ Context context);
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/CollectionsClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/CollectionsClient.java
new file mode 100644
index 0000000000000..a5c83b2e13f7d
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/CollectionsClient.java
@@ -0,0 +1,133 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.MetricDefinitionInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.MetricInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.UsageInner;
+
+/** An instance of this class provides access to all the operations defined in CollectionsClient. */
+public interface CollectionsClient {
+ /**
+ * Retrieves the metrics determined by the given filter for the given database account and collection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseRid Cosmos DB database rid.
+ * @param collectionRid Cosmos DB collection rid.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(
+ String resourceGroupName, String accountName, String databaseRid, String collectionRid, String filter);
+
+ /**
+ * Retrieves the metrics determined by the given filter for the given database account and collection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseRid Cosmos DB database rid.
+ * @param collectionRid Cosmos DB collection rid.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(
+ String resourceGroupName,
+ String accountName,
+ String databaseRid,
+ String collectionRid,
+ String filter,
+ Context context);
+
+ /**
+ * Retrieves the usages (most recent storage data) for the given collection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseRid Cosmos DB database rid.
+ * @param collectionRid Cosmos DB collection rid.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list usage request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listUsages(
+ String resourceGroupName, String accountName, String databaseRid, String collectionRid);
+
+ /**
+ * Retrieves the usages (most recent storage data) for the given collection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseRid Cosmos DB database rid.
+ * @param collectionRid Cosmos DB collection rid.
+ * @param filter An OData filter expression that describes a subset of usages to return. The supported parameter is
+ * name.value (name of the metric, can have an or of multiple names).
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list usage request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listUsages(
+ String resourceGroupName,
+ String accountName,
+ String databaseRid,
+ String collectionRid,
+ String filter,
+ Context context);
+
+ /**
+ * Retrieves metric definitions for the given collection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseRid Cosmos DB database rid.
+ * @param collectionRid Cosmos DB collection rid.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list metric definitions request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetricDefinitions(
+ String resourceGroupName, String accountName, String databaseRid, String collectionRid);
+
+ /**
+ * Retrieves metric definitions for the given collection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseRid Cosmos DB database rid.
+ * @param collectionRid Cosmos DB collection rid.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list metric definitions request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetricDefinitions(
+ String resourceGroupName, String accountName, String databaseRid, String collectionRid, Context context);
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/CosmosDBManagementClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/CosmosDBManagementClient.java
new file mode 100644
index 0000000000000..88d198af96974
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/CosmosDBManagementClient.java
@@ -0,0 +1,186 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for CosmosDBManagementClient class. */
+public interface CosmosDBManagementClient {
+ /**
+ * Gets The ID of the target subscription.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the DatabaseAccountsClient object to access its operations.
+ *
+ * @return the DatabaseAccountsClient object.
+ */
+ DatabaseAccountsClient getDatabaseAccounts();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the DatabasesClient object to access its operations.
+ *
+ * @return the DatabasesClient object.
+ */
+ DatabasesClient getDatabases();
+
+ /**
+ * Gets the CollectionsClient object to access its operations.
+ *
+ * @return the CollectionsClient object.
+ */
+ CollectionsClient getCollections();
+
+ /**
+ * Gets the CollectionRegionsClient object to access its operations.
+ *
+ * @return the CollectionRegionsClient object.
+ */
+ CollectionRegionsClient getCollectionRegions();
+
+ /**
+ * Gets the DatabaseAccountRegionsClient object to access its operations.
+ *
+ * @return the DatabaseAccountRegionsClient object.
+ */
+ DatabaseAccountRegionsClient getDatabaseAccountRegions();
+
+ /**
+ * Gets the PercentileSourceTargetsClient object to access its operations.
+ *
+ * @return the PercentileSourceTargetsClient object.
+ */
+ PercentileSourceTargetsClient getPercentileSourceTargets();
+
+ /**
+ * Gets the PercentileTargetsClient object to access its operations.
+ *
+ * @return the PercentileTargetsClient object.
+ */
+ PercentileTargetsClient getPercentileTargets();
+
+ /**
+ * Gets the PercentilesClient object to access its operations.
+ *
+ * @return the PercentilesClient object.
+ */
+ PercentilesClient getPercentiles();
+
+ /**
+ * Gets the CollectionPartitionRegionsClient object to access its operations.
+ *
+ * @return the CollectionPartitionRegionsClient object.
+ */
+ CollectionPartitionRegionsClient getCollectionPartitionRegions();
+
+ /**
+ * Gets the CollectionPartitionsClient object to access its operations.
+ *
+ * @return the CollectionPartitionsClient object.
+ */
+ CollectionPartitionsClient getCollectionPartitions();
+
+ /**
+ * Gets the PartitionKeyRangeIdsClient object to access its operations.
+ *
+ * @return the PartitionKeyRangeIdsClient object.
+ */
+ PartitionKeyRangeIdsClient getPartitionKeyRangeIds();
+
+ /**
+ * Gets the PartitionKeyRangeIdRegionsClient object to access its operations.
+ *
+ * @return the PartitionKeyRangeIdRegionsClient object.
+ */
+ PartitionKeyRangeIdRegionsClient getPartitionKeyRangeIdRegions();
+
+ /**
+ * Gets the SqlResourcesClient object to access its operations.
+ *
+ * @return the SqlResourcesClient object.
+ */
+ SqlResourcesClient getSqlResources();
+
+ /**
+ * Gets the MongoDBResourcesClient object to access its operations.
+ *
+ * @return the MongoDBResourcesClient object.
+ */
+ MongoDBResourcesClient getMongoDBResources();
+
+ /**
+ * Gets the TableResourcesClient object to access its operations.
+ *
+ * @return the TableResourcesClient object.
+ */
+ TableResourcesClient getTableResources();
+
+ /**
+ * Gets the CassandraResourcesClient object to access its operations.
+ *
+ * @return the CassandraResourcesClient object.
+ */
+ CassandraResourcesClient getCassandraResources();
+
+ /**
+ * Gets the GremlinResourcesClient object to access its operations.
+ *
+ * @return the GremlinResourcesClient object.
+ */
+ GremlinResourcesClient getGremlinResources();
+
+ /**
+ * Gets the NotebookWorkspacesClient object to access its operations.
+ *
+ * @return the NotebookWorkspacesClient object.
+ */
+ NotebookWorkspacesClient getNotebookWorkspaces();
+
+ /**
+ * Gets the PrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the PrivateLinkResourcesClient object.
+ */
+ PrivateLinkResourcesClient getPrivateLinkResources();
+
+ /**
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the PrivateEndpointConnectionsClient object.
+ */
+ PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/DatabaseAccountRegionsClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/DatabaseAccountRegionsClient.java
new file mode 100644
index 0000000000000..527626327ad66
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/DatabaseAccountRegionsClient.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.MetricInner;
+
+/** An instance of this class provides access to all the operations defined in DatabaseAccountRegionsClient. */
+public interface DatabaseAccountRegionsClient {
+ /**
+ * Retrieves the metrics determined by the given filter for the given database account and region.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param region Cosmos DB region, with spaces between words and each word capitalized.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(String resourceGroupName, String accountName, String region, String filter);
+
+ /**
+ * Retrieves the metrics determined by the given filter for the given database account and region.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param region Cosmos DB region, with spaces between words and each word capitalized.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(
+ String resourceGroupName, String accountName, String region, String filter, Context context);
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/DatabaseAccountsClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/DatabaseAccountsClient.java
new file mode 100644
index 0000000000000..f0271fe89c404
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/DatabaseAccountsClient.java
@@ -0,0 +1,782 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.DatabaseAccountGetResultsInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.DatabaseAccountListConnectionStringsResultInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.DatabaseAccountListKeysResultInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.DatabaseAccountListReadOnlyKeysResultInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.MetricDefinitionInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.MetricInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.UsageInner;
+import com.azure.resourcemanager.cosmos.generated.models.DatabaseAccountCreateUpdateParameters;
+import com.azure.resourcemanager.cosmos.generated.models.DatabaseAccountRegenerateKeyParameters;
+import com.azure.resourcemanager.cosmos.generated.models.DatabaseAccountUpdateParameters;
+import com.azure.resourcemanager.cosmos.generated.models.FailoverPolicies;
+import com.azure.resourcemanager.cosmos.generated.models.RegionForOnlineOffline;
+
+/** An instance of this class provides access to all the operations defined in DatabaseAccountsClient. */
+public interface DatabaseAccountsClient {
+ /**
+ * Retrieves the properties of an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatabaseAccountGetResultsInner getByResourceGroup(String resourceGroupName, String accountName);
+
+ /**
+ * Retrieves the properties of an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Updates the properties of an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param updateParameters The parameters to provide for the current database account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DatabaseAccountGetResultsInner> beginUpdate(
+ String resourceGroupName, String accountName, DatabaseAccountUpdateParameters updateParameters);
+
+ /**
+ * Updates the properties of an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param updateParameters The parameters to provide for the current database account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DatabaseAccountGetResultsInner> beginUpdate(
+ String resourceGroupName,
+ String accountName,
+ DatabaseAccountUpdateParameters updateParameters,
+ Context context);
+
+ /**
+ * Updates the properties of an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param updateParameters The parameters to provide for the current database account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatabaseAccountGetResultsInner update(
+ String resourceGroupName, String accountName, DatabaseAccountUpdateParameters updateParameters);
+
+ /**
+ * Updates the properties of an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param updateParameters The parameters to provide for the current database account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatabaseAccountGetResultsInner update(
+ String resourceGroupName,
+ String accountName,
+ DatabaseAccountUpdateParameters updateParameters,
+ Context context);
+
+ /**
+ * Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates
+ * on an account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param createUpdateParameters The parameters to provide for the current database account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DatabaseAccountGetResultsInner> beginCreateOrUpdate(
+ String resourceGroupName, String accountName, DatabaseAccountCreateUpdateParameters createUpdateParameters);
+
+ /**
+ * Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates
+ * on an account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param createUpdateParameters The parameters to provide for the current database account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, DatabaseAccountGetResultsInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String accountName,
+ DatabaseAccountCreateUpdateParameters createUpdateParameters,
+ Context context);
+
+ /**
+ * Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates
+ * on an account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param createUpdateParameters The parameters to provide for the current database account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatabaseAccountGetResultsInner createOrUpdate(
+ String resourceGroupName, String accountName, DatabaseAccountCreateUpdateParameters createUpdateParameters);
+
+ /**
+ * Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates
+ * on an account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param createUpdateParameters The parameters to provide for the current database account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatabaseAccountGetResultsInner createOrUpdate(
+ String resourceGroupName,
+ String accountName,
+ DatabaseAccountCreateUpdateParameters createUpdateParameters,
+ Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String accountName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String accountName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a
+ * write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values
+ * must be unique for each of the regions in which the database account exists.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param failoverParameters The new failover policies for the database account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginFailoverPriorityChange(
+ String resourceGroupName, String accountName, FailoverPolicies failoverParameters);
+
+ /**
+ * Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a
+ * write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values
+ * must be unique for each of the regions in which the database account exists.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param failoverParameters The new failover policies for the database account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginFailoverPriorityChange(
+ String resourceGroupName, String accountName, FailoverPolicies failoverParameters, Context context);
+
+ /**
+ * Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a
+ * write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values
+ * must be unique for each of the regions in which the database account exists.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param failoverParameters The new failover policies for the database account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void failoverPriorityChange(String resourceGroupName, String accountName, FailoverPolicies failoverParameters);
+
+ /**
+ * Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a
+ * write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values
+ * must be unique for each of the regions in which the database account exists.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param failoverParameters The new failover policies for the database account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void failoverPriorityChange(
+ String resourceGroupName, String accountName, FailoverPolicies failoverParameters, Context context);
+
+ /**
+ * Lists all the Azure Cosmos DB database accounts available under the subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the database accounts and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all the Azure Cosmos DB database accounts available under the subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the database accounts and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Lists all the Azure Cosmos DB database accounts available under the given resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the database accounts and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists all the Azure Cosmos DB database accounts available under the given resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the database accounts and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Lists the access keys for the specified Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the access keys for the given database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatabaseAccountListKeysResultInner listKeys(String resourceGroupName, String accountName);
+
+ /**
+ * Lists the access keys for the specified Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the access keys for the given database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listKeysWithResponse(
+ String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Lists the connection strings for the specified Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the connection strings for the given database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatabaseAccountListConnectionStringsResultInner listConnectionStrings(String resourceGroupName, String accountName);
+
+ /**
+ * Lists the connection strings for the specified Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the connection strings for the given database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listConnectionStringsWithResponse(
+ String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Offline the specified region for the specified Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param regionParameterForOffline Cosmos DB region to offline for the database account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginOfflineRegion(
+ String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOffline);
+
+ /**
+ * Offline the specified region for the specified Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param regionParameterForOffline Cosmos DB region to offline for the database account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginOfflineRegion(
+ String resourceGroupName,
+ String accountName,
+ RegionForOnlineOffline regionParameterForOffline,
+ Context context);
+
+ /**
+ * Offline the specified region for the specified Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param regionParameterForOffline Cosmos DB region to offline for the database account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void offlineRegion(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOffline);
+
+ /**
+ * Offline the specified region for the specified Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param regionParameterForOffline Cosmos DB region to offline for the database account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void offlineRegion(
+ String resourceGroupName,
+ String accountName,
+ RegionForOnlineOffline regionParameterForOffline,
+ Context context);
+
+ /**
+ * Online the specified region for the specified Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param regionParameterForOnline Cosmos DB region to online for the database account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginOnlineRegion(
+ String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOnline);
+
+ /**
+ * Online the specified region for the specified Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param regionParameterForOnline Cosmos DB region to online for the database account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginOnlineRegion(
+ String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOnline, Context context);
+
+ /**
+ * Online the specified region for the specified Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param regionParameterForOnline Cosmos DB region to online for the database account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void onlineRegion(String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOnline);
+
+ /**
+ * Online the specified region for the specified Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param regionParameterForOnline Cosmos DB region to online for the database account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void onlineRegion(
+ String resourceGroupName, String accountName, RegionForOnlineOffline regionParameterForOnline, Context context);
+
+ /**
+ * Lists the read-only access keys for the specified Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the read-only access keys for the given database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatabaseAccountListReadOnlyKeysResultInner getReadOnlyKeys(String resourceGroupName, String accountName);
+
+ /**
+ * Lists the read-only access keys for the specified Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the read-only access keys for the given database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getReadOnlyKeysWithResponse(
+ String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Lists the read-only access keys for the specified Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the read-only access keys for the given database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DatabaseAccountListReadOnlyKeysResultInner listReadOnlyKeys(String resourceGroupName, String accountName);
+
+ /**
+ * Lists the read-only access keys for the specified Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the read-only access keys for the given database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listReadOnlyKeysWithResponse(
+ String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Regenerates an access key for the specified Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyToRegenerate The name of the key to regenerate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginRegenerateKey(
+ String resourceGroupName, String accountName, DatabaseAccountRegenerateKeyParameters keyToRegenerate);
+
+ /**
+ * Regenerates an access key for the specified Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyToRegenerate The name of the key to regenerate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginRegenerateKey(
+ String resourceGroupName,
+ String accountName,
+ DatabaseAccountRegenerateKeyParameters keyToRegenerate,
+ Context context);
+
+ /**
+ * Regenerates an access key for the specified Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyToRegenerate The name of the key to regenerate.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void regenerateKey(
+ String resourceGroupName, String accountName, DatabaseAccountRegenerateKeyParameters keyToRegenerate);
+
+ /**
+ * Regenerates an access key for the specified Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param keyToRegenerate The name of the key to regenerate.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void regenerateKey(
+ String resourceGroupName,
+ String accountName,
+ DatabaseAccountRegenerateKeyParameters keyToRegenerate,
+ Context context);
+
+ /**
+ * Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase
+ * letters, numbers, and the '-' character, and must be between 3 and 50 characters.
+ *
+ * @param accountName Cosmos DB database account name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return whether resource exists.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ boolean checkNameExists(String accountName);
+
+ /**
+ * Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase
+ * letters, numbers, and the '-' character, and must be between 3 and 50 characters.
+ *
+ * @param accountName Cosmos DB database account name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameExistsWithResponse(String accountName, Context context);
+
+ /**
+ * Retrieves the metrics determined by the given filter for the given database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(String resourceGroupName, String accountName, String filter);
+
+ /**
+ * Retrieves the metrics determined by the given filter for the given database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(
+ String resourceGroupName, String accountName, String filter, Context context);
+
+ /**
+ * Retrieves the usages (most recent data) for the given database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list usage request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listUsages(String resourceGroupName, String accountName);
+
+ /**
+ * Retrieves the usages (most recent data) for the given database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param filter An OData filter expression that describes a subset of usages to return. The supported parameter is
+ * name.value (name of the metric, can have an or of multiple names).
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list usage request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listUsages(String resourceGroupName, String accountName, String filter, Context context);
+
+ /**
+ * Retrieves metric definitions for the given database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list metric definitions request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetricDefinitions(String resourceGroupName, String accountName);
+
+ /**
+ * Retrieves metric definitions for the given database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list metric definitions request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetricDefinitions(
+ String resourceGroupName, String accountName, Context context);
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/DatabasesClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/DatabasesClient.java
new file mode 100644
index 0000000000000..df5a79b206d25
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/DatabasesClient.java
@@ -0,0 +1,116 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.MetricDefinitionInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.MetricInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.UsageInner;
+
+/** An instance of this class provides access to all the operations defined in DatabasesClient. */
+public interface DatabasesClient {
+ /**
+ * Retrieves the metrics determined by the given filter for the given database account and database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseRid Cosmos DB database rid.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(
+ String resourceGroupName, String accountName, String databaseRid, String filter);
+
+ /**
+ * Retrieves the metrics determined by the given filter for the given database account and database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseRid Cosmos DB database rid.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(
+ String resourceGroupName, String accountName, String databaseRid, String filter, Context context);
+
+ /**
+ * Retrieves the usages (most recent data) for the given database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseRid Cosmos DB database rid.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list usage request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listUsages(String resourceGroupName, String accountName, String databaseRid);
+
+ /**
+ * Retrieves the usages (most recent data) for the given database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseRid Cosmos DB database rid.
+ * @param filter An OData filter expression that describes a subset of usages to return. The supported parameter is
+ * name.value (name of the metric, can have an or of multiple names).
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list usage request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listUsages(
+ String resourceGroupName, String accountName, String databaseRid, String filter, Context context);
+
+ /**
+ * Retrieves metric definitions for the given database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseRid Cosmos DB database rid.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list metric definitions request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetricDefinitions(
+ String resourceGroupName, String accountName, String databaseRid);
+
+ /**
+ * Retrieves metric definitions for the given database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseRid Cosmos DB database rid.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list metric definitions request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetricDefinitions(
+ String resourceGroupName, String accountName, String databaseRid, Context context);
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/GremlinResourcesClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/GremlinResourcesClient.java
new file mode 100644
index 0000000000000..43f3a4aa48e7c
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/GremlinResourcesClient.java
@@ -0,0 +1,943 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.GremlinDatabaseGetResultsInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.GremlinGraphGetResultsInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.ThroughputSettingsGetResultsInner;
+import com.azure.resourcemanager.cosmos.generated.models.GremlinDatabaseCreateUpdateParameters;
+import com.azure.resourcemanager.cosmos.generated.models.GremlinGraphCreateUpdateParameters;
+import com.azure.resourcemanager.cosmos.generated.models.ThroughputSettingsUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in GremlinResourcesClient. */
+public interface GremlinResourcesClient {
+ /**
+ * Lists the Gremlin databases under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the Gremlin databases and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listGremlinDatabases(String resourceGroupName, String accountName);
+
+ /**
+ * Lists the Gremlin databases under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the Gremlin databases and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listGremlinDatabases(
+ String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Gremlin databases under an existing Azure Cosmos DB database account with the provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GremlinDatabaseGetResultsInner getGremlinDatabase(
+ String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Gremlin databases under an existing Azure Cosmos DB database account with the provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getGremlinDatabaseWithResponse(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB Gremlin database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param createUpdateGremlinDatabaseParameters The parameters to provide for the current Gremlin database.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB Gremlin database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, GremlinDatabaseGetResultsInner>
+ beginCreateUpdateGremlinDatabase(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB Gremlin database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param createUpdateGremlinDatabaseParameters The parameters to provide for the current Gremlin database.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB Gremlin database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, GremlinDatabaseGetResultsInner>
+ beginCreateUpdateGremlinDatabase(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters,
+ Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB Gremlin database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param createUpdateGremlinDatabaseParameters The parameters to provide for the current Gremlin database.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB Gremlin database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GremlinDatabaseGetResultsInner createUpdateGremlinDatabase(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB Gremlin database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param createUpdateGremlinDatabaseParameters The parameters to provide for the current Gremlin database.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB Gremlin database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GremlinDatabaseGetResultsInner createUpdateGremlinDatabase(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ GremlinDatabaseCreateUpdateParameters createUpdateGremlinDatabaseParameters,
+ Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB Gremlin database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteGremlinDatabase(
+ String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB Gremlin database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteGremlinDatabase(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB Gremlin database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteGremlinDatabase(String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB Gremlin database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteGremlinDatabase(String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the
+ * provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the
+ * provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner getGremlinDatabaseThroughput(
+ String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the
+ * provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the
+ * provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getGremlinDatabaseThroughputWithResponse(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB Gremlin database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current Gremlin
+ * database.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginUpdateGremlinDatabaseThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB Gremlin database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current Gremlin
+ * database.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginUpdateGremlinDatabaseThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters,
+ Context context);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB Gremlin database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current Gremlin
+ * database.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner updateGremlinDatabaseThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB Gremlin database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current Gremlin
+ * database.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner updateGremlinDatabaseThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters,
+ Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateGremlinDatabaseToAutoscale(String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateGremlinDatabaseToAutoscale(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateGremlinDatabaseToAutoscale(
+ String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateGremlinDatabaseToAutoscale(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateGremlinDatabaseToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateGremlinDatabaseToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateGremlinDatabaseToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateGremlinDatabaseToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Lists the Gremlin graph under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the graphs and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listGremlinGraphs(
+ String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Lists the Gremlin graph under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the graphs and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listGremlinGraphs(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Gets the Gremlin graph under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Gremlin graph under an existing Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GremlinGraphGetResultsInner getGremlinGraph(
+ String resourceGroupName, String accountName, String databaseName, String graphName);
+
+ /**
+ * Gets the Gremlin graph under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Gremlin graph under an existing Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getGremlinGraphWithResponse(
+ String resourceGroupName, String accountName, String databaseName, String graphName, Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB Gremlin graph.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @param createUpdateGremlinGraphParameters The parameters to provide for the current Gremlin graph.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB Gremlin graph.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, GremlinGraphGetResultsInner> beginCreateUpdateGremlinGraph(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String graphName,
+ GremlinGraphCreateUpdateParameters createUpdateGremlinGraphParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB Gremlin graph.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @param createUpdateGremlinGraphParameters The parameters to provide for the current Gremlin graph.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB Gremlin graph.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, GremlinGraphGetResultsInner> beginCreateUpdateGremlinGraph(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String graphName,
+ GremlinGraphCreateUpdateParameters createUpdateGremlinGraphParameters,
+ Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB Gremlin graph.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @param createUpdateGremlinGraphParameters The parameters to provide for the current Gremlin graph.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB Gremlin graph.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GremlinGraphGetResultsInner createUpdateGremlinGraph(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String graphName,
+ GremlinGraphCreateUpdateParameters createUpdateGremlinGraphParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB Gremlin graph.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @param createUpdateGremlinGraphParameters The parameters to provide for the current Gremlin graph.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB Gremlin graph.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GremlinGraphGetResultsInner createUpdateGremlinGraph(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String graphName,
+ GremlinGraphCreateUpdateParameters createUpdateGremlinGraphParameters,
+ Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB Gremlin graph.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteGremlinGraph(
+ String resourceGroupName, String accountName, String databaseName, String graphName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB Gremlin graph.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteGremlinGraph(
+ String resourceGroupName, String accountName, String databaseName, String graphName, Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB Gremlin graph.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteGremlinGraph(String resourceGroupName, String accountName, String databaseName, String graphName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB Gremlin graph.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteGremlinGraph(
+ String resourceGroupName, String accountName, String databaseName, String graphName, Context context);
+
+ /**
+ * Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner getGremlinGraphThroughput(
+ String resourceGroupName, String accountName, String databaseName, String graphName);
+
+ /**
+ * Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getGremlinGraphThroughputWithResponse(
+ String resourceGroupName, String accountName, String databaseName, String graphName, Context context);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB Gremlin graph.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current Gremlin graph.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginUpdateGremlinGraphThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String graphName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB Gremlin graph.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current Gremlin graph.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginUpdateGremlinGraphThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String graphName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters,
+ Context context);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB Gremlin graph.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current Gremlin graph.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner updateGremlinGraphThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String graphName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB Gremlin graph.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current Gremlin graph.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner updateGremlinGraphThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String graphName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters,
+ Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateGremlinGraphToAutoscale(
+ String resourceGroupName, String accountName, String databaseName, String graphName);
+
+ /**
+ * Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateGremlinGraphToAutoscale(
+ String resourceGroupName, String accountName, String databaseName, String graphName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateGremlinGraphToAutoscale(
+ String resourceGroupName, String accountName, String databaseName, String graphName);
+
+ /**
+ * Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateGremlinGraphToAutoscale(
+ String resourceGroupName, String accountName, String databaseName, String graphName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateGremlinGraphToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName, String graphName);
+
+ /**
+ * Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateGremlinGraphToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName, String graphName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateGremlinGraphToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName, String graphName);
+
+ /**
+ * Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param graphName Cosmos DB graph name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateGremlinGraphToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName, String graphName, Context context);
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/MongoDBResourcesClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/MongoDBResourcesClient.java
new file mode 100644
index 0000000000000..c4cd677ae67e9
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/MongoDBResourcesClient.java
@@ -0,0 +1,954 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.MongoDBCollectionGetResultsInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.MongoDBDatabaseGetResultsInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.ThroughputSettingsGetResultsInner;
+import com.azure.resourcemanager.cosmos.generated.models.MongoDBCollectionCreateUpdateParameters;
+import com.azure.resourcemanager.cosmos.generated.models.MongoDBDatabaseCreateUpdateParameters;
+import com.azure.resourcemanager.cosmos.generated.models.ThroughputSettingsUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in MongoDBResourcesClient. */
+public interface MongoDBResourcesClient {
+ /**
+ * Lists the MongoDB databases under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the MongoDB databases and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMongoDBDatabases(String resourceGroupName, String accountName);
+
+ /**
+ * Lists the MongoDB databases under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the MongoDB databases and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMongoDBDatabases(
+ String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the MongoDB databases under an existing Azure Cosmos DB database account with the provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MongoDBDatabaseGetResultsInner getMongoDBDatabase(
+ String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the MongoDB databases under an existing Azure Cosmos DB database account with the provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getMongoDBDatabaseWithResponse(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Create or updates Azure Cosmos DB MongoDB database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param createUpdateMongoDBDatabaseParameters The parameters to provide for the current MongoDB database.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB MongoDB database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, MongoDBDatabaseGetResultsInner>
+ beginCreateUpdateMongoDBDatabase(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ MongoDBDatabaseCreateUpdateParameters createUpdateMongoDBDatabaseParameters);
+
+ /**
+ * Create or updates Azure Cosmos DB MongoDB database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param createUpdateMongoDBDatabaseParameters The parameters to provide for the current MongoDB database.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB MongoDB database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, MongoDBDatabaseGetResultsInner>
+ beginCreateUpdateMongoDBDatabase(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ MongoDBDatabaseCreateUpdateParameters createUpdateMongoDBDatabaseParameters,
+ Context context);
+
+ /**
+ * Create or updates Azure Cosmos DB MongoDB database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param createUpdateMongoDBDatabaseParameters The parameters to provide for the current MongoDB database.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB MongoDB database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MongoDBDatabaseGetResultsInner createUpdateMongoDBDatabase(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ MongoDBDatabaseCreateUpdateParameters createUpdateMongoDBDatabaseParameters);
+
+ /**
+ * Create or updates Azure Cosmos DB MongoDB database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param createUpdateMongoDBDatabaseParameters The parameters to provide for the current MongoDB database.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB MongoDB database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MongoDBDatabaseGetResultsInner createUpdateMongoDBDatabase(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ MongoDBDatabaseCreateUpdateParameters createUpdateMongoDBDatabaseParameters,
+ Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB MongoDB database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteMongoDBDatabase(
+ String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB MongoDB database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteMongoDBDatabase(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB MongoDB database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteMongoDBDatabase(String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB MongoDB database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteMongoDBDatabase(String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the
+ * provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the
+ * provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner getMongoDBDatabaseThroughput(
+ String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the
+ * provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the
+ * provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getMongoDBDatabaseThroughputWithResponse(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Update RUs per second of the an Azure Cosmos DB MongoDB database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current MongoDB
+ * database.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginUpdateMongoDBDatabaseThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters);
+
+ /**
+ * Update RUs per second of the an Azure Cosmos DB MongoDB database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current MongoDB
+ * database.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginUpdateMongoDBDatabaseThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters,
+ Context context);
+
+ /**
+ * Update RUs per second of the an Azure Cosmos DB MongoDB database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current MongoDB
+ * database.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner updateMongoDBDatabaseThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters);
+
+ /**
+ * Update RUs per second of the an Azure Cosmos DB MongoDB database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current MongoDB
+ * database.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner updateMongoDBDatabaseThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters,
+ Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateMongoDBDatabaseToAutoscale(String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateMongoDBDatabaseToAutoscale(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateMongoDBDatabaseToAutoscale(
+ String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateMongoDBDatabaseToAutoscale(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateMongoDBDatabaseToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateMongoDBDatabaseToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateMongoDBDatabaseToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateMongoDBDatabaseToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Lists the MongoDB collection under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the MongoDB collections and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMongoDBCollections(
+ String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Lists the MongoDB collection under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the MongoDB collections and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMongoDBCollections(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Gets the MongoDB collection under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the MongoDB collection under an existing Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MongoDBCollectionGetResultsInner getMongoDBCollection(
+ String resourceGroupName, String accountName, String databaseName, String collectionName);
+
+ /**
+ * Gets the MongoDB collection under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the MongoDB collection under an existing Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getMongoDBCollectionWithResponse(
+ String resourceGroupName, String accountName, String databaseName, String collectionName, Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB MongoDB Collection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @param createUpdateMongoDBCollectionParameters The parameters to provide for the current MongoDB Collection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB MongoDB collection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, MongoDBCollectionGetResultsInner>
+ beginCreateUpdateMongoDBCollection(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String collectionName,
+ MongoDBCollectionCreateUpdateParameters createUpdateMongoDBCollectionParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB MongoDB Collection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @param createUpdateMongoDBCollectionParameters The parameters to provide for the current MongoDB Collection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB MongoDB collection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, MongoDBCollectionGetResultsInner>
+ beginCreateUpdateMongoDBCollection(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String collectionName,
+ MongoDBCollectionCreateUpdateParameters createUpdateMongoDBCollectionParameters,
+ Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB MongoDB Collection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @param createUpdateMongoDBCollectionParameters The parameters to provide for the current MongoDB Collection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB MongoDB collection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MongoDBCollectionGetResultsInner createUpdateMongoDBCollection(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String collectionName,
+ MongoDBCollectionCreateUpdateParameters createUpdateMongoDBCollectionParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB MongoDB Collection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @param createUpdateMongoDBCollectionParameters The parameters to provide for the current MongoDB Collection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB MongoDB collection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MongoDBCollectionGetResultsInner createUpdateMongoDBCollection(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String collectionName,
+ MongoDBCollectionCreateUpdateParameters createUpdateMongoDBCollectionParameters,
+ Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB MongoDB Collection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteMongoDBCollection(
+ String resourceGroupName, String accountName, String databaseName, String collectionName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB MongoDB Collection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteMongoDBCollection(
+ String resourceGroupName, String accountName, String databaseName, String collectionName, Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB MongoDB Collection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteMongoDBCollection(
+ String resourceGroupName, String accountName, String databaseName, String collectionName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB MongoDB Collection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteMongoDBCollection(
+ String resourceGroupName, String accountName, String databaseName, String collectionName, Context context);
+
+ /**
+ * Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the
+ * provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the
+ * provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner getMongoDBCollectionThroughput(
+ String resourceGroupName, String accountName, String databaseName, String collectionName);
+
+ /**
+ * Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the
+ * provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the
+ * provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getMongoDBCollectionThroughputWithResponse(
+ String resourceGroupName, String accountName, String databaseName, String collectionName, Context context);
+
+ /**
+ * Update the RUs per second of an Azure Cosmos DB MongoDB collection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current MongoDB
+ * collection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginUpdateMongoDBCollectionThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String collectionName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters);
+
+ /**
+ * Update the RUs per second of an Azure Cosmos DB MongoDB collection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current MongoDB
+ * collection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginUpdateMongoDBCollectionThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String collectionName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters,
+ Context context);
+
+ /**
+ * Update the RUs per second of an Azure Cosmos DB MongoDB collection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current MongoDB
+ * collection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner updateMongoDBCollectionThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String collectionName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters);
+
+ /**
+ * Update the RUs per second of an Azure Cosmos DB MongoDB collection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @param updateThroughputParameters The RUs per second of the parameters to provide for the current MongoDB
+ * collection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner updateMongoDBCollectionThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String collectionName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters,
+ Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateMongoDBCollectionToAutoscale(
+ String resourceGroupName, String accountName, String databaseName, String collectionName);
+
+ /**
+ * Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateMongoDBCollectionToAutoscale(
+ String resourceGroupName, String accountName, String databaseName, String collectionName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateMongoDBCollectionToAutoscale(
+ String resourceGroupName, String accountName, String databaseName, String collectionName);
+
+ /**
+ * Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateMongoDBCollectionToAutoscale(
+ String resourceGroupName, String accountName, String databaseName, String collectionName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateMongoDBCollectionToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName, String collectionName);
+
+ /**
+ * Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateMongoDBCollectionToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName, String collectionName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateMongoDBCollectionToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName, String collectionName);
+
+ /**
+ * Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param collectionName Cosmos DB collection name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateMongoDBCollectionToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName, String collectionName, Context context);
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/NotebookWorkspacesClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/NotebookWorkspacesClient.java
new file mode 100644
index 0000000000000..6e2711e9f9d39
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/NotebookWorkspacesClient.java
@@ -0,0 +1,367 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.NotebookWorkspaceConnectionInfoResultInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.NotebookWorkspaceInner;
+import com.azure.resourcemanager.cosmos.generated.models.ArmProxyResource;
+import com.azure.resourcemanager.cosmos.generated.models.NotebookWorkspaceName;
+
+/** An instance of this class provides access to all the operations defined in NotebookWorkspacesClient. */
+public interface NotebookWorkspacesClient {
+ /**
+ * Gets the notebook workspace resources of an existing Cosmos DB account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the notebook workspace resources of an existing Cosmos DB account.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByDatabaseAccount(String resourceGroupName, String accountName);
+
+ /**
+ * Gets the notebook workspace resources of an existing Cosmos DB account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the notebook workspace resources of an existing Cosmos DB account.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByDatabaseAccount(
+ String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Gets the notebook workspace for a Cosmos DB account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param notebookWorkspaceName The name of the notebook workspace resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the notebook workspace for a Cosmos DB account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NotebookWorkspaceInner get(
+ String resourceGroupName, String accountName, NotebookWorkspaceName notebookWorkspaceName);
+
+ /**
+ * Gets the notebook workspace for a Cosmos DB account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param notebookWorkspaceName The name of the notebook workspace resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the notebook workspace for a Cosmos DB account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String accountName, NotebookWorkspaceName notebookWorkspaceName, Context context);
+
+ /**
+ * Creates the notebook workspace for a Cosmos DB account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param notebookWorkspaceName The name of the notebook workspace resource.
+ * @param notebookCreateUpdateParameters The notebook workspace to create for the current database account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a notebook workspace resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, NotebookWorkspaceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String accountName,
+ NotebookWorkspaceName notebookWorkspaceName,
+ ArmProxyResource notebookCreateUpdateParameters);
+
+ /**
+ * Creates the notebook workspace for a Cosmos DB account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param notebookWorkspaceName The name of the notebook workspace resource.
+ * @param notebookCreateUpdateParameters The notebook workspace to create for the current database account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a notebook workspace resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, NotebookWorkspaceInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String accountName,
+ NotebookWorkspaceName notebookWorkspaceName,
+ ArmProxyResource notebookCreateUpdateParameters,
+ Context context);
+
+ /**
+ * Creates the notebook workspace for a Cosmos DB account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param notebookWorkspaceName The name of the notebook workspace resource.
+ * @param notebookCreateUpdateParameters The notebook workspace to create for the current database account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a notebook workspace resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NotebookWorkspaceInner createOrUpdate(
+ String resourceGroupName,
+ String accountName,
+ NotebookWorkspaceName notebookWorkspaceName,
+ ArmProxyResource notebookCreateUpdateParameters);
+
+ /**
+ * Creates the notebook workspace for a Cosmos DB account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param notebookWorkspaceName The name of the notebook workspace resource.
+ * @param notebookCreateUpdateParameters The notebook workspace to create for the current database account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a notebook workspace resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NotebookWorkspaceInner createOrUpdate(
+ String resourceGroupName,
+ String accountName,
+ NotebookWorkspaceName notebookWorkspaceName,
+ ArmProxyResource notebookCreateUpdateParameters,
+ Context context);
+
+ /**
+ * Deletes the notebook workspace for a Cosmos DB account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param notebookWorkspaceName The name of the notebook workspace resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String accountName, NotebookWorkspaceName notebookWorkspaceName);
+
+ /**
+ * Deletes the notebook workspace for a Cosmos DB account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param notebookWorkspaceName The name of the notebook workspace resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String accountName, NotebookWorkspaceName notebookWorkspaceName, Context context);
+
+ /**
+ * Deletes the notebook workspace for a Cosmos DB account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param notebookWorkspaceName The name of the notebook workspace resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String accountName, NotebookWorkspaceName notebookWorkspaceName);
+
+ /**
+ * Deletes the notebook workspace for a Cosmos DB account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param notebookWorkspaceName The name of the notebook workspace resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(
+ String resourceGroupName, String accountName, NotebookWorkspaceName notebookWorkspaceName, Context context);
+
+ /**
+ * Retrieves the connection info for the notebook workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param notebookWorkspaceName The name of the notebook workspace resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the connection info for the given notebook workspace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NotebookWorkspaceConnectionInfoResultInner listConnectionInfo(
+ String resourceGroupName, String accountName, NotebookWorkspaceName notebookWorkspaceName);
+
+ /**
+ * Retrieves the connection info for the notebook workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param notebookWorkspaceName The name of the notebook workspace resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the connection info for the given notebook workspace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listConnectionInfoWithResponse(
+ String resourceGroupName, String accountName, NotebookWorkspaceName notebookWorkspaceName, Context context);
+
+ /**
+ * Regenerates the auth token for the notebook workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param notebookWorkspaceName The name of the notebook workspace resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginRegenerateAuthToken(
+ String resourceGroupName, String accountName, NotebookWorkspaceName notebookWorkspaceName);
+
+ /**
+ * Regenerates the auth token for the notebook workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param notebookWorkspaceName The name of the notebook workspace resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginRegenerateAuthToken(
+ String resourceGroupName, String accountName, NotebookWorkspaceName notebookWorkspaceName, Context context);
+
+ /**
+ * Regenerates the auth token for the notebook workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param notebookWorkspaceName The name of the notebook workspace resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void regenerateAuthToken(String resourceGroupName, String accountName, NotebookWorkspaceName notebookWorkspaceName);
+
+ /**
+ * Regenerates the auth token for the notebook workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param notebookWorkspaceName The name of the notebook workspace resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void regenerateAuthToken(
+ String resourceGroupName, String accountName, NotebookWorkspaceName notebookWorkspaceName, Context context);
+
+ /**
+ * Starts the notebook workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param notebookWorkspaceName The name of the notebook workspace resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginStart(
+ String resourceGroupName, String accountName, NotebookWorkspaceName notebookWorkspaceName);
+
+ /**
+ * Starts the notebook workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param notebookWorkspaceName The name of the notebook workspace resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginStart(
+ String resourceGroupName, String accountName, NotebookWorkspaceName notebookWorkspaceName, Context context);
+
+ /**
+ * Starts the notebook workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param notebookWorkspaceName The name of the notebook workspace resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void start(String resourceGroupName, String accountName, NotebookWorkspaceName notebookWorkspaceName);
+
+ /**
+ * Starts the notebook workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param notebookWorkspaceName The name of the notebook workspace resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void start(
+ String resourceGroupName, String accountName, NotebookWorkspaceName notebookWorkspaceName, Context context);
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/OperationsClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/OperationsClient.java
new file mode 100644
index 0000000000000..f8018e4162588
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/OperationsClient.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.OperationInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * Lists all of the available Cosmos DB Resource Provider operations.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list Resource Provider operations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all of the available Cosmos DB Resource Provider operations.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list Resource Provider operations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/PartitionKeyRangeIdRegionsClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/PartitionKeyRangeIdRegionsClient.java
new file mode 100644
index 0000000000000..58b422f3e7ee8
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/PartitionKeyRangeIdRegionsClient.java
@@ -0,0 +1,70 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.PartitionMetricInner;
+
+/** An instance of this class provides access to all the operations defined in PartitionKeyRangeIdRegionsClient. */
+public interface PartitionKeyRangeIdRegionsClient {
+ /**
+ * Retrieves the metrics determined by the given filter for the given partition key range id and region.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param region Cosmos DB region, with spaces between words and each word capitalized.
+ * @param databaseRid Cosmos DB database rid.
+ * @param collectionRid Cosmos DB collection rid.
+ * @param partitionKeyRangeId Partition Key Range Id for which to get data.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list partition metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(
+ String resourceGroupName,
+ String accountName,
+ String region,
+ String databaseRid,
+ String collectionRid,
+ String partitionKeyRangeId,
+ String filter);
+
+ /**
+ * Retrieves the metrics determined by the given filter for the given partition key range id and region.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param region Cosmos DB region, with spaces between words and each word capitalized.
+ * @param databaseRid Cosmos DB database rid.
+ * @param collectionRid Cosmos DB collection rid.
+ * @param partitionKeyRangeId Partition Key Range Id for which to get data.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list partition metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(
+ String resourceGroupName,
+ String accountName,
+ String region,
+ String databaseRid,
+ String collectionRid,
+ String partitionKeyRangeId,
+ String filter,
+ Context context);
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/PartitionKeyRangeIdsClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/PartitionKeyRangeIdsClient.java
new file mode 100644
index 0000000000000..23d5345a64cf6
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/PartitionKeyRangeIdsClient.java
@@ -0,0 +1,66 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.PartitionMetricInner;
+
+/** An instance of this class provides access to all the operations defined in PartitionKeyRangeIdsClient. */
+public interface PartitionKeyRangeIdsClient {
+ /**
+ * Retrieves the metrics determined by the given filter for the given partition key range id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseRid Cosmos DB database rid.
+ * @param collectionRid Cosmos DB collection rid.
+ * @param partitionKeyRangeId Partition Key Range Id for which to get data.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list partition metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(
+ String resourceGroupName,
+ String accountName,
+ String databaseRid,
+ String collectionRid,
+ String partitionKeyRangeId,
+ String filter);
+
+ /**
+ * Retrieves the metrics determined by the given filter for the given partition key range id.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseRid Cosmos DB database rid.
+ * @param collectionRid Cosmos DB collection rid.
+ * @param partitionKeyRangeId Partition Key Range Id for which to get data.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list partition metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(
+ String resourceGroupName,
+ String accountName,
+ String databaseRid,
+ String collectionRid,
+ String partitionKeyRangeId,
+ String filter,
+ Context context);
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/PercentileSourceTargetsClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/PercentileSourceTargetsClient.java
new file mode 100644
index 0000000000000..6a70d24b6dc7a
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/PercentileSourceTargetsClient.java
@@ -0,0 +1,64 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.PercentileMetricInner;
+
+/** An instance of this class provides access to all the operations defined in PercentileSourceTargetsClient. */
+public interface PercentileSourceTargetsClient {
+ /**
+ * Retrieves the metrics determined by the given filter for the given account, source and target region. This url is
+ * only for PBS and Replication Latency data.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param sourceRegion Source region from which data is written. Cosmos DB region, with spaces between words and
+ * each word capitalized.
+ * @param targetRegion Target region to which data is written. Cosmos DB region, with spaces between words and each
+ * word capitalized.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list percentile metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(
+ String resourceGroupName, String accountName, String sourceRegion, String targetRegion, String filter);
+
+ /**
+ * Retrieves the metrics determined by the given filter for the given account, source and target region. This url is
+ * only for PBS and Replication Latency data.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param sourceRegion Source region from which data is written. Cosmos DB region, with spaces between words and
+ * each word capitalized.
+ * @param targetRegion Target region to which data is written. Cosmos DB region, with spaces between words and each
+ * word capitalized.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list percentile metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(
+ String resourceGroupName,
+ String accountName,
+ String sourceRegion,
+ String targetRegion,
+ String filter,
+ Context context);
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/PercentileTargetsClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/PercentileTargetsClient.java
new file mode 100644
index 0000000000000..4ada663aeb2e5
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/PercentileTargetsClient.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.PercentileMetricInner;
+
+/** An instance of this class provides access to all the operations defined in PercentileTargetsClient. */
+public interface PercentileTargetsClient {
+ /**
+ * Retrieves the metrics determined by the given filter for the given account target region. This url is only for
+ * PBS and Replication Latency data.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param targetRegion Target region to which data is written. Cosmos DB region, with spaces between words and each
+ * word capitalized.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list percentile metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(
+ String resourceGroupName, String accountName, String targetRegion, String filter);
+
+ /**
+ * Retrieves the metrics determined by the given filter for the given account target region. This url is only for
+ * PBS and Replication Latency data.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param targetRegion Target region to which data is written. Cosmos DB region, with spaces between words and each
+ * word capitalized.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list percentile metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(
+ String resourceGroupName, String accountName, String targetRegion, String filter, Context context);
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/PercentilesClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/PercentilesClient.java
new file mode 100644
index 0000000000000..7217806035694
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/PercentilesClient.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.PercentileMetricInner;
+
+/** An instance of this class provides access to all the operations defined in PercentilesClient. */
+public interface PercentilesClient {
+ /**
+ * Retrieves the metrics determined by the given filter for the given database account. This url is only for PBS and
+ * Replication Latency data.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list percentile metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(String resourceGroupName, String accountName, String filter);
+
+ /**
+ * Retrieves the metrics determined by the given filter for the given database account. This url is only for PBS and
+ * Replication Latency data.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param filter An OData filter expression that describes a subset of metrics to return. The parameters that can be
+ * filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and
+ * timeGrain. The supported operator is eq.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a list percentile metrics request.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listMetrics(
+ String resourceGroupName, String accountName, String filter, Context context);
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/PrivateEndpointConnectionsClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/PrivateEndpointConnectionsClient.java
new file mode 100644
index 0000000000000..1a4db42d6d312
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/PrivateEndpointConnectionsClient.java
@@ -0,0 +1,217 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.PrivateEndpointConnectionAutoGeneratedInner;
+
+/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
+public interface PrivateEndpointConnectionsClient {
+ /**
+ * List all private endpoint connections on a Cosmos DB account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of private endpoint connections.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByDatabaseAccount(
+ String resourceGroupName, String accountName);
+
+ /**
+ * List all private endpoint connections on a Cosmos DB account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of private endpoint connections.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByDatabaseAccount(
+ String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Gets a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private endpoint connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionAutoGeneratedInner get(
+ String resourceGroupName, String accountName, String privateEndpointConnectionName);
+
+ /**
+ * Gets a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private endpoint connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Approve or reject a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param parameters A private endpoint connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private endpoint connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, PrivateEndpointConnectionAutoGeneratedInner>
+ beginCreateOrUpdate(
+ String resourceGroupName,
+ String accountName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionAutoGeneratedInner parameters);
+
+ /**
+ * Approve or reject a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param parameters A private endpoint connection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private endpoint connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, PrivateEndpointConnectionAutoGeneratedInner>
+ beginCreateOrUpdate(
+ String resourceGroupName,
+ String accountName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionAutoGeneratedInner parameters,
+ Context context);
+
+ /**
+ * Approve or reject a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param parameters A private endpoint connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private endpoint connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionAutoGeneratedInner createOrUpdate(
+ String resourceGroupName,
+ String accountName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionAutoGeneratedInner parameters);
+
+ /**
+ * Approve or reject a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param parameters A private endpoint connection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private endpoint connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionAutoGeneratedInner createOrUpdate(
+ String resourceGroupName,
+ String accountName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionAutoGeneratedInner parameters,
+ Context context);
+
+ /**
+ * Deletes a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String accountName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Deletes a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String accountName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context);
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/PrivateLinkResourcesClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/PrivateLinkResourcesClient.java
new file mode 100644
index 0000000000000..19d4b673e55a1
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/PrivateLinkResourcesClient.java
@@ -0,0 +1,73 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.PrivateLinkResourceInner;
+
+/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */
+public interface PrivateLinkResourcesClient {
+ /**
+ * Gets the private link resources that need to be created for a Cosmos DB account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the private link resources that need to be created for a Cosmos DB account.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByDatabaseAccount(String resourceGroupName, String accountName);
+
+ /**
+ * Gets the private link resources that need to be created for a Cosmos DB account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the private link resources that need to be created for a Cosmos DB account.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByDatabaseAccount(
+ String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Gets the private link resources that need to be created for a Cosmos DB account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param groupName The name of the private link resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the private link resources that need to be created for a Cosmos DB account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateLinkResourceInner get(String resourceGroupName, String accountName, String groupName);
+
+ /**
+ * Gets the private link resources that need to be created for a Cosmos DB account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param groupName The name of the private link resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the private link resources that need to be created for a Cosmos DB account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String accountName, String groupName, Context context);
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/SqlResourcesClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/SqlResourcesClient.java
new file mode 100644
index 0000000000000..4b24ae96da64a
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/SqlResourcesClient.java
@@ -0,0 +1,1714 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.SqlContainerGetResultsInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.SqlDatabaseGetResultsInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.SqlStoredProcedureGetResultsInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.SqlTriggerGetResultsInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.SqlUserDefinedFunctionGetResultsInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.ThroughputSettingsGetResultsInner;
+import com.azure.resourcemanager.cosmos.generated.models.SqlContainerCreateUpdateParameters;
+import com.azure.resourcemanager.cosmos.generated.models.SqlDatabaseCreateUpdateParameters;
+import com.azure.resourcemanager.cosmos.generated.models.SqlStoredProcedureCreateUpdateParameters;
+import com.azure.resourcemanager.cosmos.generated.models.SqlTriggerCreateUpdateParameters;
+import com.azure.resourcemanager.cosmos.generated.models.SqlUserDefinedFunctionCreateUpdateParameters;
+import com.azure.resourcemanager.cosmos.generated.models.ThroughputSettingsUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in SqlResourcesClient. */
+public interface SqlResourcesClient {
+ /**
+ * Lists the SQL databases under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the SQL databases and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listSqlDatabases(String resourceGroupName, String accountName);
+
+ /**
+ * Lists the SQL databases under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the SQL databases and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listSqlDatabases(
+ String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Gets the SQL database under an existing Azure Cosmos DB database account with the provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the SQL database under an existing Azure Cosmos DB database account with the provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlDatabaseGetResultsInner getSqlDatabase(String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Gets the SQL database under an existing Azure Cosmos DB database account with the provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the SQL database under an existing Azure Cosmos DB database account with the provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getSqlDatabaseWithResponse(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB SQL database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param createUpdateSqlDatabaseParameters The parameters to provide for the current SQL database.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB SQL database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, SqlDatabaseGetResultsInner> beginCreateUpdateSqlDatabase(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB SQL database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param createUpdateSqlDatabaseParameters The parameters to provide for the current SQL database.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB SQL database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, SqlDatabaseGetResultsInner> beginCreateUpdateSqlDatabase(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters,
+ Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB SQL database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param createUpdateSqlDatabaseParameters The parameters to provide for the current SQL database.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB SQL database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlDatabaseGetResultsInner createUpdateSqlDatabase(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB SQL database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param createUpdateSqlDatabaseParameters The parameters to provide for the current SQL database.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB SQL database.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlDatabaseGetResultsInner createUpdateSqlDatabase(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ SqlDatabaseCreateUpdateParameters createUpdateSqlDatabaseParameters,
+ Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB SQL database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteSqlDatabase(
+ String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB SQL database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteSqlDatabase(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB SQL database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteSqlDatabase(String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB SQL database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteSqlDatabase(String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided
+ * name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the
+ * provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner getSqlDatabaseThroughput(
+ String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided
+ * name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the
+ * provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getSqlDatabaseThroughputWithResponse(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB SQL database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param updateThroughputParameters The parameters to provide for the RUs per second of the current SQL database.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginUpdateSqlDatabaseThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB SQL database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param updateThroughputParameters The parameters to provide for the RUs per second of the current SQL database.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginUpdateSqlDatabaseThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters,
+ Context context);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB SQL database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param updateThroughputParameters The parameters to provide for the RUs per second of the current SQL database.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner updateSqlDatabaseThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB SQL database.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param updateThroughputParameters The parameters to provide for the RUs per second of the current SQL database.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner updateSqlDatabaseThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters,
+ Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateSqlDatabaseToAutoscale(String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateSqlDatabaseToAutoscale(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateSqlDatabaseToAutoscale(
+ String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateSqlDatabaseToAutoscale(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateSqlDatabaseToManualThroughput(String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateSqlDatabaseToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateSqlDatabaseToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateSqlDatabaseToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Lists the SQL container under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the containers and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listSqlContainers(
+ String resourceGroupName, String accountName, String databaseName);
+
+ /**
+ * Lists the SQL container under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the containers and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listSqlContainers(
+ String resourceGroupName, String accountName, String databaseName, Context context);
+
+ /**
+ * Gets the SQL container under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the SQL container under an existing Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlContainerGetResultsInner getSqlContainer(
+ String resourceGroupName, String accountName, String databaseName, String containerName);
+
+ /**
+ * Gets the SQL container under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the SQL container under an existing Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getSqlContainerWithResponse(
+ String resourceGroupName, String accountName, String databaseName, String containerName, Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB SQL container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param createUpdateSqlContainerParameters The parameters to provide for the current SQL container.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB container.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, SqlContainerGetResultsInner> beginCreateUpdateSqlContainer(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ SqlContainerCreateUpdateParameters createUpdateSqlContainerParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB SQL container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param createUpdateSqlContainerParameters The parameters to provide for the current SQL container.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB container.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, SqlContainerGetResultsInner> beginCreateUpdateSqlContainer(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ SqlContainerCreateUpdateParameters createUpdateSqlContainerParameters,
+ Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB SQL container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param createUpdateSqlContainerParameters The parameters to provide for the current SQL container.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB container.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlContainerGetResultsInner createUpdateSqlContainer(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ SqlContainerCreateUpdateParameters createUpdateSqlContainerParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB SQL container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param createUpdateSqlContainerParameters The parameters to provide for the current SQL container.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB container.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlContainerGetResultsInner createUpdateSqlContainer(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ SqlContainerCreateUpdateParameters createUpdateSqlContainerParameters,
+ Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB SQL container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteSqlContainer(
+ String resourceGroupName, String accountName, String databaseName, String containerName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB SQL container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteSqlContainer(
+ String resourceGroupName, String accountName, String databaseName, String containerName, Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB SQL container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteSqlContainer(String resourceGroupName, String accountName, String databaseName, String containerName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB SQL container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteSqlContainer(
+ String resourceGroupName, String accountName, String databaseName, String containerName, Context context);
+
+ /**
+ * Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the RUs per second of the SQL container under an existing Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner getSqlContainerThroughput(
+ String resourceGroupName, String accountName, String databaseName, String containerName);
+
+ /**
+ * Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the RUs per second of the SQL container under an existing Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getSqlContainerThroughputWithResponse(
+ String resourceGroupName, String accountName, String databaseName, String containerName, Context context);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB SQL container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param updateThroughputParameters The parameters to provide for the RUs per second of the current SQL container.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginUpdateSqlContainerThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB SQL container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param updateThroughputParameters The parameters to provide for the RUs per second of the current SQL container.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginUpdateSqlContainerThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters,
+ Context context);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB SQL container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param updateThroughputParameters The parameters to provide for the RUs per second of the current SQL container.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner updateSqlContainerThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB SQL container.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param updateThroughputParameters The parameters to provide for the RUs per second of the current SQL container.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner updateSqlContainerThroughput(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters,
+ Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateSqlContainerToAutoscale(
+ String resourceGroupName, String accountName, String databaseName, String containerName);
+
+ /**
+ * Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateSqlContainerToAutoscale(
+ String resourceGroupName, String accountName, String databaseName, String containerName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateSqlContainerToAutoscale(
+ String resourceGroupName, String accountName, String databaseName, String containerName);
+
+ /**
+ * Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateSqlContainerToAutoscale(
+ String resourceGroupName, String accountName, String databaseName, String containerName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateSqlContainerToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName, String containerName);
+
+ /**
+ * Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateSqlContainerToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName, String containerName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateSqlContainerToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName, String containerName);
+
+ /**
+ * Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateSqlContainerToManualThroughput(
+ String resourceGroupName, String accountName, String databaseName, String containerName, Context context);
+
+ /**
+ * Lists the SQL storedProcedure under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the storedProcedures and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listSqlStoredProcedures(
+ String resourceGroupName, String accountName, String databaseName, String containerName);
+
+ /**
+ * Lists the SQL storedProcedure under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the storedProcedures and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listSqlStoredProcedures(
+ String resourceGroupName, String accountName, String databaseName, String containerName, Context context);
+
+ /**
+ * Gets the SQL storedProcedure under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param storedProcedureName Cosmos DB storedProcedure name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the SQL storedProcedure under an existing Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlStoredProcedureGetResultsInner getSqlStoredProcedure(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String storedProcedureName);
+
+ /**
+ * Gets the SQL storedProcedure under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param storedProcedureName Cosmos DB storedProcedure name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the SQL storedProcedure under an existing Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getSqlStoredProcedureWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String storedProcedureName,
+ Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB SQL storedProcedure.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param storedProcedureName Cosmos DB storedProcedure name.
+ * @param createUpdateSqlStoredProcedureParameters The parameters to provide for the current SQL storedProcedure.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB storedProcedure.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, SqlStoredProcedureGetResultsInner>
+ beginCreateUpdateSqlStoredProcedure(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String storedProcedureName,
+ SqlStoredProcedureCreateUpdateParameters createUpdateSqlStoredProcedureParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB SQL storedProcedure.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param storedProcedureName Cosmos DB storedProcedure name.
+ * @param createUpdateSqlStoredProcedureParameters The parameters to provide for the current SQL storedProcedure.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB storedProcedure.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, SqlStoredProcedureGetResultsInner>
+ beginCreateUpdateSqlStoredProcedure(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String storedProcedureName,
+ SqlStoredProcedureCreateUpdateParameters createUpdateSqlStoredProcedureParameters,
+ Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB SQL storedProcedure.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param storedProcedureName Cosmos DB storedProcedure name.
+ * @param createUpdateSqlStoredProcedureParameters The parameters to provide for the current SQL storedProcedure.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB storedProcedure.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlStoredProcedureGetResultsInner createUpdateSqlStoredProcedure(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String storedProcedureName,
+ SqlStoredProcedureCreateUpdateParameters createUpdateSqlStoredProcedureParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB SQL storedProcedure.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param storedProcedureName Cosmos DB storedProcedure name.
+ * @param createUpdateSqlStoredProcedureParameters The parameters to provide for the current SQL storedProcedure.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB storedProcedure.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlStoredProcedureGetResultsInner createUpdateSqlStoredProcedure(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String storedProcedureName,
+ SqlStoredProcedureCreateUpdateParameters createUpdateSqlStoredProcedureParameters,
+ Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB SQL storedProcedure.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param storedProcedureName Cosmos DB storedProcedure name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteSqlStoredProcedure(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String storedProcedureName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB SQL storedProcedure.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param storedProcedureName Cosmos DB storedProcedure name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteSqlStoredProcedure(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String storedProcedureName,
+ Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB SQL storedProcedure.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param storedProcedureName Cosmos DB storedProcedure name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteSqlStoredProcedure(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String storedProcedureName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB SQL storedProcedure.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param storedProcedureName Cosmos DB storedProcedure name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteSqlStoredProcedure(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String storedProcedureName,
+ Context context);
+
+ /**
+ * Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the userDefinedFunctions and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listSqlUserDefinedFunctions(
+ String resourceGroupName, String accountName, String databaseName, String containerName);
+
+ /**
+ * Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the userDefinedFunctions and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listSqlUserDefinedFunctions(
+ String resourceGroupName, String accountName, String databaseName, String containerName, Context context);
+
+ /**
+ * Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param userDefinedFunctionName Cosmos DB userDefinedFunction name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the SQL userDefinedFunction under an existing Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlUserDefinedFunctionGetResultsInner getSqlUserDefinedFunction(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String userDefinedFunctionName);
+
+ /**
+ * Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param userDefinedFunctionName Cosmos DB userDefinedFunction name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the SQL userDefinedFunction under an existing Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getSqlUserDefinedFunctionWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String userDefinedFunctionName,
+ Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB SQL userDefinedFunction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param userDefinedFunctionName Cosmos DB userDefinedFunction name.
+ * @param createUpdateSqlUserDefinedFunctionParameters The parameters to provide for the current SQL
+ * userDefinedFunction.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB userDefinedFunction.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, SqlUserDefinedFunctionGetResultsInner>
+ beginCreateUpdateSqlUserDefinedFunction(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String userDefinedFunctionName,
+ SqlUserDefinedFunctionCreateUpdateParameters createUpdateSqlUserDefinedFunctionParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB SQL userDefinedFunction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param userDefinedFunctionName Cosmos DB userDefinedFunction name.
+ * @param createUpdateSqlUserDefinedFunctionParameters The parameters to provide for the current SQL
+ * userDefinedFunction.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB userDefinedFunction.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, SqlUserDefinedFunctionGetResultsInner>
+ beginCreateUpdateSqlUserDefinedFunction(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String userDefinedFunctionName,
+ SqlUserDefinedFunctionCreateUpdateParameters createUpdateSqlUserDefinedFunctionParameters,
+ Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB SQL userDefinedFunction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param userDefinedFunctionName Cosmos DB userDefinedFunction name.
+ * @param createUpdateSqlUserDefinedFunctionParameters The parameters to provide for the current SQL
+ * userDefinedFunction.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB userDefinedFunction.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlUserDefinedFunctionGetResultsInner createUpdateSqlUserDefinedFunction(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String userDefinedFunctionName,
+ SqlUserDefinedFunctionCreateUpdateParameters createUpdateSqlUserDefinedFunctionParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB SQL userDefinedFunction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param userDefinedFunctionName Cosmos DB userDefinedFunction name.
+ * @param createUpdateSqlUserDefinedFunctionParameters The parameters to provide for the current SQL
+ * userDefinedFunction.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB userDefinedFunction.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlUserDefinedFunctionGetResultsInner createUpdateSqlUserDefinedFunction(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String userDefinedFunctionName,
+ SqlUserDefinedFunctionCreateUpdateParameters createUpdateSqlUserDefinedFunctionParameters,
+ Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB SQL userDefinedFunction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param userDefinedFunctionName Cosmos DB userDefinedFunction name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteSqlUserDefinedFunction(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String userDefinedFunctionName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB SQL userDefinedFunction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param userDefinedFunctionName Cosmos DB userDefinedFunction name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteSqlUserDefinedFunction(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String userDefinedFunctionName,
+ Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB SQL userDefinedFunction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param userDefinedFunctionName Cosmos DB userDefinedFunction name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteSqlUserDefinedFunction(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String userDefinedFunctionName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB SQL userDefinedFunction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param userDefinedFunctionName Cosmos DB userDefinedFunction name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteSqlUserDefinedFunction(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String userDefinedFunctionName,
+ Context context);
+
+ /**
+ * Lists the SQL trigger under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the triggers and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listSqlTriggers(
+ String resourceGroupName, String accountName, String databaseName, String containerName);
+
+ /**
+ * Lists the SQL trigger under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the triggers and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listSqlTriggers(
+ String resourceGroupName, String accountName, String databaseName, String containerName, Context context);
+
+ /**
+ * Gets the SQL trigger under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param triggerName Cosmos DB trigger name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the SQL trigger under an existing Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlTriggerGetResultsInner getSqlTrigger(
+ String resourceGroupName, String accountName, String databaseName, String containerName, String triggerName);
+
+ /**
+ * Gets the SQL trigger under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param triggerName Cosmos DB trigger name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the SQL trigger under an existing Azure Cosmos DB database account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getSqlTriggerWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String triggerName,
+ Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB SQL trigger.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param triggerName Cosmos DB trigger name.
+ * @param createUpdateSqlTriggerParameters The parameters to provide for the current SQL trigger.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB trigger.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, SqlTriggerGetResultsInner> beginCreateUpdateSqlTrigger(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String triggerName,
+ SqlTriggerCreateUpdateParameters createUpdateSqlTriggerParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB SQL trigger.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param triggerName Cosmos DB trigger name.
+ * @param createUpdateSqlTriggerParameters The parameters to provide for the current SQL trigger.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB trigger.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, SqlTriggerGetResultsInner> beginCreateUpdateSqlTrigger(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String triggerName,
+ SqlTriggerCreateUpdateParameters createUpdateSqlTriggerParameters,
+ Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB SQL trigger.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param triggerName Cosmos DB trigger name.
+ * @param createUpdateSqlTriggerParameters The parameters to provide for the current SQL trigger.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB trigger.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlTriggerGetResultsInner createUpdateSqlTrigger(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String triggerName,
+ SqlTriggerCreateUpdateParameters createUpdateSqlTriggerParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB SQL trigger.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param triggerName Cosmos DB trigger name.
+ * @param createUpdateSqlTriggerParameters The parameters to provide for the current SQL trigger.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB trigger.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SqlTriggerGetResultsInner createUpdateSqlTrigger(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String triggerName,
+ SqlTriggerCreateUpdateParameters createUpdateSqlTriggerParameters,
+ Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB SQL trigger.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param triggerName Cosmos DB trigger name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteSqlTrigger(
+ String resourceGroupName, String accountName, String databaseName, String containerName, String triggerName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB SQL trigger.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param triggerName Cosmos DB trigger name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteSqlTrigger(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String triggerName,
+ Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB SQL trigger.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param triggerName Cosmos DB trigger name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteSqlTrigger(
+ String resourceGroupName, String accountName, String databaseName, String containerName, String triggerName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB SQL trigger.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param databaseName Cosmos DB database name.
+ * @param containerName Cosmos DB container name.
+ * @param triggerName Cosmos DB trigger name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteSqlTrigger(
+ String resourceGroupName,
+ String accountName,
+ String databaseName,
+ String containerName,
+ String triggerName,
+ Context context);
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/TableResourcesClient.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/TableResourcesClient.java
new file mode 100644
index 0000000000000..d046814f11407
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/TableResourcesClient.java
@@ -0,0 +1,454 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.TableGetResultsInner;
+import com.azure.resourcemanager.cosmos.generated.fluent.models.ThroughputSettingsGetResultsInner;
+import com.azure.resourcemanager.cosmos.generated.models.TableCreateUpdateParameters;
+import com.azure.resourcemanager.cosmos.generated.models.ThroughputSettingsUpdateParameters;
+
+/** An instance of this class provides access to all the operations defined in TableResourcesClient. */
+public interface TableResourcesClient {
+ /**
+ * Lists the Tables under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the Table and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listTables(String resourceGroupName, String accountName);
+
+ /**
+ * Lists the Tables under an existing Azure Cosmos DB database account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the List operation response, that contains the Table and their properties.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listTables(String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Gets the Tables under an existing Azure Cosmos DB database account with the provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Tables under an existing Azure Cosmos DB database account with the provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TableGetResultsInner getTable(String resourceGroupName, String accountName, String tableName);
+
+ /**
+ * Gets the Tables under an existing Azure Cosmos DB database account with the provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Tables under an existing Azure Cosmos DB database account with the provided name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getTableWithResponse(
+ String resourceGroupName, String accountName, String tableName, Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB Table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @param createUpdateTableParameters The parameters to provide for the current Table.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB Table.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TableGetResultsInner> beginCreateUpdateTable(
+ String resourceGroupName,
+ String accountName,
+ String tableName,
+ TableCreateUpdateParameters createUpdateTableParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB Table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @param createUpdateTableParameters The parameters to provide for the current Table.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB Table.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, TableGetResultsInner> beginCreateUpdateTable(
+ String resourceGroupName,
+ String accountName,
+ String tableName,
+ TableCreateUpdateParameters createUpdateTableParameters,
+ Context context);
+
+ /**
+ * Create or update an Azure Cosmos DB Table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @param createUpdateTableParameters The parameters to provide for the current Table.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB Table.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TableGetResultsInner createUpdateTable(
+ String resourceGroupName,
+ String accountName,
+ String tableName,
+ TableCreateUpdateParameters createUpdateTableParameters);
+
+ /**
+ * Create or update an Azure Cosmos DB Table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @param createUpdateTableParameters The parameters to provide for the current Table.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB Table.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ TableGetResultsInner createUpdateTable(
+ String resourceGroupName,
+ String accountName,
+ String tableName,
+ TableCreateUpdateParameters createUpdateTableParameters,
+ Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB Table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteTable(String resourceGroupName, String accountName, String tableName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB Table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, Void> beginDeleteTable(
+ String resourceGroupName, String accountName, String tableName, Context context);
+
+ /**
+ * Deletes an existing Azure Cosmos DB Table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteTable(String resourceGroupName, String accountName, String tableName);
+
+ /**
+ * Deletes an existing Azure Cosmos DB Table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteTable(String resourceGroupName, String accountName, String tableName, Context context);
+
+ /**
+ * Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided
+ * name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner getTableThroughput(
+ String resourceGroupName, String accountName, String tableName);
+
+ /**
+ * Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided
+ * name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getTableThroughputWithResponse(
+ String resourceGroupName, String accountName, String tableName, Context context);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB Table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @param updateThroughputParameters The parameters to provide for the RUs per second of the current Table.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginUpdateTableThroughput(
+ String resourceGroupName,
+ String accountName,
+ String tableName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB Table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @param updateThroughputParameters The parameters to provide for the RUs per second of the current Table.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginUpdateTableThroughput(
+ String resourceGroupName,
+ String accountName,
+ String tableName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters,
+ Context context);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB Table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @param updateThroughputParameters The parameters to provide for the RUs per second of the current Table.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner updateTableThroughput(
+ String resourceGroupName,
+ String accountName,
+ String tableName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters);
+
+ /**
+ * Update RUs per second of an Azure Cosmos DB Table.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @param updateThroughputParameters The parameters to provide for the RUs per second of the current Table.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner updateTableThroughput(
+ String resourceGroupName,
+ String accountName,
+ String tableName,
+ ThroughputSettingsUpdateParameters updateThroughputParameters,
+ Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB Table from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateTableToAutoscale(String resourceGroupName, String accountName, String tableName);
+
+ /**
+ * Migrate an Azure Cosmos DB Table from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateTableToAutoscale(String resourceGroupName, String accountName, String tableName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB Table from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateTableToAutoscale(
+ String resourceGroupName, String accountName, String tableName);
+
+ /**
+ * Migrate an Azure Cosmos DB Table from manual throughput to autoscale.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateTableToAutoscale(
+ String resourceGroupName, String accountName, String tableName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB Table from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateTableToManualThroughput(String resourceGroupName, String accountName, String tableName);
+
+ /**
+ * Migrate an Azure Cosmos DB Table from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SyncPoller, ThroughputSettingsGetResultsInner>
+ beginMigrateTableToManualThroughput(
+ String resourceGroupName, String accountName, String tableName, Context context);
+
+ /**
+ * Migrate an Azure Cosmos DB Table from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateTableToManualThroughput(
+ String resourceGroupName, String accountName, String tableName);
+
+ /**
+ * Migrate an Azure Cosmos DB Table from autoscale to manual throughput.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName Cosmos DB database account name.
+ * @param tableName Cosmos DB table name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Cosmos DB resource throughput.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ThroughputSettingsGetResultsInner migrateTableToManualThroughput(
+ String resourceGroupName, String accountName, String tableName, Context context);
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/models/CassandraKeyspaceGetResultsInner.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/models/CassandraKeyspaceGetResultsInner.java
new file mode 100644
index 0000000000000..963345d4ec9d0
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/models/CassandraKeyspaceGetResultsInner.java
@@ -0,0 +1,93 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.cosmos.generated.models.ArmResourceProperties;
+import com.azure.resourcemanager.cosmos.generated.models.CassandraKeyspaceGetPropertiesResource;
+import com.azure.resourcemanager.cosmos.generated.models.OptionsResource;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** An Azure Cosmos DB Cassandra keyspace. */
+@JsonFlatten
+@Fluent
+public class CassandraKeyspaceGetResultsInner extends ArmResourceProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(CassandraKeyspaceGetResultsInner.class);
+
+ /*
+ * The resource property.
+ */
+ @JsonProperty(value = "properties.resource")
+ private CassandraKeyspaceGetPropertiesResource resource;
+
+ /*
+ * Cosmos DB options resource object
+ */
+ @JsonProperty(value = "properties.options", access = JsonProperty.Access.WRITE_ONLY)
+ private OptionsResource options;
+
+ /**
+ * Get the resource property: The resource property.
+ *
+ * @return the resource value.
+ */
+ public CassandraKeyspaceGetPropertiesResource resource() {
+ return this.resource;
+ }
+
+ /**
+ * Set the resource property: The resource property.
+ *
+ * @param resource the resource value to set.
+ * @return the CassandraKeyspaceGetResultsInner object itself.
+ */
+ public CassandraKeyspaceGetResultsInner withResource(CassandraKeyspaceGetPropertiesResource resource) {
+ this.resource = resource;
+ return this;
+ }
+
+ /**
+ * Get the options property: Cosmos DB options resource object.
+ *
+ * @return the options value.
+ */
+ public OptionsResource options() {
+ return this.options;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public CassandraKeyspaceGetResultsInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public CassandraKeyspaceGetResultsInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (resource() != null) {
+ resource().validate();
+ }
+ if (options() != null) {
+ options().validate();
+ }
+ }
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/models/CassandraTableGetResultsInner.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/models/CassandraTableGetResultsInner.java
new file mode 100644
index 0000000000000..d1ee38477ee9f
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/models/CassandraTableGetResultsInner.java
@@ -0,0 +1,93 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.cosmos.generated.models.ArmResourceProperties;
+import com.azure.resourcemanager.cosmos.generated.models.CassandraTableGetPropertiesResource;
+import com.azure.resourcemanager.cosmos.generated.models.OptionsResource;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** An Azure Cosmos DB Cassandra table. */
+@JsonFlatten
+@Fluent
+public class CassandraTableGetResultsInner extends ArmResourceProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(CassandraTableGetResultsInner.class);
+
+ /*
+ * The resource property.
+ */
+ @JsonProperty(value = "properties.resource")
+ private CassandraTableGetPropertiesResource resource;
+
+ /*
+ * Cosmos DB options resource object
+ */
+ @JsonProperty(value = "properties.options", access = JsonProperty.Access.WRITE_ONLY)
+ private OptionsResource options;
+
+ /**
+ * Get the resource property: The resource property.
+ *
+ * @return the resource value.
+ */
+ public CassandraTableGetPropertiesResource resource() {
+ return this.resource;
+ }
+
+ /**
+ * Set the resource property: The resource property.
+ *
+ * @param resource the resource value to set.
+ * @return the CassandraTableGetResultsInner object itself.
+ */
+ public CassandraTableGetResultsInner withResource(CassandraTableGetPropertiesResource resource) {
+ this.resource = resource;
+ return this;
+ }
+
+ /**
+ * Get the options property: Cosmos DB options resource object.
+ *
+ * @return the options value.
+ */
+ public OptionsResource options() {
+ return this.options;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public CassandraTableGetResultsInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public CassandraTableGetResultsInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (resource() != null) {
+ resource().validate();
+ }
+ if (options() != null) {
+ options().validate();
+ }
+ }
+}
diff --git a/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/models/DatabaseAccountGetResultsInner.java b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/models/DatabaseAccountGetResultsInner.java
new file mode 100644
index 0000000000000..28a5fac8c21be
--- /dev/null
+++ b/sdk/cosmos/azure-resourcemanager-cosmos-generated/src/main/java/com/azure/resourcemanager/cosmos/generated/fluent/models/DatabaseAccountGetResultsInner.java
@@ -0,0 +1,706 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.cosmos.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.cosmos.generated.models.ApiProperties;
+import com.azure.resourcemanager.cosmos.generated.models.ArmResourceProperties;
+import com.azure.resourcemanager.cosmos.generated.models.BackupPolicy;
+import com.azure.resourcemanager.cosmos.generated.models.Capability;
+import com.azure.resourcemanager.cosmos.generated.models.ConnectorOffer;
+import com.azure.resourcemanager.cosmos.generated.models.ConsistencyPolicy;
+import com.azure.resourcemanager.cosmos.generated.models.CorsPolicy;
+import com.azure.resourcemanager.cosmos.generated.models.DatabaseAccountKind;
+import com.azure.resourcemanager.cosmos.generated.models.DatabaseAccountOfferType;
+import com.azure.resourcemanager.cosmos.generated.models.FailoverPolicy;
+import com.azure.resourcemanager.cosmos.generated.models.IpAddressOrRange;
+import com.azure.resourcemanager.cosmos.generated.models.Location;
+import com.azure.resourcemanager.cosmos.generated.models.PrivateEndpointConnection;
+import com.azure.resourcemanager.cosmos.generated.models.PublicNetworkAccess;
+import com.azure.resourcemanager.cosmos.generated.models.VirtualNetworkRule;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** An Azure Cosmos DB database account. */
+@JsonFlatten
+@Fluent
+public class DatabaseAccountGetResultsInner extends ArmResourceProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DatabaseAccountGetResultsInner.class);
+
+ /*
+ * Indicates the type of database account. This can only be set at database
+ * account creation.
+ */
+ @JsonProperty(value = "kind")
+ private DatabaseAccountKind kind;
+
+ /*
+ * The status of the Cosmos DB account at the time the operation was
+ * called. The status can be one of following. 'Creating' – the Cosmos DB
+ * account is being created. When an account is in Creating state, only
+ * properties that are specified as input for the Create Cosmos DB account
+ * operation are returned. 'Succeeded' – the Cosmos DB account is active
+ * for use. 'Updating' – the Cosmos DB account is being updated. 'Deleting'
+ * – the Cosmos DB account is being deleted. 'Failed' – the Cosmos DB
+ * account failed creation. 'DeletionFailed' – the Cosmos DB account
+ * deletion failed.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /*
+ * The connection endpoint for the Cosmos DB database account.
+ */
+ @JsonProperty(value = "properties.documentEndpoint", access = JsonProperty.Access.WRITE_ONLY)
+ private String documentEndpoint;
+
+ /*
+ * The offer type for the Cosmos DB database account. Default value:
+ * Standard.
+ */
+ @JsonProperty(value = "properties.databaseAccountOfferType", access = JsonProperty.Access.WRITE_ONLY)
+ private DatabaseAccountOfferType databaseAccountOfferType;
+
+ /*
+ * List of IpRules.
+ */
+ @JsonProperty(value = "properties.ipRules")
+ private List ipRules;
+
+ /*
+ * Flag to indicate whether to enable/disable Virtual Network ACL rules.
+ */
+ @JsonProperty(value = "properties.isVirtualNetworkFilterEnabled")
+ private Boolean isVirtualNetworkFilterEnabled;
+
+ /*
+ * Enables automatic failover of the write region in the rare event that
+ * the region is unavailable due to an outage. Automatic failover will
+ * result in a new write region for the account and is chosen based on the
+ * failover priorities configured for the account.
+ */
+ @JsonProperty(value = "properties.enableAutomaticFailover")
+ private Boolean enableAutomaticFailover;
+
+ /*
+ * The consistency policy for the Cosmos DB database account.
+ */
+ @JsonProperty(value = "properties.consistencyPolicy")
+ private ConsistencyPolicy consistencyPolicy;
+
+ /*
+ * List of Cosmos DB capabilities for the account
+ */
+ @JsonProperty(value = "properties.capabilities")
+ private List capabilities;
+
+ /*
+ * An array that contains the write location for the Cosmos DB account.
+ */
+ @JsonProperty(value = "properties.writeLocations", access = JsonProperty.Access.WRITE_ONLY)
+ private List writeLocations;
+
+ /*
+ * An array that contains of the read locations enabled for the Cosmos DB
+ * account.
+ */
+ @JsonProperty(value = "properties.readLocations", access = JsonProperty.Access.WRITE_ONLY)
+ private List readLocations;
+
+ /*
+ * An array that contains all of the locations enabled for the Cosmos DB
+ * account.
+ */
+ @JsonProperty(value = "properties.locations", access = JsonProperty.Access.WRITE_ONLY)
+ private List locations;
+
+ /*
+ * An array that contains the regions ordered by their failover priorities.
+ */
+ @JsonProperty(value = "properties.failoverPolicies", access = JsonProperty.Access.WRITE_ONLY)
+ private List failoverPolicies;
+
+ /*
+ * List of Virtual Network ACL rules configured for the Cosmos DB account.
+ */
+ @JsonProperty(value = "properties.virtualNetworkRules")
+ private List virtualNetworkRules;
+
+ /*
+ * List of Private Endpoint Connections configured for the Cosmos DB
+ * account.
+ */
+ @JsonProperty(value = "properties.privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
+ private List privateEndpointConnections;
+
+ /*
+ * Enables the account to write in multiple locations
+ */
+ @JsonProperty(value = "properties.enableMultipleWriteLocations")
+ private Boolean enableMultipleWriteLocations;
+
+ /*
+ * Enables the cassandra connector on the Cosmos DB C* account
+ */
+ @JsonProperty(value = "properties.enableCassandraConnector")
+ private Boolean enableCassandraConnector;
+
+ /*
+ * The cassandra connector offer type for the Cosmos DB database C*
+ * account.
+ */
+ @JsonProperty(value = "properties.connectorOffer")
+ private ConnectorOffer connectorOffer;
+
+ /*
+ * Disable write operations on metadata resources (databases, containers,
+ * throughput) via account keys
+ */
+ @JsonProperty(value = "properties.disableKeyBasedMetadataWriteAccess")
+ private Boolean disableKeyBasedMetadataWriteAccess;
+
+ /*
+ * The URI of the key vault
+ */
+ @JsonProperty(value = "properties.keyVaultKeyUri")
+ private String keyVaultKeyUri;
+
+ /*
+ * Whether requests from Public Network are allowed
+ */
+ @JsonProperty(value = "properties.publicNetworkAccess", access = JsonProperty.Access.WRITE_ONLY)
+ private PublicNetworkAccess publicNetworkAccess;
+
+ /*
+ * Flag to indicate whether Free Tier is enabled.
+ */
+ @JsonProperty(value = "properties.enableFreeTier")
+ private Boolean enableFreeTier;
+
+ /*
+ * API specific properties.
+ */
+ @JsonProperty(value = "properties.apiProperties")
+ private ApiProperties apiProperties;
+
+ /*
+ * Flag to indicate whether to enable storage analytics.
+ */
+ @JsonProperty(value = "properties.enableAnalyticalStorage")
+ private Boolean enableAnalyticalStorage;
+
+ /*
+ * The object representing the policy for taking backups on an account.
+ */
+ @JsonProperty(value = "properties.backupPolicy")
+ private BackupPolicy backupPolicy;
+
+ /*
+ * The CORS policy for the Cosmos DB database account.
+ */
+ @JsonProperty(value = "properties.cors")
+ private List cors;
+
+ /**
+ * Get the kind property: Indicates the type of database account. This can only be set at database account creation.
+ *
+ * @return the kind value.
+ */
+ public DatabaseAccountKind kind() {
+ return this.kind;
+ }
+
+ /**
+ * Set the kind property: Indicates the type of database account. This can only be set at database account creation.
+ *
+ * @param kind the kind value to set.
+ * @return the DatabaseAccountGetResultsInner object itself.
+ */
+ public DatabaseAccountGetResultsInner withKind(DatabaseAccountKind kind) {
+ this.kind = kind;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The status of the Cosmos DB account at the time the operation was called. The
+ * status can be one of following. 'Creating' – the Cosmos DB account is being created. When an account is in
+ * Creating state, only properties that are specified as input for the Create Cosmos DB account operation are
+ * returned. 'Succeeded' – the Cosmos DB account is active for use. 'Updating' – the Cosmos DB account is being
+ * updated. 'Deleting' – the Cosmos DB account is being deleted. 'Failed' – the Cosmos DB account failed creation.
+ * 'DeletionFailed' – the Cosmos DB account deletion failed.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the documentEndpoint property: The connection endpoint for the Cosmos DB database account.
+ *
+ * @return the documentEndpoint value.
+ */
+ public String documentEndpoint() {
+ return this.documentEndpoint;
+ }
+
+ /**
+ * Get the databaseAccountOfferType property: The offer type for the Cosmos DB database account. Default value:
+ * Standard.
+ *
+ * @return the databaseAccountOfferType value.
+ */
+ public DatabaseAccountOfferType databaseAccountOfferType() {
+ return this.databaseAccountOfferType;
+ }
+
+ /**
+ * Get the ipRules property: List of IpRules.
+ *
+ * @return the ipRules value.
+ */
+ public List ipRules() {
+ return this.ipRules;
+ }
+
+ /**
+ * Set the ipRules property: List of IpRules.
+ *
+ * @param ipRules the ipRules value to set.
+ * @return the DatabaseAccountGetResultsInner object itself.
+ */
+ public DatabaseAccountGetResultsInner withIpRules(List ipRules) {
+ this.ipRules = ipRules;
+ return this;
+ }
+
+ /**
+ * Get the isVirtualNetworkFilterEnabled property: Flag to indicate whether to enable/disable Virtual Network ACL
+ * rules.
+ *
+ * @return the isVirtualNetworkFilterEnabled value.
+ */
+ public Boolean isVirtualNetworkFilterEnabled() {
+ return this.isVirtualNetworkFilterEnabled;
+ }
+
+ /**
+ * Set the isVirtualNetworkFilterEnabled property: Flag to indicate whether to enable/disable Virtual Network ACL
+ * rules.
+ *
+ * @param isVirtualNetworkFilterEnabled the isVirtualNetworkFilterEnabled value to set.
+ * @return the DatabaseAccountGetResultsInner object itself.
+ */
+ public DatabaseAccountGetResultsInner withIsVirtualNetworkFilterEnabled(Boolean isVirtualNetworkFilterEnabled) {
+ this.isVirtualNetworkFilterEnabled = isVirtualNetworkFilterEnabled;
+ return this;
+ }
+
+ /**
+ * Get the enableAutomaticFailover property: Enables automatic failover of the write region in the rare event that
+ * the region is unavailable due to an outage. Automatic failover will result in a new write region for the account
+ * and is chosen based on the failover priorities configured for the account.
+ *
+ * @return the enableAutomaticFailover value.
+ */
+ public Boolean enableAutomaticFailover() {
+ return this.enableAutomaticFailover;
+ }
+
+ /**
+ * Set the enableAutomaticFailover property: Enables automatic failover of the write region in the rare event that
+ * the region is unavailable due to an outage. Automatic failover will result in a new write region for the account
+ * and is chosen based on the failover priorities configured for the account.
+ *
+ * @param enableAutomaticFailover the enableAutomaticFailover value to set.
+ * @return the DatabaseAccountGetResultsInner object itself.
+ */
+ public DatabaseAccountGetResultsInner withEnableAutomaticFailover(Boolean enableAutomaticFailover) {
+ this.enableAutomaticFailover = enableAutomaticFailover;
+ return this;
+ }
+
+ /**
+ * Get the consistencyPolicy property: The consistency policy for the Cosmos DB database account.
+ *
+ * @return the consistencyPolicy value.
+ */
+ public ConsistencyPolicy consistencyPolicy() {
+ return this.consistencyPolicy;
+ }
+
+ /**
+ * Set the consistencyPolicy property: The consistency policy for the Cosmos DB database account.
+ *
+ * @param consistencyPolicy the consistencyPolicy value to set.
+ * @return the DatabaseAccountGetResultsInner object itself.
+ */
+ public DatabaseAccountGetResultsInner withConsistencyPolicy(ConsistencyPolicy consistencyPolicy) {
+ this.consistencyPolicy = consistencyPolicy;
+ return this;
+ }
+
+ /**
+ * Get the capabilities property: List of Cosmos DB capabilities for the account.
+ *
+ * @return the capabilities value.
+ */
+ public List capabilities() {
+ return this.capabilities;
+ }
+
+ /**
+ * Set the capabilities property: List of Cosmos DB capabilities for the account.
+ *
+ * @param capabilities the capabilities value to set.
+ * @return the DatabaseAccountGetResultsInner object itself.
+ */
+ public DatabaseAccountGetResultsInner withCapabilities(List capabilities) {
+ this.capabilities = capabilities;
+ return this;
+ }
+
+ /**
+ * Get the writeLocations property: An array that contains the write location for the Cosmos DB account.
+ *
+ * @return the writeLocations value.
+ */
+ public List writeLocations() {
+ return this.writeLocations;
+ }
+
+ /**
+ * Get the readLocations property: An array that contains of the read locations enabled for the Cosmos DB account.
+ *
+ * @return the readLocations value.
+ */
+ public List readLocations() {
+ return this.readLocations;
+ }
+
+ /**
+ * Get the locations property: An array that contains all of the locations enabled for the Cosmos DB account.
+ *
+ * @return the locations value.
+ */
+ public List locations() {
+ return this.locations;
+ }
+
+ /**
+ * Get the failoverPolicies property: An array that contains the regions ordered by their failover priorities.
+ *
+ * @return the failoverPolicies value.
+ */
+ public List failoverPolicies() {
+ return this.failoverPolicies;
+ }
+
+ /**
+ * Get the virtualNetworkRules property: List of Virtual Network ACL rules configured for the Cosmos DB account.
+ *
+ * @return the virtualNetworkRules value.
+ */
+ public List