Skip to content

Commit 37e3efd

Browse files
authored
1 parent 445270c commit 37e3efd

859 files changed

Lines changed: 37622 additions & 13789 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

sdk/cosmosdb/arm-cosmosdb/CHANGELOG.md

Lines changed: 346 additions & 8 deletions
Large diffs are not rendered by default.

sdk/cosmosdb/arm-cosmosdb/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2023 Microsoft
3+
Copyright (c) 2024 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/cosmosdb/arm-cosmosdb/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Azure Cosmos DB Database Service Resource Provider REST API
66

77
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/cosmosdb/arm-cosmosdb) |
88
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-cosmosdb) |
9-
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-cosmosdb) |
9+
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-cosmosdb?view=azure-node-preview) |
1010
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
1111

1212
## Getting started
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "d1eb3c20113d1018f25a8d97fdfa5f8bb5c659ea",
2+
"commit": "1a011ff0d72315ef3c530fe545c4fe82d0450201",
33
"readme": "specification/cosmos-db/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\cosmos-db\\resource-manager\\readme.md --use=@autorest/typescript@6.0.13 --generate-sample=true",
4+
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\cosmos-db\\resource-manager\\readme.md --use=@autorest/typescript@6.0.17 --generate-sample=true",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
66
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.4",
7-
"use": "@autorest/typescript@6.0.13"
7+
"use": "@autorest/typescript@6.0.17"
88
}

sdk/cosmosdb/arm-cosmosdb/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "js",
44
"TagPrefix": "js/cosmosdb/arm-cosmosdb",
5-
"Tag": "js/cosmosdb/arm-cosmosdb_346f522428"
5+
"Tag": "js/cosmosdb/arm-cosmosdb_872c698f2b"
66
}

sdk/cosmosdb/arm-cosmosdb/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for CosmosDBManagementClient.",
6-
"version": "15.6.1",
6+
"version": "16.0.0-beta.7",
77
"engines": {
88
"node": ">=18.0.0"
99
},
@@ -12,8 +12,8 @@
1212
"@azure/abort-controller": "^1.0.0",
1313
"@azure/core-paging": "^1.2.0",
1414
"@azure/core-client": "^1.7.0",
15-
"@azure/core-auth": "^1.3.0",
16-
"@azure/core-rest-pipeline": "^1.12.0",
15+
"@azure/core-auth": "^1.6.0",
16+
"@azure/core-rest-pipeline": "^1.14.0",
1717
"tslib": "^2.2.0"
1818
},
1919
"keywords": [
@@ -78,7 +78,6 @@
7878
"pack": "npm pack 2>&1",
7979
"extract-api": "api-extractor run --local",
8080
"lint": "echo skipped",
81-
"audit": "echo skipped",
8281
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
8382
"build:node": "echo skipped",
8483
"build:browser": "echo skipped",
@@ -116,4 +115,4 @@
116115
"disableDocsMs": true,
117116
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-cosmosdb?view=azure-node-preview"
118117
}
119-
}
118+
}

sdk/cosmosdb/arm-cosmosdb/review/arm-cosmosdb.api.md

Lines changed: 1464 additions & 57 deletions
Large diffs are not rendered by default.

sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersCreateUpdateSample.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ dotenv.config();
1818
* 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.
1919
*
2020
* @summary Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH.
21-
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-11-15/examples/CosmosDBManagedCassandraClusterCreate.json
21+
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-02-15-preview/examples/CosmosDBManagedCassandraClusterCreate.json
2222
*/
2323
async function cosmosDbManagedCassandraClusterCreate() {
24-
const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid";
24+
const subscriptionId =
25+
process.env["COSMOSDB_SUBSCRIPTION_ID"] ||
26+
"00000000-0000-0000-0000-000000000000";
2527
const resourceGroupName =
2628
process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg";
2729
const clusterName = "cassandra-prod";
@@ -32,35 +34,33 @@ async function cosmosDbManagedCassandraClusterCreate() {
3234
cassandraVersion: "3.11",
3335
clientCertificates: [
3436
{
35-
pem:
36-
"-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----"
37-
}
37+
pem: "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----",
38+
},
3839
],
3940
clusterNameOverride: "ClusterNameIllegalForAzureResource",
4041
delegatedManagementSubnetId:
4142
"/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/management",
4243
externalGossipCertificates: [
4344
{
44-
pem:
45-
"-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----"
46-
}
45+
pem: "-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----",
46+
},
4747
],
4848
externalSeedNodes: [
4949
{ ipAddress: "10.52.221.2" },
5050
{ ipAddress: "10.52.221.3" },
51-
{ ipAddress: "10.52.221.4" }
51+
{ ipAddress: "10.52.221.4" },
5252
],
5353
hoursBetweenBackups: 24,
54-
initialCassandraAdminPassword: "mypassword"
54+
initialCassandraAdminPassword: "mypassword",
5555
},
56-
tags: {}
56+
tags: {},
5757
};
5858
const credential = new DefaultAzureCredential();
5959
const client = new CosmosDBManagementClient(credential, subscriptionId);
6060
const result = await client.cassandraClusters.beginCreateUpdateAndWait(
6161
resourceGroupName,
6262
clusterName,
63-
body
63+
body,
6464
);
6565
console.log(result);
6666
}

sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersDeallocateSample.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,20 @@ dotenv.config();
1818
* 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.
1919
*
2020
* @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.
21-
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-11-15/examples/CosmosDBManagedCassandraClusterDeallocate.json
21+
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-02-15-preview/examples/CosmosDBManagedCassandraClusterDeallocate.json
2222
*/
2323
async function cosmosDbManagedCassandraClusterDeallocate() {
24-
const subscriptionId = process.env["COSMOSDB_SUBSCRIPTION_ID"] || "subid";
24+
const subscriptionId =
25+
process.env["COSMOSDB_SUBSCRIPTION_ID"] ||
26+
"00000000-0000-0000-0000-000000000000";
2527
const resourceGroupName =
2628
process.env["COSMOSDB_RESOURCE_GROUP"] || "cassandra-prod-rg";
2729
const clusterName = "cassandra-prod";
2830
const credential = new DefaultAzureCredential();
2931
const client = new CosmosDBManagementClient(credential, subscriptionId);
3032
const result = await client.cassandraClusters.beginDeallocateAndWait(
3133
resourceGroupName,
32-
clusterName
34+
clusterName,
3335
);
3436
console.log(result);
3537
}

sdk/cosmosdb/arm-cosmosdb/samples-dev/cassandraClustersDeleteSample.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dotenv.config();
1818
* This sample demonstrates how to Deletes a managed Cassandra cluster.
1919
*
2020
* @summary Deletes a managed Cassandra cluster.
21-
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2023-11-15/examples/CosmosDBManagedCassandraClusterDelete.json
21+
* x-ms-original-file: specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2024-02-15-preview/examples/CosmosDBManagedCassandraClusterDelete.json
2222
*/
2323
async function cosmosDbManagedCassandraClusterDelete() {
2424
const subscriptionId =
@@ -31,7 +31,7 @@ async function cosmosDbManagedCassandraClusterDelete() {
3131
const client = new CosmosDBManagementClient(credential, subscriptionId);
3232
const result = await client.cassandraClusters.beginDeleteAndWait(
3333
resourceGroupName,
34-
clusterName
34+
clusterName,
3535
);
3636
console.log(result);
3737
}

0 commit comments

Comments
 (0)