Skip to content

Commit

Permalink
CodeGen from PR 28367 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge cc536cb4936353ce5a6d929d613b6f0a394e4c9b into a9ace5a76360f440e64d943c5526deca90260c7c
  • Loading branch information
SDKAuto committed May 3, 2024
1 parent 4e3aba1 commit c488054
Show file tree
Hide file tree
Showing 38 changed files with 2,605 additions and 16,902 deletions.
773 changes: 387 additions & 386 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

362 changes: 13 additions & 349 deletions sdk/cosmosdb/arm-cosmosdb/CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/cosmosdb/arm-cosmosdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Azure Cosmos DB Database Service Resource Provider REST API

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

## Getting started
Expand Down
8 changes: 4 additions & 4 deletions sdk/cosmosdb/arm-cosmosdb/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "1a011ff0d72315ef3c530fe545c4fe82d0450201",
"commit": "ad6ff07bf18e96551ebe086b43aa7e4bc4ec27f9",
"readme": "specification/cosmos-db/resource-manager/readme.md",
"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",
"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",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected].4",
"use": "@autorest/[email protected].17"
"release_tool": "@azure-tools/[email protected].7",
"use": "@autorest/typescript@^6.0.12"
}
15 changes: 4 additions & 11 deletions 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.8",
"version": "15.7.0",
"engines": {
"node": ">=18.0.0"
},
Expand Down Expand Up @@ -40,6 +40,7 @@
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^10.0.0",
"@types/mocha": "^10.0.0",
"tsx": "^4.7.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
Expand Down Expand Up @@ -105,13 +106,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/cosmosdb/arm-cosmosdb",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-cosmosdb?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/cosmosdb/arm-cosmosdb"
}
1,538 changes: 93 additions & 1,445 deletions sdk/cosmosdb/arm-cosmosdb/review/arm-cosmosdb.api.md

Large diffs are not rendered by default.

32 changes: 2 additions & 30 deletions sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,14 @@ import {
CollectionPartitionImpl,
PartitionKeyRangeIdImpl,
PartitionKeyRangeIdRegionImpl,
GraphResourcesImpl,
SqlResourcesImpl,
MongoDBResourcesImpl,
TableResourcesImpl,
CassandraResourcesImpl,
GremlinResourcesImpl,
LocationsImpl,
DataTransferJobsImpl,
CassandraClustersImpl,
CassandraDataCentersImpl,
MongoClustersImpl,
NotebookWorkspacesImpl,
PrivateEndpointConnectionsImpl,
PrivateLinkResourcesImpl,
Expand All @@ -55,10 +52,6 @@ import {
RestorableTablesImpl,
RestorableTableResourcesImpl,
ServiceImpl,
ThroughputPoolsImpl,
ThroughputPoolImpl,
ThroughputPoolAccountsImpl,
ThroughputPoolAccountImpl,
} from "./operations";
import {
DatabaseAccounts,
Expand All @@ -74,17 +67,14 @@ import {
CollectionPartition,
PartitionKeyRangeId,
PartitionKeyRangeIdRegion,
GraphResources,
SqlResources,
MongoDBResources,
TableResources,
CassandraResources,
GremlinResources,
Locations,
DataTransferJobs,
CassandraClusters,
CassandraDataCenters,
MongoClusters,
NotebookWorkspaces,
PrivateEndpointConnections,
PrivateLinkResources,
Expand All @@ -101,10 +91,6 @@ import {
RestorableTables,
RestorableTableResources,
Service,
ThroughputPools,
ThroughputPool,
ThroughputPoolAccounts,
ThroughputPoolAccount,
} from "./operationsInterfaces";
import { CosmosDBManagementClientOptionalParams } from "./models";

Expand Down Expand Up @@ -140,7 +126,7 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
credential: credentials,
};

const packageDetails = `azsdk-js-arm-cosmosdb/16.0.0-beta.8`;
const packageDetails = `azsdk-js-arm-cosmosdb/15.7.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -194,7 +180,7 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2024-02-15-preview";
this.apiVersion = options.apiVersion || "2024-05-15";
this.databaseAccounts = new DatabaseAccountsImpl(this);
this.operations = new OperationsImpl(this);
this.database = new DatabaseImpl(this);
Expand All @@ -208,17 +194,14 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
this.collectionPartition = new CollectionPartitionImpl(this);
this.partitionKeyRangeId = new PartitionKeyRangeIdImpl(this);
this.partitionKeyRangeIdRegion = new PartitionKeyRangeIdRegionImpl(this);
this.graphResources = new GraphResourcesImpl(this);
this.sqlResources = new SqlResourcesImpl(this);
this.mongoDBResources = new MongoDBResourcesImpl(this);
this.tableResources = new TableResourcesImpl(this);
this.cassandraResources = new CassandraResourcesImpl(this);
this.gremlinResources = new GremlinResourcesImpl(this);
this.locations = new LocationsImpl(this);
this.dataTransferJobs = new DataTransferJobsImpl(this);
this.cassandraClusters = new CassandraClustersImpl(this);
this.cassandraDataCenters = new CassandraDataCentersImpl(this);
this.mongoClusters = new MongoClustersImpl(this);
this.notebookWorkspaces = new NotebookWorkspacesImpl(this);
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
Expand All @@ -237,10 +220,6 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
this.restorableTables = new RestorableTablesImpl(this);
this.restorableTableResources = new RestorableTableResourcesImpl(this);
this.service = new ServiceImpl(this);
this.throughputPools = new ThroughputPoolsImpl(this);
this.throughputPool = new ThroughputPoolImpl(this);
this.throughputPoolAccounts = new ThroughputPoolAccountsImpl(this);
this.throughputPoolAccount = new ThroughputPoolAccountImpl(this);
this.addCustomApiVersionPolicy(options.apiVersion);
}

Expand Down Expand Up @@ -285,17 +264,14 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
collectionPartition: CollectionPartition;
partitionKeyRangeId: PartitionKeyRangeId;
partitionKeyRangeIdRegion: PartitionKeyRangeIdRegion;
graphResources: GraphResources;
sqlResources: SqlResources;
mongoDBResources: MongoDBResources;
tableResources: TableResources;
cassandraResources: CassandraResources;
gremlinResources: GremlinResources;
locations: Locations;
dataTransferJobs: DataTransferJobs;
cassandraClusters: CassandraClusters;
cassandraDataCenters: CassandraDataCenters;
mongoClusters: MongoClusters;
notebookWorkspaces: NotebookWorkspaces;
privateEndpointConnections: PrivateEndpointConnections;
privateLinkResources: PrivateLinkResources;
Expand All @@ -312,8 +288,4 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
restorableTables: RestorableTables;
restorableTableResources: RestorableTableResources;
service: Service;
throughputPools: ThroughputPools;
throughputPool: ThroughputPool;
throughputPoolAccounts: ThroughputPoolAccounts;
throughputPoolAccount: ThroughputPoolAccount;
}
Loading

0 comments on commit c488054

Please sign in to comment.