Skip to content

Commit c0cd5bb

Browse files
author
SDK Automation
committed
Generated from a91104447d567a499732fe5b67abafc3aaaaf841
Revert "add default response" This reverts commit 18d879905657d43103232121c111715cd0c0fb57.
1 parent c5cf4fd commit c0cd5bb

15 files changed

+4615
-944
lines changed

sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/CassandraResources.java

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,28 @@ public interface CassandraResources {
8686
*/
8787
Observable<ThroughputSettingsGetResults> updateCassandraKeyspaceThroughputAsync(String resourceGroupName, String accountName, String keyspaceName, ThroughputSettingsUpdateParameters updateThroughputParameters);
8888

89+
/**
90+
* Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale.
91+
*
92+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
93+
* @param accountName Cosmos DB database account name.
94+
* @param keyspaceName Cosmos DB keyspace name.
95+
* @throws IllegalArgumentException thrown if parameters fail the validation
96+
* @return the observable for the request
97+
*/
98+
Observable<ThroughputSettingsGetResults> migrateCassandraKeyspaceToAutoscaleAsync(String resourceGroupName, String accountName, String keyspaceName);
99+
100+
/**
101+
* Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput.
102+
*
103+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
104+
* @param accountName Cosmos DB database account name.
105+
* @param keyspaceName Cosmos DB keyspace name.
106+
* @throws IllegalArgumentException thrown if parameters fail the validation
107+
* @return the observable for the request
108+
*/
109+
Observable<ThroughputSettingsGetResults> migrateCassandraKeyspaceToManualThroughputAsync(String resourceGroupName, String accountName, String keyspaceName);
110+
89111
/**
90112
* Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name.
91113
*
@@ -111,6 +133,30 @@ public interface CassandraResources {
111133
*/
112134
Observable<ThroughputSettingsGetResults> updateCassandraTableThroughputAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName, ThroughputSettingsUpdateParameters updateThroughputParameters);
113135

136+
/**
137+
* Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale.
138+
*
139+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
140+
* @param accountName Cosmos DB database account name.
141+
* @param keyspaceName Cosmos DB keyspace name.
142+
* @param tableName Cosmos DB table name.
143+
* @throws IllegalArgumentException thrown if parameters fail the validation
144+
* @return the observable for the request
145+
*/
146+
Observable<ThroughputSettingsGetResults> migrateCassandraTableToAutoscaleAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName);
147+
148+
/**
149+
* Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput.
150+
*
151+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
152+
* @param accountName Cosmos DB database account name.
153+
* @param keyspaceName Cosmos DB keyspace name.
154+
* @param tableName Cosmos DB table name.
155+
* @throws IllegalArgumentException thrown if parameters fail the validation
156+
* @return the observable for the request
157+
*/
158+
Observable<ThroughputSettingsGetResults> migrateCassandraTableToManualThroughputAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName);
159+
114160
/**
115161
* Gets the Cassandra table under an existing Azure Cosmos DB database account.
116162
*

sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/GremlinResources.java

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,28 @@ public interface GremlinResources {
8686
*/
8787
Observable<ThroughputSettingsGetResults> updateGremlinDatabaseThroughputAsync(String resourceGroupName, String accountName, String databaseName, ThroughputSettingsUpdateParameters updateThroughputParameters);
8888

89+
/**
90+
* Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale.
91+
*
92+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
93+
* @param accountName Cosmos DB database account name.
94+
* @param databaseName Cosmos DB database name.
95+
* @throws IllegalArgumentException thrown if parameters fail the validation
96+
* @return the observable for the request
97+
*/
98+
Observable<ThroughputSettingsGetResults> migrateGremlinDatabaseToAutoscaleAsync(String resourceGroupName, String accountName, String databaseName);
99+
100+
/**
101+
* Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput.
102+
*
103+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
104+
* @param accountName Cosmos DB database account name.
105+
* @param databaseName Cosmos DB database name.
106+
* @throws IllegalArgumentException thrown if parameters fail the validation
107+
* @return the observable for the request
108+
*/
109+
Observable<ThroughputSettingsGetResults> migrateGremlinDatabaseToManualThroughputAsync(String resourceGroupName, String accountName, String databaseName);
110+
89111
/**
90112
* Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name.
91113
*
@@ -111,6 +133,30 @@ public interface GremlinResources {
111133
*/
112134
Observable<ThroughputSettingsGetResults> updateGremlinGraphThroughputAsync(String resourceGroupName, String accountName, String databaseName, String graphName, ThroughputSettingsUpdateParameters updateThroughputParameters);
113135

