diff --git a/sdk/cosmos/mgmt-v2020_03_01/pom.xml b/sdk/cosmos/mgmt-v2020_03_01/pom.xml
index f6cb9eff921c..1d750a0ced9a 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/pom.xml
+++ b/sdk/cosmos/mgmt-v2020_03_01/pom.xml
@@ -11,8 +11,8 @@
com.microsoft.azure
azure-arm-parent
- 1.3.0
- ../../parents/azure-arm-parent
+ 1.1.0
+ ../../../pom.management.xml
azure-mgmt-cosmosdb
1.0.0-beta
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/AzureEntityResource.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/AzureEntityResource.java
index fae5de9a8e1c..e0ef1547938e 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/AzureEntityResource.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/AzureEntityResource.java
@@ -12,7 +12,8 @@
import com.microsoft.azure.ProxyResource;
/**
- * The resource model definition for a Azure Resource Manager resource with an
+ * Entity Resource.
+ * The resource model definition for an Azure Resource Manager resource with an
* etag.
*/
public class AzureEntityResource extends ProxyResource {
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CassandraKeyspaceGetResults.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CassandraKeyspaceGetResults.java
index 40525bc28bd7..f1cbf18ddb8b 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CassandraKeyspaceGetResults.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CassandraKeyspaceGetResults.java
@@ -80,7 +80,7 @@ interface Blank extends WithDatabaseAccount {
interface WithDatabaseAccount {
/**
* Specifies resourceGroupName, accountName.
- * @param resourceGroupName Name of an Azure resource group
+ * @param resourceGroupName The name of the resource group. The name is case insensitive
* @param accountName Cosmos DB database account name
* @return the next definition stage
*/
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CassandraResources.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CassandraResources.java
index 8557ef1b47bd..a5c8c953a187 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CassandraResources.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CassandraResources.java
@@ -34,7 +34,7 @@ public interface CassandraResources {
/**
* Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -45,7 +45,7 @@ public interface CassandraResources {
/**
* Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
* @return the observable for the request
@@ -55,7 +55,7 @@ public interface CassandraResources {
/**
* Deletes an existing Azure Cosmos DB Cassandra keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -66,7 +66,7 @@ public interface CassandraResources {
/**
* Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -77,7 +77,7 @@ public interface CassandraResources {
/**
* Update RUs per second of an Azure Cosmos DB Cassandra Keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -86,10 +86,32 @@ public interface CassandraResources {
*/
Observable updateCassandraKeyspaceThroughputAsync(String resourceGroupName, String accountName, String keyspaceName, ThroughputSettingsUpdateParameters updateThroughputParameters);
+ /**
+ * 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
+ * @return the observable for the request
+ */
+ Observable migrateCassandraKeyspaceToAutoscaleAsync(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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable migrateCassandraKeyspaceToManualThroughputAsync(String resourceGroupName, String accountName, String keyspaceName);
+
/**
* Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -101,7 +123,7 @@ public interface CassandraResources {
/**
* Update RUs per second of an Azure Cosmos DB Cassandra table.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -111,10 +133,34 @@ public interface CassandraResources {
*/
Observable updateCassandraTableThroughputAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, ThroughputSettingsUpdateParameters updateThroughputParameters);
+ /**
+ * 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
+ * @return the observable for the request
+ */
+ Observable migrateCassandraTableToAutoscaleAsync(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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable migrateCassandraTableToManualThroughputAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName);
+
/**
* Gets the Cassandra table under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -126,7 +172,7 @@ public interface CassandraResources {
/**
* Lists the Cassandra table under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -137,7 +183,7 @@ public interface CassandraResources {
/**
* Deletes an existing Azure Cosmos DB Cassandra table.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CassandraTableGetResults.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CassandraTableGetResults.java
index 9ad374f76470..f57afd9e5029 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CassandraTableGetResults.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CassandraTableGetResults.java
@@ -80,7 +80,7 @@ interface Blank extends WithCassandraKeyspace {
interface WithCassandraKeyspace {
/**
* Specifies resourceGroupName, accountName, keyspaceName.
- * @param resourceGroupName Name of an Azure resource group
+ * @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
* @return the next definition stage
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CollectionPartitionRegions.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CollectionPartitionRegions.java
index 2f4334f3b601..c07446f48e53 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CollectionPartitionRegions.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CollectionPartitionRegions.java
@@ -17,7 +17,7 @@ public interface CollectionPartitionRegions {
/**
* Retrieves the metrics determined by the given filter for the given collection and region, split by partition.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CollectionPartitions.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CollectionPartitions.java
index 92b8e7cec80b..2de8be368c43 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CollectionPartitions.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CollectionPartitions.java
@@ -17,7 +17,7 @@ public interface CollectionPartitions {
/**
* Retrieves the metrics determined by the given filter for the given collection, split by partition.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -30,7 +30,7 @@ public interface CollectionPartitions {
/**
* Retrieves the usages (most recent storage data) for the given collection, split by partition.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CollectionRegions.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CollectionRegions.java
index 4b1ad3d5af9d..243d87ba6e71 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CollectionRegions.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CollectionRegions.java
@@ -18,7 +18,7 @@ public interface CollectionRegions {
/**
* Retrieves the metrics determined by the given filter for the given database account, collection and region.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/Collections.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/Collections.java
index d867cae049a4..ec5cd6a7db7c 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/Collections.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/Collections.java
@@ -20,7 +20,7 @@ public interface Collections {
/**
* Retrieves metric definitions for the given collection.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -32,7 +32,7 @@ public interface Collections {
/**
* Retrieves the metrics determined by the given filter for the given database account and collection.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -45,7 +45,7 @@ public interface Collections {
/**
* Retrieves the usages (most recent storage data) for the given collection.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/DatabaseAccountGetResults.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/DatabaseAccountGetResults.java
index 3e915e9f7979..99d20867c54b 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/DatabaseAccountGetResults.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/DatabaseAccountGetResults.java
@@ -100,6 +100,11 @@ public interface DatabaseAccountGetResults extends HasInner locations();
+ /**
+ * @return the privateEndpointConnections value.
+ */
+ List privateEndpointConnections();
+
/**
* @return the provisioningState value.
*/
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/DatabaseAccountRegions.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/DatabaseAccountRegions.java
index 92651e7596fc..0162697263d9 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/DatabaseAccountRegions.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/DatabaseAccountRegions.java
@@ -19,7 +19,7 @@ public interface DatabaseAccountRegions extends HasInner updateGremlinDatabaseThroughputAsync(String resourceGroupName, String accountName, String databaseName, ThroughputSettingsUpdateParameters updateThroughputParameters);
+ /**
+ * 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
+ * @return the observable for the request
+ */
+ Observable migrateGremlinDatabaseToAutoscaleAsync(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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable migrateGremlinDatabaseToManualThroughputAsync(String resourceGroupName, String accountName, String databaseName);
+
/**
* Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -101,7 +123,7 @@ public interface GremlinResources {
/**
* Update RUs per second of an Azure Cosmos DB Gremlin graph.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -111,10 +133,34 @@ public interface GremlinResources {
*/
Observable updateGremlinGraphThroughputAsync(String resourceGroupName, String accountName, String databaseName, String graphName, ThroughputSettingsUpdateParameters updateThroughputParameters);
+ /**
+ * 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
+ * @return the observable for the request
+ */
+ Observable migrateGremlinGraphToAutoscaleAsync(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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable migrateGremlinGraphToManualThroughputAsync(String resourceGroupName, String accountName, String databaseName, String graphName);
+
/**
* Gets the Gremlin graph under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -126,7 +172,7 @@ public interface GremlinResources {
/**
* Lists the Gremlin graph under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -137,7 +183,7 @@ public interface GremlinResources {
/**
* Deletes an existing Azure Cosmos DB Gremlin graph.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/MongoDBCollectionGetResults.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/MongoDBCollectionGetResults.java
index 671722b3ea72..1bf7ac08180f 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/MongoDBCollectionGetResults.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/MongoDBCollectionGetResults.java
@@ -80,7 +80,7 @@ interface Blank extends WithMongodbDatabasis {
interface WithMongodbDatabasis {
/**
* Specifies resourceGroupName, accountName, databaseName.
- * @param resourceGroupName Name of an Azure resource group
+ * @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
* @return the next definition stage
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/MongoDBDatabaseGetResults.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/MongoDBDatabaseGetResults.java
index 2fde98e476f3..27f96d24ef2c 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/MongoDBDatabaseGetResults.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/MongoDBDatabaseGetResults.java
@@ -80,7 +80,7 @@ interface Blank extends WithDatabaseAccount {
interface WithDatabaseAccount {
/**
* Specifies resourceGroupName, accountName.
- * @param resourceGroupName Name of an Azure resource group
+ * @param resourceGroupName The name of the resource group. The name is case insensitive
* @param accountName Cosmos DB database account name
* @return the next definition stage
*/
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/MongoDBResources.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/MongoDBResources.java
index ab3d0c2a6b71..f5a04089d462 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/MongoDBResources.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/MongoDBResources.java
@@ -34,7 +34,7 @@ public interface MongoDBResources {
/**
* Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -45,7 +45,7 @@ public interface MongoDBResources {
/**
* Lists the MongoDB databases under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
* @return the observable for the request
@@ -55,7 +55,7 @@ public interface MongoDBResources {
/**
* Deletes an existing Azure Cosmos DB MongoDB database.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -66,7 +66,7 @@ public interface MongoDBResources {
/**
* Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the provided name.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -77,7 +77,7 @@ public interface MongoDBResources {
/**
* Update RUs per second of the an Azure Cosmos DB MongoDB database.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -86,10 +86,32 @@ public interface MongoDBResources {
*/
Observable updateMongoDBDatabaseThroughputAsync(String resourceGroupName, String accountName, String databaseName, ThroughputSettingsUpdateParameters updateThroughputParameters);
+ /**
+ * 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
+ * @return the observable for the request
+ */
+ Observable migrateMongoDBDatabaseToAutoscaleAsync(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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable migrateMongoDBDatabaseToManualThroughputAsync(String resourceGroupName, String accountName, String databaseName);
+
/**
* Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -101,7 +123,7 @@ public interface MongoDBResources {
/**
* Update the RUs per second of an Azure Cosmos DB MongoDB collection.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -111,10 +133,34 @@ public interface MongoDBResources {
*/
Observable updateMongoDBCollectionThroughputAsync(String resourceGroupName, String accountName, String databaseName, String collectionName, ThroughputSettingsUpdateParameters updateThroughputParameters);
+ /**
+ * 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
+ * @return the observable for the request
+ */
+ Observable migrateMongoDBCollectionToAutoscaleAsync(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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable migrateMongoDBCollectionToManualThroughputAsync(String resourceGroupName, String accountName, String databaseName, String collectionName);
+
/**
* Gets the MongoDB collection under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -126,7 +172,7 @@ public interface MongoDBResources {
/**
* Lists the MongoDB collection under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -137,7 +183,7 @@ public interface MongoDBResources {
/**
* Deletes an existing Azure Cosmos DB MongoDB Collection.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/NotebookWorkspace.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/NotebookWorkspace.java
index 0a342eed6d34..b1464df26a66 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/NotebookWorkspace.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/NotebookWorkspace.java
@@ -69,7 +69,7 @@ interface Blank extends WithDatabaseAccount {
interface WithDatabaseAccount {
/**
* Specifies resourceGroupName, accountName.
- * @param resourceGroupName Name of an Azure resource group
+ * @param resourceGroupName The name of the resource group. The name is case insensitive
* @param accountName Cosmos DB database account name
* @return the next definition stage
*/
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/NotebookWorkspaces.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/NotebookWorkspaces.java
index e30defdd4939..121647b434be 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/NotebookWorkspaces.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/NotebookWorkspaces.java
@@ -21,7 +21,7 @@ public interface NotebookWorkspaces extends SupportsCreating {
/**
* 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 Name of an Azure resource group.
+ * @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.
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/Percentiles.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/Percentiles.java
index 0cc2ae0a70e3..3a2876194db3 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/Percentiles.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/Percentiles.java
@@ -19,7 +19,7 @@ public interface Percentiles extends HasInner {
/**
* 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 Name of an Azure resource group.
+ * @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
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/PrivateEndpointConnection.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/PrivateEndpointConnection.java
index 5b1e6771b85d..da125104ed80 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/PrivateEndpointConnection.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/PrivateEndpointConnection.java
@@ -22,6 +22,11 @@
* Type representing PrivateEndpointConnection.
*/
public interface PrivateEndpointConnection extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the groupId value.
+ */
+ String groupId();
+
/**
* @return the id value.
*/
@@ -42,6 +47,11 @@ public interface PrivateEndpointConnection extends HasInner, DefinitionStages.WithPrivateEndpoint, DefinitionStages.WithPrivateLinkServiceConnectionState {
+ interface WithCreate extends Creatable, DefinitionStages.WithGroupId, DefinitionStages.WithPrivateEndpoint, DefinitionStages.WithPrivateLinkServiceConnectionState, DefinitionStages.WithProvisioningState {
}
}
/**
* The template for a PrivateEndpointConnection update operation, containing all the settings that can be modified.
*/
- interface Update extends Appliable, UpdateStages.WithPrivateEndpoint, UpdateStages.WithPrivateLinkServiceConnectionState {
+ interface Update extends Appliable, UpdateStages.WithGroupId, UpdateStages.WithPrivateEndpoint, UpdateStages.WithPrivateLinkServiceConnectionState, UpdateStages.WithProvisioningState {
}
/**
* Grouping of PrivateEndpointConnection update stages.
*/
interface UpdateStages {
+ /**
+ * The stage of the privateendpointconnection update allowing to specify GroupId.
+ */
+ interface WithGroupId {
+ /**
+ * Specifies groupId.
+ * @param groupId Group id of the private endpoint
+ * @return the next update stage
+ */
+ Update withGroupId(String groupId);
+ }
+
/**
* The stage of the privateendpointconnection update allowing to specify PrivateEndpoint.
*/
@@ -142,5 +188,17 @@ interface WithPrivateLinkServiceConnectionState {
Update withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState);
}
+ /**
+ * The stage of the privateendpointconnection update allowing to specify ProvisioningState.
+ */
+ interface WithProvisioningState {
+ /**
+ * Specifies provisioningState.
+ * @param provisioningState Provisioning state of the private endpoint
+ * @return the next update stage
+ */
+ Update withProvisioningState(String provisioningState);
+ }
+
}
}
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/PrivateLinkResource.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/PrivateLinkResource.java
index 1b170de7dadc..d7e8f1fe9f00 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/PrivateLinkResource.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/PrivateLinkResource.java
@@ -40,6 +40,11 @@ public interface PrivateLinkResource extends HasInner,
*/
List requiredMembers();
+ /**
+ * @return the requiredZoneNames value.
+ */
+ List requiredZoneNames();
+
/**
* @return the type value.
*/
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/PrivateLinkResources.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/PrivateLinkResources.java
index 1c2a8cbb2534..b1d561168e65 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/PrivateLinkResources.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/PrivateLinkResources.java
@@ -19,7 +19,7 @@ public interface PrivateLinkResources extends HasInner updateSqlDatabaseThroughputAsync(String resourceGroupName, String accountName, String databaseName, ThroughputSettingsUpdateParameters updateThroughputParameters);
+ /**
+ * 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
+ * @return the observable for the request
+ */
+ Observable migrateSqlDatabaseToAutoscaleAsync(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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable migrateSqlDatabaseToManualThroughputAsync(String resourceGroupName, String accountName, String databaseName);
+
/**
* Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -125,7 +147,7 @@ public interface SqlResources {
/**
* Update RUs per second of an Azure Cosmos DB SQL container.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -135,10 +157,34 @@ public interface SqlResources {
*/
Observable updateSqlContainerThroughputAsync(String resourceGroupName, String accountName, String databaseName, String containerName, ThroughputSettingsUpdateParameters updateThroughputParameters);
+ /**
+ * 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
+ * @return the observable for the request
+ */
+ Observable migrateSqlContainerToAutoscaleAsync(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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable migrateSqlContainerToManualThroughputAsync(String resourceGroupName, String accountName, String databaseName, String containerName);
+
/**
* Gets the SQL container under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -150,7 +196,7 @@ public interface SqlResources {
/**
* Lists the SQL container under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -161,7 +207,7 @@ public interface SqlResources {
/**
* Deletes an existing Azure Cosmos DB SQL container.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -173,7 +219,7 @@ public interface SqlResources {
/**
* Gets the SQL storedProcedure under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -186,7 +232,7 @@ public interface SqlResources {
/**
* Lists the SQL storedProcedure under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -198,7 +244,7 @@ public interface SqlResources {
/**
* Deletes an existing Azure Cosmos DB SQL storedProcedure.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -211,7 +257,7 @@ public interface SqlResources {
/**
* Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -224,7 +270,7 @@ public interface SqlResources {
/**
* Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -236,7 +282,7 @@ public interface SqlResources {
/**
* Deletes an existing Azure Cosmos DB SQL userDefinedFunction.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -249,7 +295,7 @@ public interface SqlResources {
/**
* Gets the SQL trigger under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -262,7 +308,7 @@ public interface SqlResources {
/**
* Lists the SQL trigger under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -274,7 +320,7 @@ public interface SqlResources {
/**
* Deletes an existing Azure Cosmos DB SQL trigger.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/SqlStoredProcedureGetResults.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/SqlStoredProcedureGetResults.java
index 85fd23f123a8..04897b5c6d92 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/SqlStoredProcedureGetResults.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/SqlStoredProcedureGetResults.java
@@ -75,7 +75,7 @@ interface Blank extends WithContainer {
interface WithContainer {
/**
* Specifies resourceGroupName, accountName, databaseName, containerName.
- * @param resourceGroupName Name of an Azure resource group
+ * @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
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/SqlTriggerGetResults.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/SqlTriggerGetResults.java
index 434b01510d4f..664ee0566370 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/SqlTriggerGetResults.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/SqlTriggerGetResults.java
@@ -75,7 +75,7 @@ interface Blank extends WithContainer {
interface WithContainer {
/**
* Specifies resourceGroupName, accountName, databaseName, containerName.
- * @param resourceGroupName Name of an Azure resource group
+ * @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
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/SqlUserDefinedFunctionGetResults.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/SqlUserDefinedFunctionGetResults.java
index 93a8cfe5cd01..5570971a3b16 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/SqlUserDefinedFunctionGetResults.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/SqlUserDefinedFunctionGetResults.java
@@ -75,7 +75,7 @@ interface Blank extends WithContainer {
interface WithContainer {
/**
* Specifies resourceGroupName, accountName, databaseName, containerName.
- * @param resourceGroupName Name of an Azure resource group
+ * @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
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/TableGetResults.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/TableGetResults.java
index 9525e6b76471..ef7da6e6050f 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/TableGetResults.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/TableGetResults.java
@@ -81,7 +81,7 @@ interface Blank extends WithDatabaseAccount {
interface WithDatabaseAccount {
/**
* Specifies resourceGroupName, accountName.
- * @param resourceGroupName Name of an Azure resource group
+ * @param resourceGroupName The name of the resource group. The name is case insensitive
* @param accountName Cosmos DB database account name
* @return the next definition stage
*/
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/TableResources.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/TableResources.java
index 4b97875dc7ad..a1f5fab96cbd 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/TableResources.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/TableResources.java
@@ -26,7 +26,7 @@ public interface TableResources {
/**
* Gets the Tables under an existing Azure Cosmos DB database account with the provided name.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -37,7 +37,7 @@ public interface TableResources {
/**
* Lists the Tables under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
* @return the observable for the request
@@ -47,7 +47,7 @@ public interface TableResources {
/**
* Deletes an existing Azure Cosmos DB Table.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -58,7 +58,7 @@ public interface TableResources {
/**
* Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -69,7 +69,7 @@ public interface TableResources {
/**
* Update RUs per second of an Azure Cosmos DB Table.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -78,4 +78,26 @@ public interface TableResources {
*/
Observable updateTableThroughputAsync(String resourceGroupName, String accountName, String tableName, ThroughputSettingsUpdateParameters updateThroughputParameters);
+ /**
+ * 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
+ * @return the observable for the request
+ */
+ Observable migrateTableToAutoscaleAsync(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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable migrateTableToManualThroughputAsync(String resourceGroupName, String accountName, String tableName);
+
}
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/CassandraResourcesImpl.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/CassandraResourcesImpl.java
index 97a549ca4804..8b50decff5df 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/CassandraResourcesImpl.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/CassandraResourcesImpl.java
@@ -139,6 +139,30 @@ public ThroughputSettingsGetResults call(ThroughputSettingsGetResultsInner inner
});
}
+ @Override
+ public Observable migrateCassandraKeyspaceToAutoscaleAsync(String resourceGroupName, String accountName, String keyspaceName) {
+ CassandraResourcesInner client = this.inner();
+ return client.migrateCassandraKeyspaceToAutoscaleAsync(resourceGroupName, accountName, keyspaceName)
+ .map(new Func1() {
+ @Override
+ public ThroughputSettingsGetResults call(ThroughputSettingsGetResultsInner inner) {
+ return new ThroughputSettingsGetResultsImpl(inner, manager());
+ }
+ });
+ }
+
+ @Override
+ public Observable migrateCassandraKeyspaceToManualThroughputAsync(String resourceGroupName, String accountName, String keyspaceName) {
+ CassandraResourcesInner client = this.inner();
+ return client.migrateCassandraKeyspaceToManualThroughputAsync(resourceGroupName, accountName, keyspaceName)
+ .map(new Func1() {
+ @Override
+ public ThroughputSettingsGetResults call(ThroughputSettingsGetResultsInner inner) {
+ return new ThroughputSettingsGetResultsImpl(inner, manager());
+ }
+ });
+ }
+
@Override
public Observable getCassandraTableThroughputAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) {
CassandraResourcesInner client = this.inner();
@@ -163,6 +187,30 @@ public ThroughputSettingsGetResults call(ThroughputSettingsGetResultsInner inner
});
}
+ @Override
+ public Observable migrateCassandraTableToAutoscaleAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) {
+ CassandraResourcesInner client = this.inner();
+ return client.migrateCassandraTableToAutoscaleAsync(resourceGroupName, accountName, keyspaceName, tableName)
+ .map(new Func1() {
+ @Override
+ public ThroughputSettingsGetResults call(ThroughputSettingsGetResultsInner inner) {
+ return new ThroughputSettingsGetResultsImpl(inner, manager());
+ }
+ });
+ }
+
+ @Override
+ public Observable migrateCassandraTableToManualThroughputAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) {
+ CassandraResourcesInner client = this.inner();
+ return client.migrateCassandraTableToManualThroughputAsync(resourceGroupName, accountName, keyspaceName, tableName)
+ .map(new Func1() {
+ @Override
+ public ThroughputSettingsGetResults call(ThroughputSettingsGetResultsInner inner) {
+ return new ThroughputSettingsGetResultsImpl(inner, manager());
+ }
+ });
+ }
+
@Override
public Observable getCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) {
CassandraResourcesInner client = this.inner();
diff --git a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/CassandraResourcesInner.java b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/CassandraResourcesInner.java
index bc54117afb97..e2b40db38f9f 100644
--- a/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/CassandraResourcesInner.java
+++ b/sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/CassandraResourcesInner.java
@@ -27,6 +27,7 @@
import retrofit2.http.Headers;
import retrofit2.http.HTTP;
import retrofit2.http.Path;
+import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Query;
import retrofit2.Response;
@@ -95,6 +96,22 @@ interface CassandraResourcesService {
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default")
Observable> beginUpdateCassandraKeyspaceThroughput(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Query("api-version") String apiVersion, @Body ThroughputSettingsUpdateParameters updateThroughputParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2020_03_01.CassandraResources migrateCassandraKeyspaceToAutoscale" })
+ @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToAutoscale")
+ Observable> migrateCassandraKeyspaceToAutoscale(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2020_03_01.CassandraResources beginMigrateCassandraKeyspaceToAutoscale" })
+ @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToAutoscale")
+ Observable> beginMigrateCassandraKeyspaceToAutoscale(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2020_03_01.CassandraResources migrateCassandraKeyspaceToManualThroughput" })
+ @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToManualThroughput")
+ Observable> migrateCassandraKeyspaceToManualThroughput(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2020_03_01.CassandraResources beginMigrateCassandraKeyspaceToManualThroughput" })
+ @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToManualThroughput")
+ Observable> beginMigrateCassandraKeyspaceToManualThroughput(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2020_03_01.CassandraResources listCassandraTables" })
@GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables")
Observable> listCassandraTables(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@@ -131,12 +148,28 @@ interface CassandraResourcesService {
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default")
Observable> beginUpdateCassandraTableThroughput(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Path("tableName") String tableName, @Query("api-version") String apiVersion, @Body ThroughputSettingsUpdateParameters updateThroughputParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2020_03_01.CassandraResources migrateCassandraTableToAutoscale" })
+ @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale")
+ Observable> migrateCassandraTableToAutoscale(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Path("tableName") String tableName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2020_03_01.CassandraResources beginMigrateCassandraTableToAutoscale" })
+ @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale")
+ Observable> beginMigrateCassandraTableToAutoscale(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Path("tableName") String tableName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2020_03_01.CassandraResources migrateCassandraTableToManualThroughput" })
+ @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput")
+ Observable> migrateCassandraTableToManualThroughput(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Path("tableName") String tableName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.cosmosdb.v2020_03_01.CassandraResources beginMigrateCassandraTableToManualThroughput" })
+ @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput")
+ Observable> beginMigrateCassandraTableToManualThroughput(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("keyspaceName") String keyspaceName, @Path("tableName") String tableName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
}
/**
* Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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 CloudException thrown if the request is rejected by server
@@ -150,7 +183,7 @@ public List listCassandraKeyspaces(String reso
/**
* Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName Cosmos DB database account name.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -163,7 +196,7 @@ public ServiceFuture> listCassandraKeyspa
/**
* Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
* @return the observable to the List<CassandraKeyspaceGetResultsInner> object
@@ -180,7 +213,7 @@ public List call(ServiceResponse> listCassandr
/**
* Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -240,7 +273,7 @@ public CassandraKeyspaceGetResultsInner getCassandraKeyspace(String resourceGrou
/**
* Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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 serviceCallback the async ServiceCallback to handle successful and failed responses.
@@ -254,7 +287,7 @@ public ServiceFuture getCassandraKeyspaceAsync
/**
* Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -272,7 +305,7 @@ public CassandraKeyspaceGetResultsInner call(ServiceResponse getCassandraKeyspaceDe
/**
* Create or update an Azure Cosmos DB Cassandra keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -332,7 +365,7 @@ public CassandraKeyspaceGetResultsInner createUpdateCassandraKeyspace(String res
/**
* Create or update an Azure Cosmos DB Cassandra keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -347,7 +380,7 @@ public ServiceFuture createUpdateCassandraKeys
/**
* Create or update an Azure Cosmos DB Cassandra keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -366,7 +399,7 @@ public CassandraKeyspaceGetResultsInner call(ServiceResponse> createUpdat
/**
* Create or update an Azure Cosmos DB Cassandra keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -414,7 +447,7 @@ public CassandraKeyspaceGetResultsInner beginCreateUpdateCassandraKeyspace(Strin
/**
* Create or update an Azure Cosmos DB Cassandra keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -429,7 +462,7 @@ public ServiceFuture beginCreateUpdateCassandr
/**
* Create or update an Azure Cosmos DB Cassandra keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -448,7 +481,7 @@ public CassandraKeyspaceGetResultsInner call(ServiceResponse beginCreateUpdateCassa
/**
* Deletes an existing Azure Cosmos DB Cassandra keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -512,7 +545,7 @@ public void deleteCassandraKeyspace(String resourceGroupName, String accountName
/**
* Deletes an existing Azure Cosmos DB Cassandra keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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 serviceCallback the async ServiceCallback to handle successful and failed responses.
@@ -526,7 +559,7 @@ public ServiceFuture deleteCassandraKeyspaceAsync(String resourceGroupName
/**
* Deletes an existing Azure Cosmos DB Cassandra keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -544,7 +577,7 @@ public Void call(ServiceResponse response) {
/**
* Deletes an existing Azure Cosmos DB Cassandra keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -571,7 +604,7 @@ public Observable> deleteCassandraKeyspaceWithServiceRespo
/**
* Deletes an existing Azure Cosmos DB Cassandra keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -585,7 +618,7 @@ public void beginDeleteCassandraKeyspace(String resourceGroupName, String accoun
/**
* Deletes an existing Azure Cosmos DB Cassandra keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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 serviceCallback the async ServiceCallback to handle successful and failed responses.
@@ -599,7 +632,7 @@ public ServiceFuture beginDeleteCassandraKeyspaceAsync(String resourceGrou
/**
* Deletes an existing Azure Cosmos DB Cassandra keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -617,7 +650,7 @@ public Void call(ServiceResponse response) {
/**
* Deletes an existing Azure Cosmos DB Cassandra keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -662,7 +695,7 @@ private ServiceResponse beginDeleteCassandraKeyspaceDelegate(Response getCassandraKeyspaceThro
/**
* Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
@@ -709,7 +742,7 @@ public ThroughputSettingsGetResultsInner call(ServiceResponse getCassandraKeyspaceT
/**
* Update RUs per second of an Azure Cosmos DB Cassandra Keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -769,7 +802,7 @@ public ThroughputSettingsGetResultsInner updateCassandraKeyspaceThroughput(Strin
/**
* Update RUs per second of an Azure Cosmos DB Cassandra Keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -784,7 +817,7 @@ public ServiceFuture updateCassandraKeyspaceT
/**
* Update RUs per second of an Azure Cosmos DB Cassandra Keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -803,7 +836,7 @@ public ThroughputSettingsGetResultsInner call(ServiceResponse> updateCass
/**
* Update RUs per second of an Azure Cosmos DB Cassandra Keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -851,7 +884,7 @@ public ThroughputSettingsGetResultsInner beginUpdateCassandraKeyspaceThroughput(
/**
* Update RUs per second of an Azure Cosmos DB Cassandra Keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -866,7 +899,7 @@ public ServiceFuture beginUpdateCassandraKeys
/**
* Update RUs per second of an Azure Cosmos DB Cassandra Keyspace.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -885,7 +918,7 @@ public ThroughputSettingsGetResultsInner call(ServiceResponse beginUpdateCassandraK
}
/**
- * Lists the Cassandra table under an existing Azure Cosmos DB database account.
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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 CloudException 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<CassandraTableGetResultsInner> object if successful.
+ * @return the ThroughputSettingsGetResultsInner object if successful.
*/
- public List listCassandraTables(String resourceGroupName, String accountName, String keyspaceName) {
- return listCassandraTablesWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName).toBlocking().single().body();
+ public ThroughputSettingsGetResultsInner migrateCassandraKeyspaceToAutoscale(String resourceGroupName, String accountName, String keyspaceName) {
+ return migrateCassandraKeyspaceToAutoscaleWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName).toBlocking().last().body();
}
/**
- * Lists the Cassandra table under an existing Azure Cosmos DB database account.
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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 serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
- public ServiceFuture> listCassandraTablesAsync(String resourceGroupName, String accountName, String keyspaceName, final ServiceCallback> serviceCallback) {
- return ServiceFuture.fromResponse(listCassandraTablesWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName), serviceCallback);
+ public ServiceFuture migrateCassandraKeyspaceToAutoscaleAsync(String resourceGroupName, String accountName, String keyspaceName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(migrateCassandraKeyspaceToAutoscaleWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName), serviceCallback);
}
/**
- * Lists the Cassandra table under an existing Azure Cosmos DB database account.
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
- * @return the observable to the List<CassandraTableGetResultsInner> object
+ * @return the observable for the request
*/
- public Observable> listCassandraTablesAsync(String resourceGroupName, String accountName, String keyspaceName) {
- return listCassandraTablesWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName).map(new Func1>, List>() {
+ public Observable migrateCassandraKeyspaceToAutoscaleAsync(String resourceGroupName, String accountName, String keyspaceName) {
+ return migrateCassandraKeyspaceToAutoscaleWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName).map(new Func1, ThroughputSettingsGetResultsInner>() {
@Override
- public List call(ServiceResponse> response) {
+ public ThroughputSettingsGetResultsInner call(ServiceResponse response) {
return response.body();
}
});
}
/**
- * Lists the Cassandra table under an existing Azure Cosmos DB database account.
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
- * @return the observable to the List<CassandraTableGetResultsInner> object
+ * @return the observable for the request
*/
- public Observable>> listCassandraTablesWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName) {
+ public Observable> migrateCassandraKeyspaceToAutoscaleWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
@@ -1002,93 +1035,67 @@ public Observable>> listCass
throw new IllegalArgumentException("Parameter keyspaceName is required and cannot be null.");
}
final String apiVersion = "2020-03-01";
- return service.listCassandraTables(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent())
- .flatMap(new Func1, Observable>>>() {
- @Override
- public Observable>> call(Response response) {
- try {
- ServiceResponse> result = listCassandraTablesDelegate(response);
- List items = null;
- if (result.body() != null) {
- items = result.body().items();
- }
- ServiceResponse> clientResponse = new ServiceResponse>(items, result.response());
- return Observable.just(clientResponse);
- } catch (Throwable t) {
- return Observable.error(t);
- }
- }
- });
- }
-
- private ServiceResponse> listCassandraTablesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
- return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter())
- .register(200, new TypeToken>() { }.getType())
- .registerError(CloudException.class)
- .build(response);
+ Observable> observable = service.migrateCassandraKeyspaceToAutoscale(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent());
+ return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType());
}
/**
- * Gets the Cassandra table under an existing Azure Cosmos DB database account.
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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 CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
- * @return the CassandraTableGetResultsInner object if successful.
+ * @return the ThroughputSettingsGetResultsInner object if successful.
*/
- public CassandraTableGetResultsInner getCassandraTable(String resourceGroupName, String accountName, String keyspaceName, String tableName) {
- return getCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName).toBlocking().single().body();
+ public ThroughputSettingsGetResultsInner beginMigrateCassandraKeyspaceToAutoscale(String resourceGroupName, String accountName, String keyspaceName) {
+ return beginMigrateCassandraKeyspaceToAutoscaleWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName).toBlocking().single().body();
}
/**
- * Gets the Cassandra table under an existing Azure Cosmos DB database account.
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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 serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
- public ServiceFuture getCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, final ServiceCallback serviceCallback) {
- return ServiceFuture.fromResponse(getCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName), serviceCallback);
+ public ServiceFuture beginMigrateCassandraKeyspaceToAutoscaleAsync(String resourceGroupName, String accountName, String keyspaceName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(beginMigrateCassandraKeyspaceToAutoscaleWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName), serviceCallback);
}
/**
- * Gets the Cassandra table under an existing Azure Cosmos DB database account.
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
- * @return the observable to the CassandraTableGetResultsInner object
+ * @return the observable to the ThroughputSettingsGetResultsInner object
*/
- public Observable getCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) {
- return getCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName).map(new Func1, CassandraTableGetResultsInner>() {
+ public Observable beginMigrateCassandraKeyspaceToAutoscaleAsync(String resourceGroupName, String accountName, String keyspaceName) {
+ return beginMigrateCassandraKeyspaceToAutoscaleWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName).map(new Func1, ThroughputSettingsGetResultsInner>() {
@Override
- public CassandraTableGetResultsInner call(ServiceResponse response) {
+ public ThroughputSettingsGetResultsInner call(ServiceResponse response) {
return response.body();
}
});
}
/**
- * Gets the Cassandra table under an existing Azure Cosmos DB database account.
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
- * @return the observable to the CassandraTableGetResultsInner object
+ * @return the observable to the ThroughputSettingsGetResultsInner object
*/
- public Observable> getCassandraTableWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) {
+ public Observable> beginMigrateCassandraKeyspaceToAutoscaleWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
@@ -1101,16 +1108,13 @@ public Observable> getCassandraTa
if (keyspaceName == null) {
throw new IllegalArgumentException("Parameter keyspaceName is required and cannot be null.");
}
- if (tableName == null) {
- throw new IllegalArgumentException("Parameter tableName is required and cannot be null.");
- }
final String apiVersion = "2020-03-01";
- return service.getCassandraTable(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, tableName, apiVersion, this.client.acceptLanguage(), this.client.userAgent())
- .flatMap(new Func1, Observable>>() {
+ return service.beginMigrateCassandraKeyspaceToAutoscale(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
@Override
- public Observable> call(Response response) {
+ public Observable> call(Response response) {
try {
- ServiceResponse clientResponse = getCassandraTableDelegate(response);
+ ServiceResponse clientResponse = beginMigrateCassandraKeyspaceToAutoscaleDelegate(response);
return Observable.just(clientResponse);
} catch (Throwable t) {
return Observable.error(t);
@@ -1119,78 +1123,71 @@ public Observable> call(Response<
});
}
- private ServiceResponse getCassandraTableDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
- return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
- .register(200, new TypeToken() { }.getType())
+ private ServiceResponse beginMigrateCassandraKeyspaceToAutoscaleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken() { }.getType())
+ .register(202, new TypeToken() { }.getType())
.registerError(CloudException.class)
.build(response);
}
/**
- * Create or update an Azure Cosmos DB Cassandra Table.
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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 CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
- * @return the CassandraTableGetResultsInner object if successful.
+ * @return the ThroughputSettingsGetResultsInner object if successful.
*/
- public CassandraTableGetResultsInner createUpdateCassandraTable(String resourceGroupName, String accountName, String keyspaceName, String tableName, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) {
- return createUpdateCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName, createUpdateCassandraTableParameters).toBlocking().last().body();
+ public ThroughputSettingsGetResultsInner migrateCassandraKeyspaceToManualThroughput(String resourceGroupName, String accountName, String keyspaceName) {
+ return migrateCassandraKeyspaceToManualThroughputWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName).toBlocking().last().body();
}
/**
- * Create or update an Azure Cosmos DB Cassandra Table.
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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 serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
- public ServiceFuture createUpdateCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters, final ServiceCallback serviceCallback) {
- return ServiceFuture.fromResponse(createUpdateCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName, createUpdateCassandraTableParameters), serviceCallback);
+ public ServiceFuture migrateCassandraKeyspaceToManualThroughputAsync(String resourceGroupName, String accountName, String keyspaceName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(migrateCassandraKeyspaceToManualThroughputWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName), serviceCallback);
}
/**
- * Create or update an Azure Cosmos DB Cassandra Table.
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
* @return the observable for the request
*/
- public Observable createUpdateCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) {
- return createUpdateCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName, createUpdateCassandraTableParameters).map(new Func1, CassandraTableGetResultsInner>() {
+ public Observable migrateCassandraKeyspaceToManualThroughputAsync(String resourceGroupName, String accountName, String keyspaceName) {
+ return migrateCassandraKeyspaceToManualThroughputWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName).map(new Func1, ThroughputSettingsGetResultsInner>() {
@Override
- public CassandraTableGetResultsInner call(ServiceResponse response) {
+ public ThroughputSettingsGetResultsInner call(ServiceResponse response) {
return response.body();
}
});
}
/**
- * Create or update an Azure Cosmos DB Cassandra Table.
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
* @return the observable for the request
*/
- public Observable> createUpdateCassandraTableWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) {
+ public Observable> migrateCassandraKeyspaceToManualThroughputWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
@@ -1203,83 +1200,68 @@ public Observable> createUpdateCa
if (keyspaceName == null) {
throw new IllegalArgumentException("Parameter keyspaceName is required and cannot be null.");
}
- if (tableName == null) {
- throw new IllegalArgumentException("Parameter tableName is required and cannot be null.");
- }
- if (createUpdateCassandraTableParameters == null) {
- throw new IllegalArgumentException("Parameter createUpdateCassandraTableParameters is required and cannot be null.");
- }
- Validator.validate(createUpdateCassandraTableParameters);
final String apiVersion = "2020-03-01";
- Observable> observable = service.createUpdateCassandraTable(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, tableName, apiVersion, createUpdateCassandraTableParameters, this.client.acceptLanguage(), this.client.userAgent());
- return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType());
+ Observable> observable = service.migrateCassandraKeyspaceToManualThroughput(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent());
+ return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType());
}
/**
- * Create or update an Azure Cosmos DB Cassandra Table.
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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 CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
- * @return the CassandraTableGetResultsInner object if successful.
+ * @return the ThroughputSettingsGetResultsInner object if successful.
*/
- public CassandraTableGetResultsInner beginCreateUpdateCassandraTable(String resourceGroupName, String accountName, String keyspaceName, String tableName, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) {
- return beginCreateUpdateCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName, createUpdateCassandraTableParameters).toBlocking().single().body();
+ public ThroughputSettingsGetResultsInner beginMigrateCassandraKeyspaceToManualThroughput(String resourceGroupName, String accountName, String keyspaceName) {
+ return beginMigrateCassandraKeyspaceToManualThroughputWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName).toBlocking().single().body();
}
/**
- * Create or update an Azure Cosmos DB Cassandra Table.
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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 serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
- public ServiceFuture beginCreateUpdateCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters, final ServiceCallback serviceCallback) {
- return ServiceFuture.fromResponse(beginCreateUpdateCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName, createUpdateCassandraTableParameters), serviceCallback);
+ public ServiceFuture beginMigrateCassandraKeyspaceToManualThroughputAsync(String resourceGroupName, String accountName, String keyspaceName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(beginMigrateCassandraKeyspaceToManualThroughputWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName), serviceCallback);
}
/**
- * Create or update an Azure Cosmos DB Cassandra Table.
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
- * @return the observable to the CassandraTableGetResultsInner object
+ * @return the observable to the ThroughputSettingsGetResultsInner object
*/
- public Observable beginCreateUpdateCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) {
- return beginCreateUpdateCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName, createUpdateCassandraTableParameters).map(new Func1, CassandraTableGetResultsInner>() {
+ public Observable beginMigrateCassandraKeyspaceToManualThroughputAsync(String resourceGroupName, String accountName, String keyspaceName) {
+ return beginMigrateCassandraKeyspaceToManualThroughputWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName).map(new Func1, ThroughputSettingsGetResultsInner>() {
@Override
- public CassandraTableGetResultsInner call(ServiceResponse response) {
+ public ThroughputSettingsGetResultsInner call(ServiceResponse response) {
return response.body();
}
});
}
/**
- * Create or update an Azure Cosmos DB Cassandra Table.
+ * Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
- * @return the observable to the CassandraTableGetResultsInner object
+ * @return the observable to the ThroughputSettingsGetResultsInner object
*/
- public Observable> beginCreateUpdateCassandraTableWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) {
+ public Observable> beginMigrateCassandraKeyspaceToManualThroughputWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
@@ -1292,20 +1274,13 @@ public Observable> beginCreateUpd
if (keyspaceName == null) {
throw new IllegalArgumentException("Parameter keyspaceName is required and cannot be null.");
}
- if (tableName == null) {
- throw new IllegalArgumentException("Parameter tableName is required and cannot be null.");
- }
- if (createUpdateCassandraTableParameters == null) {
- throw new IllegalArgumentException("Parameter createUpdateCassandraTableParameters is required and cannot be null.");
- }
- Validator.validate(createUpdateCassandraTableParameters);
final String apiVersion = "2020-03-01";
- return service.beginCreateUpdateCassandraTable(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, tableName, apiVersion, createUpdateCassandraTableParameters, this.client.acceptLanguage(), this.client.userAgent())
- .flatMap(new Func1, Observable>>() {
+ return service.beginMigrateCassandraKeyspaceToManualThroughput(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
@Override
- public Observable> call(Response response) {
+ public Observable> call(Response response) {
try {
- ServiceResponse clientResponse = beginCreateUpdateCassandraTableDelegate(response);
+ ServiceResponse clientResponse = beginMigrateCassandraKeyspaceToManualThroughputDelegate(response);
return Observable.just(clientResponse);
} catch (Throwable t) {
return Observable.error(t);
@@ -1314,74 +1289,71 @@ public Observable> call(Response<
});
}
- private ServiceResponse beginCreateUpdateCassandraTableDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
- return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
- .register(200, new TypeToken() { }.getType())
+ private ServiceResponse beginMigrateCassandraKeyspaceToManualThroughputDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken() { }.getType())
.register(202, new TypeToken() { }.getType())
.registerError(CloudException.class)
.build(response);
}
/**
- * Deletes an existing Azure Cosmos DB Cassandra table.
+ * Lists the Cassandra table under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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 CloudException 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<CassandraTableGetResultsInner> object if successful.
*/
- public void deleteCassandraTable(String resourceGroupName, String accountName, String keyspaceName, String tableName) {
- deleteCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName).toBlocking().last().body();
+ public List listCassandraTables(String resourceGroupName, String accountName, String keyspaceName) {
+ return listCassandraTablesWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName).toBlocking().single().body();
}
/**
- * Deletes an existing Azure Cosmos DB Cassandra table.
+ * Lists the Cassandra table under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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 serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
- public ServiceFuture deleteCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, final ServiceCallback serviceCallback) {
- return ServiceFuture.fromResponse(deleteCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName), serviceCallback);
+ public ServiceFuture> listCassandraTablesAsync(String resourceGroupName, String accountName, String keyspaceName, final ServiceCallback> serviceCallback) {
+ return ServiceFuture.fromResponse(listCassandraTablesWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName), serviceCallback);
}
/**
- * Deletes an existing Azure Cosmos DB Cassandra table.
+ * Lists the Cassandra table under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
- * @return the observable for the request
+ * @return the observable to the List<CassandraTableGetResultsInner> object
*/
- public Observable deleteCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) {
- return deleteCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName).map(new Func1, Void>() {
+ public Observable> listCassandraTablesAsync(String resourceGroupName, String accountName, String keyspaceName) {
+ return listCassandraTablesWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName).map(new Func1>, List>() {
@Override
- public Void call(ServiceResponse response) {
+ public List call(ServiceResponse> response) {
return response.body();
}
});
}
/**
- * Deletes an existing Azure Cosmos DB Cassandra table.
+ * Lists the Cassandra table under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
- * @return the observable for the request
+ * @return the observable to the List<CassandraTableGetResultsInner> object
*/
- public Observable> deleteCassandraTableWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) {
+ public Observable>> listCassandraTablesWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
@@ -1394,33 +1366,53 @@ public Observable> deleteCassandraTableWithServiceResponse
if (keyspaceName == null) {
throw new IllegalArgumentException("Parameter keyspaceName is required and cannot be null.");
}
- if (tableName == null) {
- throw new IllegalArgumentException("Parameter tableName is required and cannot be null.");
- }
final String apiVersion = "2020-03-01";
- Observable> observable = service.deleteCassandraTable(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, tableName, apiVersion, this.client.acceptLanguage(), this.client.userAgent());
- return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType());
+ return service.listCassandraTables(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>>() {
+ @Override
+ public Observable>> call(Response response) {
+ try {
+ ServiceResponse> result = listCassandraTablesDelegate(response);
+ List items = null;
+ if (result.body() != null) {
+ items = result.body().items();
+ }
+ ServiceResponse> clientResponse = new ServiceResponse>(items, result.response());
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse> listCassandraTablesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken>() { }.getType())
+ .registerError(CloudException.class)
+ .build(response);
}
/**
- * Deletes an existing Azure Cosmos DB Cassandra table.
+ * Gets the Cassandra table under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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 CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the CassandraTableGetResultsInner object if successful.
*/
- public void beginDeleteCassandraTable(String resourceGroupName, String accountName, String keyspaceName, String tableName) {
- beginDeleteCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName).toBlocking().single().body();
+ public CassandraTableGetResultsInner getCassandraTable(String resourceGroupName, String accountName, String keyspaceName, String tableName) {
+ return getCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName).toBlocking().single().body();
}
/**
- * Deletes an existing Azure Cosmos DB Cassandra table.
+ * Gets the Cassandra table under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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.
@@ -1428,40 +1420,614 @@ public void beginDeleteCassandraTable(String resourceGroupName, String accountNa
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
- public ServiceFuture beginDeleteCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, final ServiceCallback serviceCallback) {
- return ServiceFuture.fromResponse(beginDeleteCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName), serviceCallback);
+ public ServiceFuture getCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(getCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName), serviceCallback);
}
/**
- * Deletes an existing Azure Cosmos DB Cassandra table.
+ * Gets the Cassandra table under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
- * @return the {@link ServiceResponse} object if successful.
+ * @return the observable to the CassandraTableGetResultsInner object
*/
- public Observable beginDeleteCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) {
- return beginDeleteCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName).map(new Func1, Void>() {
+ public Observable getCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) {
+ return getCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName).map(new Func1, CassandraTableGetResultsInner>() {
@Override
- public Void call(ServiceResponse response) {
+ public CassandraTableGetResultsInner call(ServiceResponse response) {
return response.body();
}
});
}
/**
- * Deletes an existing Azure Cosmos DB Cassandra table.
+ * Gets the Cassandra table under an existing Azure Cosmos DB database account.
*
- * @param resourceGroupName Name of an Azure resource group.
+ * @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
- * @return the {@link ServiceResponse} object if successful.
+ * @return the observable to the CassandraTableGetResultsInner object
*/
- public Observable> beginDeleteCassandraTableWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) {
+ public Observable> getCassandraTableWithServiceResponseAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) {
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (accountName == null) {
+ throw new IllegalArgumentException("Parameter accountName is required and cannot be null.");
+ }
+ if (keyspaceName == null) {
+ throw new IllegalArgumentException("Parameter keyspaceName is required and cannot be null.");
+ }
+ if (tableName == null) {
+ throw new IllegalArgumentException("Parameter tableName is required and cannot be null.");
+ }
+ final String apiVersion = "2020-03-01";
+ return service.getCassandraTable(this.client.subscriptionId(), resourceGroupName, accountName, keyspaceName, tableName, apiVersion, this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = getCassandraTableDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse getCassandraTableDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken() { }.getType())
+ .registerError(CloudException.class)
+ .build(response);
+ }
+
+ /**
+ * 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 CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the CassandraTableGetResultsInner object if successful.
+ */
+ public CassandraTableGetResultsInner createUpdateCassandraTable(String resourceGroupName, String accountName, String keyspaceName, String tableName, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) {
+ return createUpdateCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName, createUpdateCassandraTableParameters).toBlocking().last().body();
+ }
+
+ /**
+ * 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 serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture createUpdateCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(createUpdateCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName, createUpdateCassandraTableParameters), serviceCallback);
+ }
+
+ /**
+ * 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
+ * @return the observable for the request
+ */
+ public Observable createUpdateCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, CassandraTableCreateUpdateParameters createUpdateCassandraTableParameters) {
+ return createUpdateCassandraTableWithServiceResponseAsync(resourceGroupName, accountName, keyspaceName, tableName, createUpdateCassandraTableParameters).map(new Func1, CassandraTableGetResultsInner>() {
+ @Override
+ public CassandraTableGetResultsInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * 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
+ * @return the observable for the request
+ */
+ public Observable