Skip to content

Commit

Permalink
CodeGen from PR 21333 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 93efefed2548dfcb007038a6b0bb924b8e4907ef into fffa955e35ff4a3a2bc97252325c615f55c23e18
  • Loading branch information
SDKAuto committed Oct 28, 2022
1 parent 0d72600 commit c16518e
Show file tree
Hide file tree
Showing 30 changed files with 872 additions and 7,906 deletions.
191 changes: 2 additions & 189 deletions sdk/cosmosdb/arm-cosmosdb/CHANGELOG.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions sdk/cosmosdb/arm-cosmosdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ 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

### Currently supported environments

- [LTS versions of Node.js](https://nodejs.org/about/releases/)
- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
- Latest versions of Safari, Chrome, Edge and Firefox.

See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
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": "35388d90dfe0dfb8ef0f43cecaf9dc960fbc917e",
"commit": "b274a1df8d97d3a1ab8785f481354312e9193d0b",
"readme": "specification/cosmos-db/resource-manager/readme.md",
"autorest_command": "autorest --version=3.8.4 --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.0-rc.1.20220727.1 --generate-sample=true",
"autorest_command": "autorest --version=3.8.4 --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.0-rc.2",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/typescript@6.0.0-rc.1.20220727.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.4",
"use": "@autorest/typescript@6.0.0-rc.2"
}
14 changes: 3 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.5",
"version": "15.3.0",
"engines": {
"node": ">=14.0.0"
},
Expand Down Expand Up @@ -109,13 +109,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-cosmosdb?view=azure-node-preview"
}
}
"autoPublish": true
}
635 changes: 9 additions & 626 deletions sdk/cosmosdb/arm-cosmosdb/review/arm-cosmosdb.api.md

Large diffs are not rendered by default.

12 changes: 2 additions & 10 deletions sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,12 @@ import {
CollectionPartitionImpl,
PartitionKeyRangeIdImpl,
PartitionKeyRangeIdRegionImpl,
GraphResourcesImpl,
SqlResourcesImpl,
MongoDBResourcesImpl,
TableResourcesImpl,
CassandraResourcesImpl,
GremlinResourcesImpl,
LocationsImpl,
DataTransferJobsImpl,
CassandraClustersImpl,
CassandraDataCentersImpl,
NotebookWorkspacesImpl,
Expand Down Expand Up @@ -69,14 +67,12 @@ import {
CollectionPartition,
PartitionKeyRangeId,
PartitionKeyRangeIdRegion,
GraphResources,
SqlResources,
MongoDBResources,
TableResources,
CassandraResources,
GremlinResources,
Locations,
DataTransferJobs,
CassandraClusters,
CassandraDataCenters,
NotebookWorkspaces,
Expand Down Expand Up @@ -130,7 +126,7 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-cosmosdb/16.0.0-beta.5`;
const packageDetails = `azsdk-js-arm-cosmosdb/15.3.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -184,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 || "2022-08-15-preview";
this.apiVersion = options.apiVersion || "2022-11-15";
this.databaseAccounts = new DatabaseAccountsImpl(this);
this.operations = new OperationsImpl(this);
this.database = new DatabaseImpl(this);
Expand All @@ -198,14 +194,12 @@ 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.notebookWorkspaces = new NotebookWorkspacesImpl(this);
Expand Down Expand Up @@ -270,14 +264,12 @@ 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;
notebookWorkspaces: NotebookWorkspaces;
Expand Down
Loading

0 comments on commit c16518e

Please sign in to comment.