Skip to content

Commit 64383e8

Browse files
author
SDKAuto
committed
CodeGen from PR 28955 in Azure/azure-rest-api-specs
Merge b2f945499873e29ac43bed08d413062fa1925e16 into 1bb315fcd55bc95486149932442ab0e599c2007c
1 parent 455f2d5 commit 64383e8

22 files changed

+4711
-5750
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 387 additions & 386 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/cosmosdb/arm-cosmosdb/_meta.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "1a011ff0d72315ef3c530fe545c4fe82d0450201",
2+
"commit": "479d4608af346eb5e1793a3ee8b6566b740bc8b4",
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/[email protected].17 --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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/[email protected].4",
7-
"use": "@autorest/[email protected].17"
6+
"release_tool": "@azure-tools/[email protected].7",
7+
"use": "@autorest/typescript@^6.0.12"
88
}

sdk/cosmosdb/arm-cosmosdb/package.json

Lines changed: 4 additions & 11 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": "16.0.0-beta.8",
6+
"version": "1.0.0-beta.1",
77
"engines": {
88
"node": ">=18.0.0"
99
},
@@ -40,6 +40,7 @@
4040
"@azure-tools/test-credential": "^1.0.0",
4141
"mocha": "^10.0.0",
4242
"@types/mocha": "^10.0.0",
43+
"tsx": "^4.7.1",
4344
"@types/chai": "^4.2.8",
4445
"chai": "^4.2.0",
4546
"cross-env": "^7.0.2",
@@ -105,13 +106,5 @@
105106
]
106107
},
107108
"autoPublish": true,
108-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/cosmosdb/arm-cosmosdb",
109-
"//sampleConfiguration": {
110-
"productName": "",
111-
"productSlugs": [
112-
"azure"
113-
],
114-
"disableDocsMs": true,
115-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-cosmosdb?view=azure-node-preview"
116-
}
117-
}
109+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/cosmosdb/arm-cosmosdb"
110+
}

sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
} from "@azure/core-rest-pipeline";
1616
import * as coreAuth from "@azure/core-auth";
1717
import {
18+
NetworkSecurityPerimeterConfigurationsImpl,
1819
DatabaseAccountsImpl,
1920
OperationsImpl,
2021
DatabaseImpl,
@@ -38,7 +39,6 @@ import {
3839
DataTransferJobsImpl,
3940
CassandraClustersImpl,
4041
CassandraDataCentersImpl,
41-
MongoClustersImpl,
4242
NotebookWorkspacesImpl,
4343
PrivateEndpointConnectionsImpl,
4444
PrivateLinkResourcesImpl,
@@ -61,6 +61,7 @@ import {
6161
ThroughputPoolAccountImpl,
6262
} from "./operations";
6363
import {
64+
NetworkSecurityPerimeterConfigurations,
6465
DatabaseAccounts,
6566
Operations,
6667
Database,
@@ -84,7 +85,6 @@ import {
8485
DataTransferJobs,
8586
CassandraClusters,
8687
CassandraDataCenters,
87-
MongoClusters,
8888
NotebookWorkspaces,
8989
PrivateEndpointConnections,
9090
PrivateLinkResources,
@@ -116,7 +116,7 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
116116
/**
117117
* Initializes a new instance of the CosmosDBManagementClient class.
118118
* @param credentials Subscription credentials which uniquely identify client subscription.
119-
* @param subscriptionId The ID of the target subscription.
119+
* @param subscriptionId The ID of the target subscription. The value must be an UUID.
120120
* @param options The parameter options
121121
*/
122122
constructor(
@@ -140,7 +140,7 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
140140
credential: credentials,
141141
};
142142

143-
const packageDetails = `azsdk-js-arm-cosmosdb/16.0.0-beta.8`;
143+
const packageDetails = `azsdk-js-arm-cosmosdb/1.0.0-beta.1`;
144144
const userAgentPrefix =
145145
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
146146
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -194,7 +194,9 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
194194

195195
// Assigning values to Constant parameters
196196
this.$host = options.$host || "https://management.azure.com";
197-
this.apiVersion = options.apiVersion || "2024-02-15-preview";
197+
this.apiVersion = options.apiVersion || "2024-05-15-preview";
198+
this.networkSecurityPerimeterConfigurations =
199+
new NetworkSecurityPerimeterConfigurationsImpl(this);
198200
this.databaseAccounts = new DatabaseAccountsImpl(this);
199201
this.operations = new OperationsImpl(this);
200202
this.database = new DatabaseImpl(this);
@@ -218,7 +220,6 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
218220
this.dataTransferJobs = new DataTransferJobsImpl(this);
219221
this.cassandraClusters = new CassandraClustersImpl(this);
220222
this.cassandraDataCenters = new CassandraDataCentersImpl(this);
221-
this.mongoClusters = new MongoClustersImpl(this);
222223
this.notebookWorkspaces = new NotebookWorkspacesImpl(this);
223224
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
224225
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
@@ -272,6 +273,7 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
272273
this.pipeline.addPolicy(apiVersionPolicy);
273274
}
274275

276+
networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations;
275277
databaseAccounts: DatabaseAccounts;
276278
operations: Operations;
277279
database: Database;
@@ -295,7 +297,6 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
295297
dataTransferJobs: DataTransferJobs;
296298
cassandraClusters: CassandraClusters;
297299
cassandraDataCenters: CassandraDataCenters;
298-
mongoClusters: MongoClusters;
299300
notebookWorkspaces: NotebookWorkspaces;
300301
privateEndpointConnections: PrivateEndpointConnections;
301302
privateLinkResources: PrivateLinkResources;

0 commit comments

Comments
 (0)