Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
796 changes: 399 additions & 397 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

333 changes: 333 additions & 0 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
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": "768c1f32bbfdcea80bdadf92dc2fba2c114c2dda",
"commit": "fdd06c065b0c68c1b342c738118e8fcf370c406f",
"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/typescript@6.0.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/js-sdk-release-tools@2.7.11",
"use": "@autorest/typescript@6.0.23"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.10",
"use": "@autorest/typescript@^6.0.12"
}
16 changes: 4 additions & 12 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",
"version": "17.0.0-beta.1",
"engines": {
"node": ">=18.0.0"
},
Expand All @@ -30,7 +30,7 @@
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"mkdirp": "^3.0.1",
"typescript": "~5.5.3",
"typescript": "~5.4.5",
"uglify-js": "^3.4.9",
"rimraf": "^5.0.0",
"dotenv": "^16.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,393 changes: 1,354 additions & 39 deletions sdk/cosmosdb/arm-cosmosdb/review/arm-cosmosdb.api.md

Large diffs are not rendered by default.

35 changes: 32 additions & 3 deletions sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
} from "@azure/core-rest-pipeline";
import * as coreAuth from "@azure/core-auth";
import {
NetworkSecurityPerimeterConfigurationsImpl,
DatabaseAccountsImpl,
OperationsImpl,
DatabaseImpl,
Expand All @@ -28,12 +29,14 @@ import {
CollectionPartitionImpl,
PartitionKeyRangeIdImpl,
PartitionKeyRangeIdRegionImpl,
GraphResourcesImpl,
SqlResourcesImpl,
MongoDBResourcesImpl,
TableResourcesImpl,
CassandraResourcesImpl,
GremlinResourcesImpl,
LocationsImpl,
DataTransferJobsImpl,
CassandraClustersImpl,
CassandraDataCentersImpl,
NotebookWorkspacesImpl,
Expand All @@ -52,8 +55,13 @@ import {
RestorableTablesImpl,
RestorableTableResourcesImpl,
ServiceImpl,
ThroughputPoolsImpl,
ThroughputPoolImpl,
ThroughputPoolAccountsImpl,
ThroughputPoolAccountImpl,
} from "./operations";
import {
NetworkSecurityPerimeterConfigurations,
DatabaseAccounts,
Operations,
Database,
Expand All @@ -67,12 +75,14 @@ import {
CollectionPartition,
PartitionKeyRangeId,
PartitionKeyRangeIdRegion,
GraphResources,
SqlResources,
MongoDBResources,
TableResources,
CassandraResources,
GremlinResources,
Locations,
DataTransferJobs,
CassandraClusters,
CassandraDataCenters,
NotebookWorkspaces,
Expand All @@ -91,6 +101,10 @@ import {
RestorableTables,
RestorableTableResources,
Service,
ThroughputPools,
ThroughputPool,
ThroughputPoolAccounts,
ThroughputPoolAccount,
} from "./operationsInterfaces";
import { CosmosDBManagementClientOptionalParams } from "./models";

Expand All @@ -102,7 +116,7 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
/**
* Initializes a new instance of the CosmosDBManagementClient class.
* @param credentials Subscription credentials which uniquely identify client subscription.
* @param subscriptionId The ID of the target subscription.
* @param subscriptionId The ID of the target subscription. The value must be an UUID.
* @param options The parameter options
*/
constructor(
Expand All @@ -126,7 +140,7 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
credential: credentials,
};

const packageDetails = `azsdk-js-arm-cosmosdb/16.0.0`;
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 +194,9 @@ 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-05-15-preview";
this.networkSecurityPerimeterConfigurations =
new NetworkSecurityPerimeterConfigurationsImpl(this);
this.databaseAccounts = new DatabaseAccountsImpl(this);
this.operations = new OperationsImpl(this);
this.database = new DatabaseImpl(this);
Expand All @@ -194,12 +210,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.notebookWorkspaces = new NotebookWorkspacesImpl(this);
Expand All @@ -220,6 +238,10 @@ 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 @@ -251,6 +273,7 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
this.pipeline.addPolicy(apiVersionPolicy);
}

networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations;
databaseAccounts: DatabaseAccounts;
operations: Operations;
database: Database;
Expand All @@ -264,12 +287,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;
notebookWorkspaces: NotebookWorkspaces;
Expand All @@ -288,4 +313,8 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
restorableTables: RestorableTables;
restorableTableResources: RestorableTableResources;
service: Service;
throughputPools: ThroughputPools;
throughputPool: ThroughputPool;
throughputPoolAccounts: ThroughputPoolAccounts;
throughputPoolAccount: ThroughputPoolAccount;
}
Loading