136+
/**
137+
* Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale.
138+
*
139+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
140+
* @param accountName Cosmos DB database account name.
141+
* @param databaseName Cosmos DB database name.
142+
* @param graphName Cosmos DB graph name.
143+
* @throws IllegalArgumentException thrown if parameters fail the validation
144+
* @return the observable for the request
145+
*/
146+
Observable<ThroughputSettingsGetResults> migrateGremlinGraphToAutoscaleAsync(String resourceGroupName, String accountName, String databaseName, String graphName);
147+
148+
/**
149+
* Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput.
150+
*
151+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
152+
* @param accountName Cosmos DB database account name.
153+
* @param databaseName Cosmos DB database name.
154+
* @param graphName Cosmos DB graph name.
155+
* @throws IllegalArgumentException thrown if parameters fail the validation
156+
* @return the observable for the request
157+
*/
158+
Observable<ThroughputSettingsGetResults> migrateGremlinGraphToManualThroughputAsync(String resourceGroupName, String accountName, String databaseName, String graphName);
159+
114160
/**
115161
* Gets the Gremlin graph under an existing Azure Cosmos DB database account.
116162
*

sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/MongoDBResources.java

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,28 @@ public interface MongoDBResources {
8686
*/
8787
Observable<ThroughputSettingsGetResults> updateMongoDBDatabaseThroughputAsync(String resourceGroupName, String accountName, String databaseName, ThroughputSettingsUpdateParameters updateThroughputParameters);
8888

89+
/**
90+
* Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale.
91+
*
92+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
93+
* @param accountName Cosmos DB database account name.
94+
* @param databaseName Cosmos DB database name.
95+
* @throws IllegalArgumentException thrown if parameters fail the validation
96+
* @return the observable for the request
97+
*/
98+
Observable<ThroughputSettingsGetResults> migrateMongoDBDatabaseToAutoscaleAsync(String resourceGroupName, String accountName, String databaseName);
99+
100+
/**
101+
* Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput.
102+
*
103+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
104+
* @param accountName Cosmos DB database account name.
105+
* @param databaseName Cosmos DB database name.
106+
* @throws IllegalArgumentException thrown if parameters fail the validation
107+
* @return the observable for the request
108+
*/
109+
Observable<ThroughputSettingsGetResults> migrateMongoDBDatabaseToManualThroughputAsync(String resourceGroupName, String accountName, String databaseName);
110+
89111
/**
90112
* Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name.
91113
*
@@ -111,6 +133,30 @@ public interface MongoDBResources {
111133
*/
112134
Observable<ThroughputSettingsGetResults> updateMongoDBCollectionThroughputAsync(String resourceGroupName, String accountName, String databaseName, String collectionName, ThroughputSettingsUpdateParameters updateThroughputParameters);
113135

