Skip to content

Commit ba832f6

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

35 files changed

+3378
-2860
lines changed

sdk/datadog/arm-datadog/CHANGELOG.md

Lines changed: 80 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,84 @@
11
# Release History
22

3+
## 4.0.0 (2025-05-09)
4+
5+
### Features Added
6+
7+
- Added operation group BillingInfo
8+
- Added Interface BillingInfoGetOptionalParams
9+
- Added Interface BillingInfoResponse
10+
- Added Interface CreationSupportedListNextOptionalParams
11+
- Added Interface MarketplaceSaaSInfo
12+
- Added Interface MonitoredSubscriptionsCreateorUpdateHeaders
13+
- Added Interface MonitoredSubscriptionsDeleteHeaders
14+
- Added Interface MonitoredSubscriptionsListNextOptionalParams
15+
- Added Interface MonitoredSubscriptionsUpdateHeaders
16+
- Added Interface MonitorsCreateHeaders
17+
- Added Interface MonitorsDeleteHeaders
18+
- Added Interface MonitorsUpdateHeaders
19+
- Added Interface PartnerBillingEntity
20+
- Added Interface ProxyResource
21+
- Added Interface Resource
22+
- Added Interface SingleSignOnConfigurationsCreateOrUpdateHeaders
23+
- Added Interface TrackedResource
24+
- Added Type Alias BillingInfoGetResponse
25+
- Added Type Alias CreationSupportedListNextResponse
26+
- Added Type Alias MonitoredSubscriptionsListNextResponse
27+
- Interface CreateResourceSupportedResponseList has a new optional parameter nextLink
28+
- Interface LinkedResource has a new optional parameter location
29+
- Interface MonitoredSubscriptionPropertiesList has a new optional parameter nextLink
30+
- Interface MonitoringTagRulesProperties has a new optional parameter customMetrics
31+
32+
### Breaking Changes
33+
34+
- Operation MarketplaceAgreements.createOrUpdate has a new signature
35+
- Operation MonitoredSubscriptions.beginCreateorUpdate has a new signature
36+
- Operation MonitoredSubscriptions.beginCreateorUpdateAndWait has a new signature
37+
- Operation MonitoredSubscriptions.beginUpdate has a new signature
38+
- Operation MonitoredSubscriptions.beginUpdateAndWait has a new signature
39+
- Operation Monitors.beginCreate has a new signature
40+
- Operation Monitors.beginCreateAndWait has a new signature
41+
- Operation Monitors.beginUpdate has a new signature
42+
- Operation Monitors.beginUpdateAndWait has a new signature
43+
- Operation SingleSignOnConfigurations.beginCreateOrUpdate has a new signature
44+
- Operation SingleSignOnConfigurations.beginCreateOrUpdateAndWait has a new signature
45+
- Operation TagRules.createOrUpdate has a new signature
46+
- Interface DatadogMonitorResource no longer has parameter id
47+
- Interface DatadogMonitorResource no longer has parameter name
48+
- Interface DatadogMonitorResource no longer has parameter systemData
49+
- Interface DatadogMonitorResource no longer has parameter type
50+
- Interface DatadogSingleSignOnResource no longer has parameter id
51+
- Interface DatadogSingleSignOnResource no longer has parameter name
52+
- Interface DatadogSingleSignOnResource no longer has parameter systemData
53+
- Interface DatadogSingleSignOnResource no longer has parameter type
54+
- Interface MarketplaceAgreementsCreateOrUpdateOptionalParams no longer has parameter body
55+
- Interface MonitoredSubscriptionProperties no longer has parameter id
56+
- Interface MonitoredSubscriptionProperties no longer has parameter name
57+
- Interface MonitoredSubscriptionProperties no longer has parameter type
58+
- Interface MonitoredSubscriptionsCreateorUpdateOptionalParams no longer has parameter body
59+
- Interface MonitoredSubscriptionsUpdateOptionalParams no longer has parameter body
60+
- Interface MonitoringTagRules no longer has parameter id
61+
- Interface MonitoringTagRules no longer has parameter name
62+
- Interface MonitoringTagRules no longer has parameter systemData
63+
- Interface MonitoringTagRules no longer has parameter type
64+
- Interface MonitorsCreateOptionalParams no longer has parameter body
65+
- Interface MonitorsUpdateOptionalParams no longer has parameter body
66+
- Interface SingleSignOnConfigurationsCreateOrUpdateOptionalParams no longer has parameter body
67+
- Interface TagRulesCreateOrUpdateOptionalParams no longer has parameter body
68+
- Parameter value of interface CreateResourceSupportedResponseList is now required
69+
- Parameter value of interface DatadogAgreementResourceListResponse is now required
70+
- Parameter value of interface DatadogApiKeyListResponse is now required
71+
- Parameter value of interface DatadogHostListResponse is now required
72+
- Parameter value of interface DatadogMonitorResourceListResponse is now required
73+
- Parameter value of interface DatadogSingleSignOnResourceListResponse is now required
74+
- Parameter value of interface LinkedResourceListResponse is now required
75+
- Parameter value of interface MonitoredResourceListResponse is now required
76+
- Parameter subscriptionId of interface MonitoredSubscription is now required
77+
- Parameter value of interface MonitoredSubscriptionPropertiesList is now required
78+
- Parameter value of interface MonitoringTagRulesListResponse is now required
79+
- Parameter value of interface OperationListResult is now required
80+
81+
382
## 3.1.0 (2023-10-09)
483

