Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-mongocluster] [test tsp breakingchange] 09 change both tsp and swagger #12532

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
836 changes: 420 additions & 416 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

14 changes: 0 additions & 14 deletions sdk/mongocluster/arm-mongocluster/.eslintrc.json

This file was deleted.

13 changes: 0 additions & 13 deletions sdk/mongocluster/arm-mongocluster/CHANGELOG.md

This file was deleted.

20 changes: 14 additions & 6 deletions sdk/mongocluster/arm-mongocluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ The Microsoft Azure management API provides create, read, update, and delete fun
[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) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

## Getting started

Expand All @@ -29,7 +30,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 `MongoClusterManagementClientTest`

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 +49,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 { MongoClusterManagementClientTest } = 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 MongoClusterManagementClientTest(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 MongoClusterManagementClientTest(credential, subscriptionId);
```


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

## Key concepts

### MongoClusterManagementClient
### MongoClusterManagementClientTest

`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.
`MongoClusterManagementClientTest` 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 All @@ -86,6 +87,9 @@ setLogLevel("info");

For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).

## Next steps

Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.

## Contributing

Expand All @@ -95,6 +99,10 @@ If you'd like to contribute to this library, please read the [contributing guide

- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmongocluster%2Farm-mongocluster%2FREADME.png)

[azure_cli]: https://docs.microsoft.com/cli/azure
[azure_sub]: https://azure.microsoft.com/free/
[azure_sub]: https://azure.microsoft.com/free/
[azure_portal]: https://portal.azure.com
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
Expand Down
8 changes: 8 additions & 0 deletions sdk/mongocluster/arm-mongocluster/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"commit": "988d78cda7f7f3af632cdb4ca1c46ec25d4da018",
"readme": "specification/mongocluster/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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/mongocluster/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
"repository_url": "https://github.com/test-repo-billy/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected]",
"use": "@autorest/typescript@^6.0.12"
}
27 changes: 20 additions & 7 deletions sdk/mongocluster/arm-mongocluster/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./dist/esm/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": {
"enabled": true
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/arm-mongocluster.d.ts"
},
"messages": {
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
"tsdocMessageReporting": {
"default": {
"logLevel": "none"
}
},
"extractorMessageReporting": {
"ae-missing-release-tag": { "logLevel": "none" },
"ae-unresolved-link": { "logLevel": "none" }
"ae-missing-release-tag": {
"logLevel": "none"
},
"ae-unresolved-link": {
"logLevel": "none"
}
}
}
}
}
6 changes: 0 additions & 6 deletions sdk/mongocluster/arm-mongocluster/assets.json

This file was deleted.

Loading