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
158 changes: 150 additions & 8 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 3 additions & 9 deletions sdk/mongocluster/arm-mongocluster/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
# Release History

## 1.0.0-beta.2 (2024-07-30)

### Features Added

- disable hierarchy api subpath export and issue fix.

## 1.0.0-beta.1 (2024-07-05)

## 1.0.0 (2024-09-25)

### Features Added

Initial release of the Azure MongoCluster package
The package of @azure/arm-mongocluster is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
13 changes: 6 additions & 7 deletions sdk/mongocluster/arm-mongocluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f

The Microsoft Azure management API provides create, read, update, and delete functionality for Azure Cosmos DB for MongoDB vCore resources including clusters and firewall rules.

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

Expand All @@ -29,7 +28,7 @@ Install the Azure MongoClusterManagement client library for JavaScript with `npm
npm install @azure/arm-mongocluster
```

### Create and authenticate a `MongoClusterManagementClient`
### Create and authenticate a `DocumentDBClient`

To create a client object to access the Azure MongoClusterManagement API, you will need the `endpoint` of your Azure MongoClusterManagement resource and a `credential`. The Azure MongoClusterManagement client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure MongoClusterManagement resource in the [Azure Portal][azure_portal].
Expand All @@ -48,19 +47,19 @@ Set the values of the client ID, tenant ID, and client secret of the AAD applica
For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).

```javascript
const { MongoClusterManagementClient } = require("@azure/arm-mongocluster");
const { DocumentDBClient } = require("@azure/arm-mongocluster");
const { DefaultAzureCredential } = require("@azure/identity");
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new MongoClusterManagementClient(new DefaultAzureCredential(), subscriptionId);
const client = new DocumentDBClient(new DefaultAzureCredential(), subscriptionId);

// For client-side applications running in the browser, use this code instead:
// const credential = new InteractiveBrowserCredential({
// tenantId: "<YOUR_TENANT_ID>",
// clientId: "<YOUR_CLIENT_ID>"
// });
// const client = new MongoClusterManagementClient(credential, subscriptionId);
// const client = new DocumentDBClient(credential, subscriptionId);
```


Expand All @@ -69,9 +68,9 @@ To use this client library in the browser, first you need to use a bundler. For

## Key concepts

### MongoClusterManagementClient
### DocumentDBClient

`MongoClusterManagementClient` is the primary interface for developers using the Azure MongoClusterManagement client library. Explore the methods on this client object to understand the different features of the Azure MongoClusterManagement service that you can access.
`DocumentDBClient` is the primary interface for developers using the Azure MongoClusterManagement client library. Explore the methods on this client object to understand the different features of the Azure MongoClusterManagement service that you can access.

## Troubleshooting

Expand Down
6 changes: 0 additions & 6 deletions sdk/mongocluster/arm-mongocluster/assets.json

This file was deleted.

6 changes: 3 additions & 3 deletions sdk/mongocluster/arm-mongocluster/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export default [
"@azure/azure-sdk/ts-apiextractor-json-types": "warn",
"@azure/azure-sdk/ts-package-json-types": "warn",
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
"tsdoc/syntax": "warn",
"@azure/azure-sdk/ts-package-json-module": "off",
"@azure/azure-sdk/ts-package-json-files-required": "off",
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
},
},
"tsdoc/syntax": "warn"
}
}
];
Loading