Skip to content

Commit

Permalink
mgmt, upgrade cosmos to 2022-11 (Azure#33500)
Browse files Browse the repository at this point in the history
* mgmt, upgrade cosmos to 2022-11

* api-spec.json update

* Update tests and recordings

* CHANGELOG update

* CHANGELOG update

* update other RP session records
  • Loading branch information
haolingdong-msft authored Feb 15, 2023
1 parent 792fcbe commit c846a37
Show file tree
Hide file tree
Showing 604 changed files with 11,941 additions and 3,847 deletions.
2 changes: 1 addition & 1 deletion sdk/resourcemanager/api-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"dir": "azure-resourcemanager-cosmos",
"source": "specification/cosmos-db/resource-manager/readme.md",
"package": "com.azure.resourcemanager.cosmos",
"args": "--tag=package-2022-08"
"args": "--tag=package-2022-11"
},
"dns": {
"dir": "azure-resourcemanager-dns",
Expand Down
8 changes: 3 additions & 5 deletions sdk/resourcemanager/azure-resourcemanager-cosmos/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

## 2.24.0-beta.1 (Unreleased)

### Features Added

### Breaking Changes
### Other Changes

### Bugs Fixed
#### Dependency Updates

### Other Changes
- Updated `api-version` to `2022-11-15`.

## 2.23.0 (2023-01-27)

Expand Down
1 change: 1 addition & 0 deletions sdk/resourcemanager/azure-resourcemanager-cosmos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
--add-exports com.azure.resourcemanager.resources/com.azure.resourcemanager.resources.fluentcore.arm.models.implementation=ALL-UNNAMED

--add-opens com.azure.resourcemanager.cosmos/com.azure.resourcemanager.cosmos=ALL-UNNAMED
--add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED
</javaModulesSurefireArgLine>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,28 +131,28 @@ Mono<Response<ClusterResourceInner>> getByResourceGroupWithResponseAsync(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the properties of a managed Cassandra cluster.
* @return the properties of a managed Cassandra cluster along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ClusterResourceInner getByResourceGroup(String resourceGroupName, String clusterName);
Response<ClusterResourceInner> getByResourceGroupWithResponse(
String resourceGroupName, String clusterName, Context context);

/**
* Get the properties of a managed Cassandra cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the properties of a managed Cassandra cluster along with {@link Response}.
* @return the properties of a managed Cassandra cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ClusterResourceInner> getByResourceGroupWithResponse(
String resourceGroupName, String clusterName, Context context);
ClusterResourceInner getByResourceGroup(String resourceGroupName, String clusterName);

/**
* Deletes a managed Cassandra cluster.
Expand Down Expand Up @@ -814,27 +814,27 @@ Mono<Response<CassandraClusterPublicStatusInner>> statusWithResponseAsync(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.
* @return the CPU, memory, and disk usage statistics for each Cassandra node in a cluster along with {@link
* Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CassandraClusterPublicStatusInner status(String resourceGroupName, String clusterName);
Response<CassandraClusterPublicStatusInner> statusWithResponse(
String resourceGroupName, String clusterName, Context context);

/**
* Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the CPU, memory, and disk usage statistics for each Cassandra node in a cluster along with {@link
* Response}.
* @return the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<CassandraClusterPublicStatusInner> statusWithResponse(
String resourceGroupName, String clusterName, Context context);
CassandraClusterPublicStatusInner status(String resourceGroupName, String clusterName);
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,29 +98,29 @@ Mono<Response<DataCenterResourceInner>> getWithResponseAsync(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param dataCenterName Data center name in a managed Cassandra cluster.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the properties of a managed Cassandra data center.
* @return the properties of a managed Cassandra data center along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DataCenterResourceInner get(String resourceGroupName, String clusterName, String dataCenterName);
Response<DataCenterResourceInner> getWithResponse(
String resourceGroupName, String clusterName, String dataCenterName, Context context);

/**
* Get the properties of a managed Cassandra data center.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName Managed Cassandra cluster name.
* @param dataCenterName Data center name in a managed Cassandra cluster.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the properties of a managed Cassandra data center along with {@link Response}.
* @return the properties of a managed Cassandra data center.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<DataCenterResourceInner> getWithResponse(
String resourceGroupName, String clusterName, String dataCenterName, Context context);
DataCenterResourceInner get(String resourceGroupName, String clusterName, String dataCenterName);

/**
* Delete a managed Cassandra data center.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,31 +109,31 @@ Mono<CassandraKeyspaceGetResultsInner> getCassandraKeyspaceAsync(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName Cosmos DB database account name.
* @param keyspaceName Cosmos DB keyspace name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name.
* @return the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name along
* with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CassandraKeyspaceGetResultsInner getCassandraKeyspace(
String resourceGroupName, String accountName, String keyspaceName);
Response<CassandraKeyspaceGetResultsInner> getCassandraKeyspaceWithResponse(
String resourceGroupName, String accountName, String keyspaceName, Context context);

/**
* Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName Cosmos DB database account name.
* @param keyspaceName Cosmos DB keyspace name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name along
* with {@link Response}.
* @return the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<CassandraKeyspaceGetResultsInner> getCassandraKeyspaceWithResponse(
String resourceGroupName, String accountName, String keyspaceName, Context context);
CassandraKeyspaceGetResultsInner getCassandraKeyspace(
String resourceGroupName, String accountName, String keyspaceName);

/**
* Create or update an Azure Cosmos DB Cassandra keyspace.
Expand Down Expand Up @@ -419,15 +419,16 @@ Mono<ThroughputSettingsGetResultsInner> getCassandraKeyspaceThroughputAsync(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName Cosmos DB database account name.
* @param keyspaceName Cosmos DB keyspace name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the
* provided name.
* provided name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ThroughputSettingsGetResultsInner getCassandraKeyspaceThroughput(
String resourceGroupName, String accountName, String keyspaceName);
Response<ThroughputSettingsGetResultsInner> getCassandraKeyspaceThroughputWithResponse(
String resourceGroupName, String accountName, String keyspaceName, Context context);

/**
* Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the
Expand All @@ -436,16 +437,15 @@ ThroughputSettingsGetResultsInner getCassandraKeyspaceThroughput(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName Cosmos DB database account name.
* @param keyspaceName Cosmos DB keyspace name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the
* provided name along with {@link Response}.
* provided name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ThroughputSettingsGetResultsInner> getCassandraKeyspaceThroughputWithResponse(
String resourceGroupName, String accountName, String keyspaceName, Context context);
ThroughputSettingsGetResultsInner getCassandraKeyspaceThroughput(
String resourceGroupName, String accountName, String keyspaceName);

/**
* Update RUs per second of an Azure Cosmos DB Cassandra Keyspace.
Expand Down Expand Up @@ -906,14 +906,15 @@ Mono<CassandraTableGetResultsInner> getCassandraTableAsync(
* @param accountName Cosmos DB database account name.
* @param keyspaceName Cosmos DB keyspace name.
* @param tableName Cosmos DB table name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the Cassandra table under an existing Azure Cosmos DB database account.
* @return the Cassandra table under an existing Azure Cosmos DB database account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CassandraTableGetResultsInner getCassandraTable(
String resourceGroupName, String accountName, String keyspaceName, String tableName);
Response<CassandraTableGetResultsInner> getCassandraTableWithResponse(
String resourceGroupName, String accountName, String keyspaceName, String tableName, Context context);

/**
* Gets the Cassandra table under an existing Azure Cosmos DB database account.
Expand All @@ -922,15 +923,14 @@ CassandraTableGetResultsInner getCassandraTable(
* @param accountName Cosmos DB database account name.
* @param keyspaceName Cosmos DB keyspace name.
* @param tableName Cosmos DB table name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the Cassandra table under an existing Azure Cosmos DB database account along with {@link Response}.
* @return the Cassandra table under an existing Azure Cosmos DB database account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<CassandraTableGetResultsInner> getCassandraTableWithResponse(
String resourceGroupName, String accountName, String keyspaceName, String tableName, Context context);
CassandraTableGetResultsInner getCassandraTable(
String resourceGroupName, String accountName, String keyspaceName, String tableName);

/**
* Create or update an Azure Cosmos DB Cassandra Table.
Expand Down Expand Up @@ -1241,15 +1241,16 @@ Mono<ThroughputSettingsGetResultsInner> getCassandraTableThroughputAsync(
* @param accountName Cosmos DB database account name.
* @param keyspaceName Cosmos DB keyspace name.
* @param tableName Cosmos DB table name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the
* provided name.
* provided name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ThroughputSettingsGetResultsInner getCassandraTableThroughput(
String resourceGroupName, String accountName, String keyspaceName, String tableName);
Response<ThroughputSettingsGetResultsInner> getCassandraTableThroughputWithResponse(
String resourceGroupName, String accountName, String keyspaceName, String tableName, Context context);

/**
* Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the
Expand All @@ -1259,16 +1260,15 @@ ThroughputSettingsGetResultsInner getCassandraTableThroughput(
* @param accountName Cosmos DB database account name.
* @param keyspaceName Cosmos DB keyspace name.
* @param tableName Cosmos DB table name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the
* provided name along with {@link Response}.
* provided name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ThroughputSettingsGetResultsInner> getCassandraTableThroughputWithResponse(
String resourceGroupName, String accountName, String keyspaceName, String tableName, Context context);
ThroughputSettingsGetResultsInner getCassandraTableThroughput(
String resourceGroupName, String accountName, String keyspaceName, String tableName);

/**
* Update RUs per second of an Azure Cosmos DB Cassandra table.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,41 @@ public interface CosmosDBManagementClient {
*/
RestorableMongodbResourcesClient getRestorableMongodbResources();

/**
* Gets the RestorableGremlinDatabasesClient object to access its operations.
*
* @return the RestorableGremlinDatabasesClient object.
*/
RestorableGremlinDatabasesClient getRestorableGremlinDatabases();

/**
* Gets the RestorableGremlinGraphsClient object to access its operations.
*
* @return the RestorableGremlinGraphsClient object.
*/
RestorableGremlinGraphsClient getRestorableGremlinGraphs();

/**
* Gets the RestorableGremlinResourcesClient object to access its operations.
*
* @return the RestorableGremlinResourcesClient object.
*/
RestorableGremlinResourcesClient getRestorableGremlinResources();

/**
* Gets the RestorableTablesClient object to access its operations.
*
* @return the RestorableTablesClient object.
*/
RestorableTablesClient getRestorableTables();

/**
* Gets the RestorableTableResourcesClient object to access its operations.
*
* @return the RestorableTableResourcesClient object.
*/
RestorableTableResourcesClient getRestorableTableResources();

/**
* Gets the ServicesClient object to access its operations.
*
Expand Down
Loading

0 comments on commit c846a37

Please sign in to comment.