136+
/**
137+
* Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale.
138+
*
139+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
140+
* @param accountName Cosmos DB database account name.
141+
* @param databaseName Cosmos DB database name.
142+
* @param collectionName Cosmos DB collection name.
143+
* @throws IllegalArgumentException thrown if parameters fail the validation
144+
* @return the observable for the request
145+
*/
146+
Observable<ThroughputSettingsGetResults> migrateMongoDBCollectionToAutoscaleAsync(String resourceGroupName, String accountName, String databaseName, String collectionName);
147+
148+
/**
149+
* Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput.
150+
*
151+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
152+
* @param accountName Cosmos DB database account name.
153+
* @param databaseName Cosmos DB database name.
154+
* @param collectionName Cosmos DB collection name.
155+
* @throws IllegalArgumentException thrown if parameters fail the validation
156+
* @return the observable for the request
157+
*/
158+
Observable<ThroughputSettingsGetResults> migrateMongoDBCollectionToManualThroughputAsync(String resourceGroupName, String accountName, String databaseName, String collectionName);
159+
114160
/**
115161
* Gets the MongoDB collection under an existing Azure Cosmos DB database account.
116162
*

sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/SqlResources.java

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,28 @@ public interface SqlResources {
110110
*/
111111
Observable<ThroughputSettingsGetResults> updateSqlDatabaseThroughputAsync(String resourceGroupName, String accountName, String databaseName, ThroughputSettingsUpdateParameters updateThroughputParameters);
112112

113+
/**
114+
* Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale.
115+
*
116+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
117+
* @param accountName Cosmos DB database account name.
118+
* @param databaseName Cosmos DB database name.
119+
* @throws IllegalArgumentException thrown if parameters fail the validation
120+
* @return the observable for the request
121+
*/
122+
Observable<ThroughputSettingsGetResults> migrateSqlDatabaseToAutoscaleAsync(String resourceGroupName, String accountName, String databaseName);
123+
124+
/**
125+
* Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput.
126+
*
127+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
128+
* @param accountName Cosmos DB database account name.
129+
* @param databaseName Cosmos DB database name.
130+
* @throws IllegalArgumentException thrown if parameters fail the validation
131+
* @return the observable for the request
132+
*/
133+
Observable<ThroughputSettingsGetResults> migrateSqlDatabaseToManualThroughputAsync(String resourceGroupName, String accountName, String databaseName);
134+
113135
/**
114136
* Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account.
115137
*
@@ -135,6 +157,30 @@ public interface SqlResources {
135157
*/
136158
Observable<ThroughputSettingsGetResults> updateSqlContainerThroughputAsync(String resourceGroupName, String accountName, String databaseName, String containerName, ThroughputSettingsUpdateParameters updateThroughputParameters);
137159

160+
/**
161+
* Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale.
162+
*
163+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
164+
* @param accountName Cosmos DB database account name.
165+
* @param databaseName Cosmos DB database name.
166+
* @param containerName Cosmos DB container name.
167+
* @throws IllegalArgumentException thrown if parameters fail the validation
168+
* @return the observable for the request
169+
*/
170+
Observable<ThroughputSettingsGetResults> migrateSqlContainerToAutoscaleAsync(String resourceGroupName, String accountName, String databaseName, String containerName);
171+
172+
/**
173+
* Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput.
174+
*
175+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
176+
* @param accountName Cosmos DB database account name.
177+
* @param databaseName Cosmos DB database name.
178+
* @param containerName Cosmos DB container name.
179+
* @throws IllegalArgumentException thrown if parameters fail the validation
180+
* @return the observable for the request
181+
*/
182+
Observable<ThroughputSettingsGetResults> migrateSqlContainerToManualThroughputAsync(String resourceGroupName, String accountName, String databaseName, String containerName);
183+
138184
/**
139185
* Gets the SQL container under an existing Azure Cosmos DB database account.
140186
*

sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/TableResources.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,26 @@ public interface TableResources {
7878
*/
7979
Observable<ThroughputSettingsGetResults> updateTableThroughputAsync(String resourceGroupName, String accountName, String tableName, ThroughputSettingsUpdateParameters updateThroughputParameters);
8080

81+
/**
82+
* Migrate an Azure Cosmos DB Table from manual throughput to autoscale.
83+
*
84+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
85+
* @param accountName Cosmos DB database account name.
86+
* @param tableName Cosmos DB table name.
87+
* @throws IllegalArgumentException thrown if parameters fail the validation
88+
* @return the observable for the request
89+
*/
90+
Observable<ThroughputSettingsGetResults> migrateTableToAutoscaleAsync(String resourceGroupName, String accountName, String tableName);
91+
92+
/**
93+
* Migrate an Azure Cosmos DB Table from autoscale to manual throughput.
94+
*
95+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
96+
* @param accountName Cosmos DB database account name.
97+
* @param tableName Cosmos DB table name.
98+
* @throws IllegalArgumentException thrown if parameters fail the validation
99+
* @return the observable for the request
100+
*/
101+
Observable<ThroughputSettingsGetResults> migrateTableToManualThroughputAsync(String resourceGroupName, String accountName, String tableName);
102+
81103
}

sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/CassandraResourcesImpl.java

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,30 @@ public ThroughputSettingsGetResults call(ThroughputSettingsGetResultsInner inner
139139
});
140140
}
141141

142+
@Override
143+
public Observable<ThroughputSettingsGetResults> migrateCassandraKeyspaceToAutoscaleAsync(String resourceGroupName, String accountName, String keyspaceName) {
144+
CassandraResourcesInner client = this.inner();
145+
return client.migrateCassandraKeyspaceToAutoscaleAsync(resourceGroupName, accountName, keyspaceName)
146+
.map(new Func1<ThroughputSettingsGetResultsInner, ThroughputSettingsGetResults>() {
147+
@Override
148+
public ThroughputSettingsGetResults call(ThroughputSettingsGetResultsInner inner) {
149+
return new ThroughputSettingsGetResultsImpl(inner, manager());
150+
}
151+
});
152+
}
153+
154+
@Override
155+
public Observable<ThroughputSettingsGetResults> migrateCassandraKeyspaceToManualThroughputAsync(String resourceGroupName, String accountName, String keyspaceName) {
156+
CassandraResourcesInner client = this.inner();
157+
return client.migrateCassandraKeyspaceToManualThroughputAsync(resourceGroupName, accountName, keyspaceName)
158+
.map(new Func1<ThroughputSettingsGetResultsInner, ThroughputSettingsGetResults>() {
159+
@Override
160+
public ThroughputSettingsGetResults call(ThroughputSettingsGetResultsInner inner) {
161+
return new ThroughputSettingsGetResultsImpl(inner, manager());
162+
}
163+
});
164+
}
165+
142166
@Override
143167
public Observable<ThroughputSettingsGetResults> getCassandraTableThroughputAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) {
144168
CassandraResourcesInner client = this.inner();
@@ -163,6 +187,30 @@ public ThroughputSettingsGetResults call(ThroughputSettingsGetResultsInner inner
163187
});
164188
}
165189

190+
@Override
191+
public Observable<ThroughputSettingsGetResults> migrateCassandraTableToAutoscaleAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) {
192+
CassandraResourcesInner client = this.inner();
193+
return client.migrateCassandraTableToAutoscaleAsync(resourceGroupName, accountName, keyspaceName, tableName)
194+
.map(new Func1<ThroughputSettingsGetResultsInner, ThroughputSettingsGetResults>() {
195+
@Override
196+
public ThroughputSettingsGetResults call(ThroughputSettingsGetResultsInner inner) {
197+
return new ThroughputSettingsGetResultsImpl(inner, manager());
198+
}
199+
});
200+
}
201+
202+
@Override
203+
public Observable<ThroughputSettingsGetResults> migrateCassandraTableToManualThroughputAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) {
204+
CassandraResourcesInner client = this.inner();
205+
return client.migrateCassandraTableToManualThroughputAsync(resourceGroupName, accountName, keyspaceName, tableName)
206+
.map(new Func1<ThroughputSettingsGetResultsInner, ThroughputSettingsGetResults>() {
207+
@Override
208+
public ThroughputSettingsGetResults call(ThroughputSettingsGetResultsInner inner) {
209+
return new ThroughputSettingsGetResultsImpl(inner, manager());
210+
}
211+
});
212+
}
213+
166214
@Override
167215
public Observable<CassandraTableGetResults> getCassandraTableAsync(String resourceGroupName, String accountName, String keyspaceName, String tableName) {
168216
CassandraResourcesInner client = this.inner();

0 commit comments

Comments
 (0)