Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,184 changes: 2,623 additions & 2,561 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/chaos/arm-chaos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"cross-env": "^7.0.2",
"@types/node": "^16.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/arm-cosmosdb": "16.0.0-beta.7",
"@azure/arm-cosmosdb": "16.0.0-beta.6",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a test in the chaos library that relies on comosdb ? is it possible to upgrade to the latest ? @kazrael2119

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we should run chaos test cases after generating cosmosdb

"ts-node": "^10.0.0"
},
"repository": {
Expand Down
1,225 changes: 625 additions & 600 deletions sdk/cosmosdb/arm-cosmosdb/CHANGELOG.md

Large diffs are not rendered by default.

25 changes: 6 additions & 19 deletions sdk/cosmosdb/arm-cosmosdb/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,18 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": {
"enabled": true
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/arm-cosmosdb.d.ts"
},
"messages": {
"tsdocMessageReporting": {
"default": {
"logLevel": "none"
}
},
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
"extractorMessageReporting": {
"ae-missing-release-tag": {
"logLevel": "none"
},
"ae-unresolved-link": {
"logLevel": "none"
}
"ae-missing-release-tag": { "logLevel": "none" },
"ae-unresolved-link": { "logLevel": "none" }
}
}
}
}
2 changes: 1 addition & 1 deletion sdk/cosmosdb/arm-cosmosdb/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "js",
"TagPrefix": "js/cosmosdb/arm-cosmosdb",
"Tag": "js/cosmosdb/arm-cosmosdb_84cef976f4"
"Tag": "js/cosmosdb/arm-cosmosdb_f12f2014aa"
}
2 changes: 1 addition & 1 deletion sdk/cosmosdb/arm-cosmosdb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for CosmosDBManagementClient.",
"version": "16.0.0-beta.7",
"version": "16.0.0",
"engines": {
"node": ">=16.0.0"
},
Expand Down
1,139 changes: 52 additions & 1,087 deletions sdk/cosmosdb/arm-cosmosdb/review/arm-cosmosdb.api.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH.
*
* @summary Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH.
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-15-preview/examples/CosmosDBManagedCassandraClusterCreate.json
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-09-15/examples/CosmosDBManagedCassandraClusterCreate.json
*/
async function cosmosDbManagedCassandraClusterCreate() {
const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Deallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate the host virtual machine of this cluster, and reserved the data disk. This won't do anything on an already deallocated cluster. Use Start to restart the cluster.
*
* @summary Deallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate the host virtual machine of this cluster, and reserved the data disk. This won't do anything on an already deallocated cluster. Use Start to restart the cluster.
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-15-preview/examples/CosmosDBManagedCassandraClusterDeallocate.json
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-09-15/examples/CosmosDBManagedCassandraClusterDeallocate.json
*/
async function cosmosDbManagedCassandraClusterDeallocate() {
const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to Deletes a managed Cassandra cluster.
*
* @summary Deletes a managed Cassandra cluster.
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-15-preview/examples/CosmosDBManagedCassandraClusterDelete.json
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-09-15/examples/CosmosDBManagedCassandraClusterDelete.json
*/
async function cosmosDbManagedCassandraClusterDelete() {
const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["COSMOSDB_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
const resourceGroupName =
process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg";
const clusterName = "cassandra-prod";
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to Get the properties of a managed Cassandra cluster.
*
* @summary Get the properties of a managed Cassandra cluster.
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-15-preview/examples/CosmosDBManagedCassandraClusterGet.json
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-09-15/examples/CosmosDBManagedCassandraClusterGet.json
*/
async function cosmosDbManagedCassandraClusterGet() {
const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["COSMOSDB_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
const resourceGroupName =
process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg";
const clusterName = "cassandra-prod";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,15 @@ dotenv.config();
* This sample demonstrates how to Invoke a command like nodetool for cassandra maintenance
*
* @summary Invoke a command like nodetool for cassandra maintenance
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-15-preview/examples/CosmosDBManagedCassandraCommand.json
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-09-15/examples/CosmosDBManagedCassandraCommand.json
*/
async function cosmosDbManagedCassandraCommand() {
const subscriptionId =
process.env["COSMOSDB_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid";
const resourceGroupName =
process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg";
const clusterName = "cassandra-prod";
const body: CommandPostBody = {
arguments: { status: "" },
command: "nodetool",
command: "nodetool status",
host: "10.0.1.12"
};
const credential = new DefaultAzureCredential();
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to List all managed Cassandra clusters in this resource group.
*
* @summary List all managed Cassandra clusters in this resource group.
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-15-preview/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-09-15/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json
*/
async function cosmosDbManagedCassandraClusterListByResourceGroup() {
const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["COSMOSDB_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
const resourceGroupName =
process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg";
const credential = new DefaultAzureCredential();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to List all managed Cassandra clusters in this subscription.
*
* @summary List all managed Cassandra clusters in this subscription.
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-15-preview/examples/CosmosDBManagedCassandraClusterListBySubscription.json
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-09-15/examples/CosmosDBManagedCassandraClusterListBySubscription.json
*/
async function cosmosDbManagedCassandraClusterListBySubscription() {
const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["COSMOSDB_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
const credential = new DefaultAzureCredential();
const client = new CosmosDBManagementClient(credential, subscriptionId);
const resArray = new Array();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ dotenv.config();
* This sample demonstrates how to Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster.
*
* @summary Start the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster.
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-15-preview/examples/CosmosDBManagedCassandraClusterStart.json
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-09-15/examples/CosmosDBManagedCassandraClusterStart.json
*/
async function cosmosDbManagedCassandraClusterStart() {
const subscriptionId =
process.env["COSMOSDB_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid";
const resourceGroupName =
process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg";
const clusterName = "cassandra-prod";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.
*
* @summary Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-15-preview/examples/CosmosDBManagedCassandraStatus.json
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-09-15/examples/CosmosDBManagedCassandraStatus.json
*/
async function cosmosDbManagedCassandraStatus() {
const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Updates some of the properties of a managed Cassandra cluster.
*
* @summary Updates some of the properties of a managed Cassandra cluster.
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-15-preview/examples/CosmosDBManagedCassandraClusterPatch.json
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-09-15/examples/CosmosDBManagedCassandraClusterPatch.json
*/
async function cosmosDbManagedCassandraClusterPatch() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ dotenv.config();
* This sample demonstrates how to Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH.
*
* @summary Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH.
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-15-preview/examples/CosmosDBManagedCassandraDataCenterCreate.json
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-09-15/examples/CosmosDBManagedCassandraDataCenterCreate.json
*/
async function cosmosDbManagedCassandraDataCenterCreate() {
const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to run the sample generation for updating the ts and js versions from this?

process.env["COSMOSDB_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
const resourceGroupName =
process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg";
const clusterName = "cassandra-prod";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to Delete a managed Cassandra data center.
*
* @summary Delete a managed Cassandra data center.
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-15-preview/examples/CosmosDBManagedCassandraDataCenterDelete.json
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-09-15/examples/CosmosDBManagedCassandraDataCenterDelete.json
*/
async function cosmosDbManagedCassandraDataCenterDelete() {
const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["COSMOSDB_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
const resourceGroupName =
process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg";
const clusterName = "cassandra-prod";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to Get the properties of a managed Cassandra data center.
*
* @summary Get the properties of a managed Cassandra data center.
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-15-preview/examples/CosmosDBManagedCassandraDataCenterGet.json
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-09-15/examples/CosmosDBManagedCassandraDataCenterGet.json
*/
async function cosmosDbManagedCassandraDataCenterGet() {
const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["COSMOSDB_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
const resourceGroupName =
process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg";
const clusterName = "cassandra-prod";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to List all data centers in a particular managed Cassandra cluster.
*
* @summary List all data centers in a particular managed Cassandra cluster.
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-15-preview/examples/CosmosDBManagedCassandraDataCenterList.json
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-09-15/examples/CosmosDBManagedCassandraDataCenterList.json
*/
async function cosmosDbManagedCassandraDataCenterList() {
const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["COSMOSDB_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
const resourceGroupName =
process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg";
const clusterName = "cassandra-prod";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Update some of the properties of a managed Cassandra data center.
*
* @summary Update some of the properties of a managed Cassandra data center.
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-15-preview/examples/CosmosDBManagedCassandraDataCenterPatch.json
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-09-15/examples/CosmosDBManagedCassandraDataCenterPatch.json
*/
async function cosmosDbManagedCassandraDataCenterUpdate() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Create or update an Azure Cosmos DB Cassandra keyspace
*
* @summary Create or update an Azure Cosmos DB Cassandra keyspace
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-15-preview/examples/CosmosDBCassandraKeyspaceCreateUpdate.json
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-09-15/examples/CosmosDBCassandraKeyspaceCreateUpdate.json
*/
async function cosmosDbCassandraKeyspaceCreateUpdate() {
const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Create or update an Azure Cosmos DB Cassandra Table
*
* @summary Create or update an Azure Cosmos DB Cassandra Table
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-15-preview/examples/CosmosDBCassandraTableCreateUpdate.json
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-09-15/examples/CosmosDBCassandraTableCreateUpdate.json
*/
async function cosmosDbCassandraTableCreateUpdate() {
const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid";
Expand All @@ -38,7 +38,6 @@ async function cosmosDbCassandraTableCreateUpdate() {
columns: [{ name: "columnA", type: "Ascii" }],
partitionKeys: [{ name: "columnA" }]
},
analyticalStorageTtl: 500,
defaultTtl: 100,
id: "tableName"
},
Expand Down
Loading