584
### Features Added
@@ -46,7 +125,7 @@
46125

47126
## 3.0.1 (2022-04-18)
48127

49-
### Features Added
128+
**features**
50129

51130
- bug fix
52131

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: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

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

5+
6+
57
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datadog/arm-datadog) |
68
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-datadog) |
79
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-datadog) |
@@ -42,7 +44,6 @@ npm install @azure/identity
4244
```
4345

4446
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`.
4647

4748
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).
4849

@@ -62,16 +63,14 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
6263
import { InteractiveBrowserCredential } from "@azure/identity";
6364
import { MicrosoftDatadogClient } from "@azure/arm-datadog";
6465

65-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
6666
const credential = new InteractiveBrowserCredential({
6767
tenantId: "<YOUR_TENANT_ID>",
68-
clientId: "<YOUR_CLIENT_ID>",
69-
});
68+
clientId: "<YOUR_CLIENT_ID>"
69+
});
7070
const client = new MicrosoftDatadogClient(credential, subscriptionId);
7171
```
7272

7373
### JavaScript Bundle
74-
7574
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).
7675

7776
## Key concepts
@@ -107,7 +106,6 @@ If you'd like to contribute to this library, please read the [contributing guide
107106
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
108107

109108

110-
111109
[azure_cli]: https://learn.microsoft.com/cli/azure
112110
[azure_sub]: https://azure.microsoft.com/free/
113111
[azure_sub]: https://azure.microsoft.com/free/

sdk/datadog/arm-datadog/_meta.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "583e15ceb4cf23dc23b2300bd352f16d781e69ac",
2+
"commit": "2ff3228b987ab59dff3d5df9a3192ed7c5567e3e",
33
"readme": "specification/datadog/resource-manager/readme.md",
4-
"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\\datadog\\resource-manager\\readme.md --use=@autorest/[email protected] --generate-sample=true",
4+
"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/datadog/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/[email protected].4",
7-
"use": "@autorest/[email protected]"
6+
"release_tool": "@azure-tools/[email protected].26",
7+
"use": "@autorest/typescript@^6.0.12"
88
}

sdk/datadog/arm-datadog/api-extractor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
}
2929
}
3030
}
31-
}
31+
}

sdk/datadog/arm-datadog/package.json

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for MicrosoftDatadogClient.",
6-
"version": "3.1.0",
6+
"version": "4.0.0",
77
"engines": {
88
"node": ">=18.0.0"
99
},
1010
"dependencies": {
1111
"@azure/abort-controller": "^2.1.2",
1212
"@azure/core-auth": "^1.9.0",
13-
"@azure/core-client": "^1.9.2",
13+
"@azure/core-client": "^1.9.4",
1414
"@azure/core-lro": "^2.5.4",
1515
"@azure/core-paging": "^1.6.2",
16-
"@azure/core-rest-pipeline": "^1.18.2",
16+
"@azure/core-rest-pipeline": "^1.20.0",
1717
"tslib": "^2.8.1"
1818
},
1919
"keywords": [
@@ -28,18 +28,19 @@
2828
"main": "./dist/commonjs/index.js",
2929
"module": "./dist/esm/index.js",
3030
"types": "./dist/commonjs/index.d.ts",
31+
"type": "module",
3132
"devDependencies": {
3233
"@azure-tools/test-credential": "^2.0.0",
3334
"@azure-tools/test-recorder": "^4.1.0",
3435
"@azure-tools/test-utils-vitest": "^1.0.0",
3536
"@azure/dev-tool": "^1.0.0",
36-
"@azure/identity": "^4.6.0",
37-
"@azure/logger": "^1.1.4",
37+
"@azure/identity": "^4.9.1",
38+
"@azure/logger": "^1.2.0",
3839
"@types/node": "^18.0.0",
3940
"@vitest/browser": "^3.0.9",
4041
"@vitest/coverage-istanbul": "^3.0.9",
4142
"dotenv": "^16.0.0",
42-
"playwright": "^1.50.0",
43+
"playwright": "^1.52.0",
4344
"typescript": "~5.8.2",
4445
"vitest": "^3.0.9"
4546
},
@@ -56,20 +57,30 @@
5657
],
5758
"scripts": {
5859
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
60+
"build:browser": "echo skipped",
61+
"build:node": "echo skipped",
5962
"build:samples": "echo skipped.",
60-
"check-format": "echo skipped",
63+
"build:test": "echo skipped",
64+
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
6165
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
6266
"execute:samples": "echo skipped",
6367
"extract-api": "dev-tool run extract-api",
64-
"format": "echo skipped",
68+
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
69+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
70+
"integration-test:browser": "echo skipped",
71+
"integration-test:node": "dev-tool run test:vitest --esm",
6572
"lint": "echo skipped",
73+
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
6674
"pack": "npm pack 2>&1",
6775
"prepack": "npm run build",
68-
"test": "npm run test:node && npm run test:browser",
76+
"test": "npm run integration-test",
6977
"test:browser": "echo skipped",
7078
"test:node": "dev-tool run test:vitest",
71-
"test:node:esm": "dev-tool run test:vitest --esm",
72-
"update-snippets": "dev-tool run update-snippets"
79+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
80+
"unit-test:browser": "echo skipped",
81+
"unit-test:node": "dev-tool run test:vitest",
82+
"update-snippets": "dev-tool run update-snippets",
83+
"test:node:esm": "dev-tool run test:vitest --esm"
7384
},
7485
"sideEffects": false,
7586
"//metadata": {
@@ -81,16 +92,9 @@
8192
]
8293
},
8394
"autoPublish": true,
95+
"browser": "./dist/browser/index.js",
96+
"react-native": "./dist/react-native/index.js",
8497
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datadog/arm-datadog",
85-
"//sampleConfiguration": {
86-
"productName": "",
87-
"productSlugs": [
88-
"azure"
89-
],
90-
"disableDocsMs": true,
91-
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-datadog?view=azure-node-preview"
92-
},
93-
"type": "module",
9498
"tshy": {
9599
"project": "./tsconfig.src.json",
96100
"exports": {
@@ -107,8 +111,6 @@
107111
],
108112
"selfLink": false
109113
},
110-
"browser": "./dist/browser/index.js",
111-
"react-native": "./dist/react-native/index.js",
112114
"exports": {
113115
"./package.json": "./package.json",
114116
".": {
@@ -130,4 +132,4 @@
130132
}
131133
}
132134
}
133-
}
135+
}

0 commit comments

Comments
 (0)