Skip to content

Commit 2b43af3

Browse files
author
SDKAuto
committed
CodeGen from PR 34281 in Azure/azure-rest-api-specs
Merge e9ddc498ad4182440bfa8e6aae15efa85e08f740 into 761d8b58e465b26eddb8ad70dda3cde7b4228bdf
1 parent 26158f3 commit 2b43af3

File tree

191 files changed

+6395
-11998
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+6395
-11998
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 40 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/datadog/arm-datadog/CHANGELOG.md

Lines changed: 0 additions & 61 deletions
This file was deleted.

sdk/datadog/arm-datadog/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

sdk/datadog/arm-datadog/README.md

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
# Azure Microsoft Datadog client library for JavaScript
1+
# Azure Datadog client library for JavaScript
22

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Microsoft Datadog client.
3+
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Datadog client.
44

5-
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datadog/arm-datadog) |
6-
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-datadog) |
7-
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-datadog) |
8-
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
5+
6+
7+
Key links:
8+
9+
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datadog/arm-datadog)
10+
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-datadog)
11+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-datadog?view=azure-node-preview)
12+
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datadog/arm-datadog/samples)
913

1014
## Getting started
1115

@@ -22,16 +26,16 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP
2226

2327
### Install the `@azure/arm-datadog` package
2428

25-
Install the Azure Microsoft Datadog client library for JavaScript with `npm`:
29+
Install the Azure Datadog client library for JavaScript with `npm`:
2630

2731
```bash
2832
npm install @azure/arm-datadog
2933
```
3034

31-
### Create and authenticate a `MicrosoftDatadogClient`
35+
### Create and authenticate a `DatadogClient`
3236

33-
To create a client object to access the Azure Microsoft Datadog API, you will need the `endpoint` of your Azure Microsoft Datadog resource and a `credential`. The Azure Microsoft Datadog client can use Azure Active Directory credentials to authenticate.
34-
You can find the endpoint for your Azure Microsoft Datadog resource in the [Azure Portal][azure_portal].
37+
To create a client object to access the Azure Datadog API, you will need the `endpoint` of your Azure Datadog resource and a `credential`. The Azure Datadog client can use Azure Active Directory credentials to authenticate.
38+
You can find the endpoint for your Azure Datadog resource in the [Azure Portal][azure_portal].
3539

3640
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
3741

@@ -41,44 +45,42 @@ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below
4145
npm install @azure/identity
4246
```
4347

44-
You will also need to **register a new AAD application and grant access to Azure Microsoft Datadog** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
45-
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
48+
You will also need to **register a new AAD application and grant access to Azure Datadog** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
4649

4750
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
4851

4952
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
5053

5154
```ts snippet:ReadmeSampleCreateClient_Node
52-
import { MicrosoftDatadogClient } from "@azure/arm-datadog";
55+
import { DatadogClient } from "@azure/arm-datadog";
5356
import { DefaultAzureCredential } from "@azure/identity";
5457

5558
const subscriptionId = "00000000-0000-0000-0000-000000000000";
56-
const client = new MicrosoftDatadogClient(new DefaultAzureCredential(), subscriptionId);
59+
const client = new DatadogClient(new DefaultAzureCredential(), subscriptionId);
5760
```
5861

5962
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
6063

6164
```ts snippet:ReadmeSampleCreateClient_Browser
6265
import { InteractiveBrowserCredential } from "@azure/identity";
63-
import { MicrosoftDatadogClient } from "@azure/arm-datadog";
66+
import { DatadogClient } from "@azure/arm-datadog";
6467

65-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
6668
const credential = new InteractiveBrowserCredential({
6769
tenantId: "<YOUR_TENANT_ID>",
68-
clientId: "<YOUR_CLIENT_ID>",
69-
});
70-
const client = new MicrosoftDatadogClient(credential, subscriptionId);
70+
clientId: "<YOUR_CLIENT_ID>"
71+
});
72+
const client = new DatadogClient(credential, subscriptionId);
7173
```
7274

73-
### JavaScript Bundle
7475

76+
### JavaScript Bundle
7577
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
7678

7779
## Key concepts
7880

79-
### MicrosoftDatadogClient
81+
### DatadogClient
8082

81-
`MicrosoftDatadogClient` is the primary interface for developers using the Azure Microsoft Datadog client library. Explore the methods on this client object to understand the different features of the Azure Microsoft Datadog service that you can access.
83+
`DatadogClient` is the primary interface for developers using the Azure Datadog client library. Explore the methods on this client object to understand the different features of the Azure Datadog service that you can access.
8284

8385
## Troubleshooting
8486

@@ -96,7 +98,7 @@ For more detailed instructions on how to enable logs, you can look at the [@azur
9698

9799
## Next steps
98100

99-
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.
101+
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datadog/arm-datadog/samples) directory for detailed examples on how to use this library.
100102

101103
## Contributing
102104

@@ -106,10 +108,6 @@ If you'd like to contribute to this library, please read the [contributing guide
106108

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

109-
110-
111-
[azure_cli]: https://learn.microsoft.com/cli/azure
112-
[azure_sub]: https://azure.microsoft.com/free/
113111
[azure_sub]: https://azure.microsoft.com/free/
114112
[azure_portal]: https://portal.azure.com
115113
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity

sdk/datadog/arm-datadog/_meta.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

sdk/datadog/arm-datadog/assets.json

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
2+
3+
export default azsdkEslint.config([
4+
{
5+
rules: {
6+
"@azure/azure-sdk/ts-modules-only-named": "warn",
7+
"@azure/azure-sdk/ts-package-json-types": "warn",
8+
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
9+
"@azure/azure-sdk/ts-package-json-files-required": "off",
10+
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
11+
"tsdoc/syntax": "warn",
12+
},
13+
},
14+
]);

0 commit comments

Comments
 (0)