Skip to content

Commit

Permalink
CodeGen from PR 29906 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge a2f6c18f94a0dd2943c98f7b9ab111a3aa66986d into eea7584434f9225cad0327d83d5c6d84257a4d7d
  • Loading branch information
SDKAuto committed Sep 3, 2024
1 parent c1db23f commit a15cfe5
Show file tree
Hide file tree
Showing 40 changed files with 17,829 additions and 3,747 deletions.
347 changes: 340 additions & 7 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) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-cosmosdb?view=azure-node-preview) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

## Getting started
Expand Down
6 changes: 3 additions & 3 deletions sdk/cosmosdb/arm-cosmosdb/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "768c1f32bbfdcea80bdadf92dc2fba2c114c2dda",
"commit": "ea3b9c8ce96cda3ef43a91ef09a167119a0c4701",
"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].23 --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]",
"use": "@autorest/[email protected].23"
"use": "@autorest/typescript@^6.0.12"
}
18 changes: 5 additions & 13 deletions sdk/cosmosdb/arm-cosmosdb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for CosmosDBManagementClient.",
"version": "16.0.1",
"version": "17.0.0-beta.1",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^1.0.0",
"@azure/abort-controller": "^2.1.2",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.6.0",
Expand All @@ -35,7 +35,7 @@
"rimraf": "^5.0.0",
"dotenv": "^16.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
"@azure/identity": "^4.2.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.1.0",
"mocha": "^10.0.0",
Expand Down Expand Up @@ -106,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,458 changes: 1,423 additions & 35 deletions sdk/cosmosdb/arm-cosmosdb/review/arm-cosmosdb.api.md

Large diffs are not rendered by default.

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

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

const packageDetails = `azsdk-js-arm-cosmosdb/16.0.1`;
const packageDetails = `azsdk-js-arm-cosmosdb/17.0.0-beta.1`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -180,7 +196,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-05-15";
this.apiVersion = options.apiVersion || "2024-09-01-preview";
this.databaseAccounts = new DatabaseAccountsImpl(this);
this.operations = new OperationsImpl(this);
this.database = new DatabaseImpl(this);
Expand All @@ -194,14 +210,18 @@ 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.networkSecurityPerimeterConfigurations =
new NetworkSecurityPerimeterConfigurationsImpl(this);
this.notebookWorkspaces = new NotebookWorkspacesImpl(this);
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
Expand All @@ -220,6 +240,11 @@ 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.chaosFault = new ChaosFaultImpl(this);
this.addCustomApiVersionPolicy(options.apiVersion);
}

Expand Down Expand Up @@ -264,14 +289,17 @@ 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;
networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations;
notebookWorkspaces: NotebookWorkspaces;
privateEndpointConnections: PrivateEndpointConnections;
privateLinkResources: PrivateLinkResources;
Expand All @@ -288,4 +316,9 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
restorableTables: RestorableTables;
restorableTableResources: RestorableTableResources;
service: Service;
throughputPools: ThroughputPools;
throughputPool: ThroughputPool;
throughputPoolAccounts: ThroughputPoolAccounts;
throughputPoolAccount: ThroughputPoolAccount;
chaosFault: ChaosFault;
}
2 changes: 1 addition & 1 deletion sdk/cosmosdb/arm-cosmosdb/src/lroImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
// Licensed under the MIT license.

import { AbortSignalLike } from "@azure/abort-controller";
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
Expand Down
Loading

0 comments on commit a15cfe5

Please sign in to comment.