Skip to content

Commit 37896a3

Browse files
author
SDKAuto
committed
CodeGen from PR 34190 in Azure/azure-rest-api-specs
Merge 23a6c43028bb3dc9dd46e06477c1091718d4b1a0 into 17365a7eb28d3ee578e5307f6091ee172bdfbfa3
1 parent 14f93f6 commit 37896a3

File tree

239 files changed

+7003
-19026
lines changed

Some content is hidden

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

239 files changed

+7003
-19026
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 13 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
# Release History
2-
3-
## 1.1.1 (Unreleased)
4-
5-
### Features Added
6-
2+
3+
## 2.0.0 (2025-04-28)
4+
75
### Breaking Changes
86

9-
### Bugs Fixed
10-
11-
### Other Changes
12-
7+
- Interface ChangesListNextOptionalParams no longer has parameter skipToken
8+
- Interface ChangesListNextOptionalParams no longer has parameter top
9+
10+
1311
## 1.1.0 (2022-11-17)
1412

1513
### Features Added
@@ -19,4 +17,4 @@
1917

2018
## 1.0.0 (2022-05-09)
2119

22-
The package of @azure/arm-changes is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
20+
The package of @azure/arm-changes is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).

sdk/changes/arm-changes/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/changes/arm-changes/README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ npm install @azure/identity
4444
```
4545

4646
You will also need to **register a new AAD application and grant access to Azure Changes** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
47-
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`.
4847

4948
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).
5049

@@ -64,16 +63,14 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
6463
import { InteractiveBrowserCredential } from "@azure/identity";
6564
import { ChangesClient } from "@azure/arm-changes";
6665

67-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
6866
const credential = new InteractiveBrowserCredential({
6967
tenantId: "<YOUR_TENANT_ID>",
70-
clientId: "<YOUR_CLIENT_ID>",
71-
});
68+
clientId: "<YOUR_CLIENT_ID>"
69+
});
7270
const client = new ChangesClient(credential, subscriptionId);
7371
```
7472

7573
### JavaScript Bundle
76-
7774
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).
7875

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

111108

112-
113109
[azure_cli]: https://learn.microsoft.com/cli/azure
114110
[azure_sub]: https://azure.microsoft.com/free/
115111
[azure_sub]: https://azure.microsoft.com/free/

sdk/changes/arm-changes/_meta.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "20df2424a278ca19437e437a7dbf3a7857a0dd9d",
2+
"commit": "b83458bed8321d59ccc947808adca8ef7fe0aa7d",
33
"readme": "specification/resources/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.8.4 --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\\resources\\resource-manager\\readme.md --use=@autorest/[email protected].0-rc.3.20221108.1 --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/resources/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/js-sdk-release-tools@2.4.2",
7-
"use": "@autorest/[email protected].0-rc.3.20221108.1"
8-
}
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.26",
7+
"use": "@autorest/typescript@^6.0.12"
8+
}

sdk/changes/arm-changes/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/changes/arm-changes/package.json

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for ChangesClient.",
6-
"version": "1.1.1",
6+
"version": "2.0.0",
77
"engines": {
88
"node": ">=18.0.0"
99
},
1010
"dependencies": {
1111
"@azure/core-auth": "^1.9.0",
12-
"@azure/core-client": "^1.9.2",
12+
"@azure/core-client": "^1.9.3",
1313
"@azure/core-paging": "^1.6.2",
14-
"@azure/core-rest-pipeline": "^1.18.2",
14+
"@azure/core-rest-pipeline": "^1.19.1",
1515
"tslib": "^2.8.1"
1616
},
1717
"keywords": [
@@ -26,20 +26,22 @@
2626
"main": "./dist/commonjs/index.js",
2727
"module": "./dist/esm/index.js",
2828
"types": "./dist/commonjs/index.d.ts",
29+
"type": "module",
2930
"devDependencies": {
3031
"@azure-tools/test-credential": "^2.0.0",
3132
"@azure-tools/test-recorder": "^4.1.0",
3233
"@azure-tools/test-utils-vitest": "^1.0.0",
3334
"@azure/dev-tool": "^1.0.0",
34-
"@azure/identity": "^4.5.0",
35+
"@azure/identity": "^4.9.1",
36+
"@azure/logger": "^1.1.4",
3537
"@types/node": "^18.0.0",
3638
"@vitest/browser": "^3.0.9",
3739
"@vitest/coverage-istanbul": "^3.0.9",
38-
"playwright": "^1.49.1",
40+
"dotenv": "^16.0.0",
41+
"playwright": "^1.52.0",
3942
"typescript": "~5.8.2",
4043
"vitest": "^3.0.9"
4144
},
42-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/changes/arm-changes",
4345
"repository": "github:Azure/azure-sdk-for-js",
4446
"bugs": {
4547
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
@@ -57,16 +59,16 @@
5759
"build:node": "echo skipped",
5860
"build:samples": "echo skipped.",
5961
"build:test": "echo skipped",
60-
"check-format": "echo skipped",
62+
"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}\" ",
6163
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
6264
"execute:samples": "echo skipped",
6365
"extract-api": "dev-tool run extract-api",
64-
"format": "echo skipped",
66+
"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}\" ",
6567
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
6668
"integration-test:browser": "echo skipped",
6769
"integration-test:node": "dev-tool run test:vitest --esm",
6870
"lint": "echo skipped",
69-
"minify": "echo skipped",
71+
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
7072
"pack": "npm pack 2>&1",
7173
"prepack": "npm run build",
7274
"test": "npm run integration-test",
@@ -87,15 +89,9 @@
8789
]
8890
},
8991
"autoPublish": true,
90-
"//sampleConfiguration": {
91-
"productName": "",
92-
"productSlugs": [
93-
"azure"
94-
],
95-
"disableDocsMs": true,
96-
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-changes?view=azure-node-preview"
97-
},
98-
"type": "module",
92+
"browser": "./dist/browser/index.js",
93+
"react-native": "./dist/react-native/index.js",
94+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/changes/arm-changes",
9995
"tshy": {
10096
"project": "./tsconfig.src.json",
10197
"exports": {
@@ -112,8 +108,6 @@
112108
],
113109
"selfLink": false
114110
},
115-
"browser": "./dist/browser/index.js",
116-
"react-native": "./dist/react-native/index.js",
117111
"exports": {
118112
"./package.json": "./package.json",
119113
".": {
@@ -135,4 +129,4 @@
135129
}
136130
}
137131
}
138-
}
132+
}

sdk/changes/arm-changes/review/arm-changes.api.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ export type ChangesGetResponse = ChangeResourceResult;
8585

8686
// @public
8787
export interface ChangesListNextOptionalParams extends coreClient.OperationOptions {
88-
skipToken?: string;
89-
top?: number;
9088
}
9189

9290
// @public

sdk/changes/arm-changes/sample.env

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
# App registration secret for AAD authentication
2-
AZURE_CLIENT_SECRET=
3-
AZURE_CLIENT_ID=
4-
AZURE_TENANT_ID=
1+
# Feel free to add your own environment variables.

sdk/changes/arm-changes/samples/v1/typescript/src/changesGetSample.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { DefaultAzureCredential } from "@azure/identity";
1414
* @summary Obtains the specified change resource for the target resource
1515
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01/examples/GetChange.json
1616
*/
17-
async function getChange() {
17+
async function getChange(): Promise<void> {
1818
const subscriptionId = "subscriptionId1";
1919
const resourceGroupName = "resourceGroup1";
2020
const resourceProviderNamespace = "resourceProvider1";

0 commit comments

Comments
 (0)