Skip to content

Commit 2ef7e61

Browse files
author
SDKAuto
committed
CodeGen from PR 34639 in Azure/azure-rest-api-specs
Merge 2ce19638cc9fe6b2f4683228fa0dfacad4cc0b23 into 903e7ca5b4afaa5828df1fb709aa0f5801966087
1 parent 90b2d3c commit 2ef7e61

File tree

122 files changed

+12408
-11870
lines changed

Some content is hidden

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

122 files changed

+12408
-11870
lines changed

sdk/security/arm-security/CHANGELOG.md

+739-7
Large diffs are not rendered by default.

sdk/security/arm-security/LICENSE

+1-1
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/security/arm-security/README.md

+2-6
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 SecurityCenter** 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 { SecurityCenter } from "@azure/arm-security";
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 SecurityCenter(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/security/arm-security/_meta.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "c43d0d41a6edc75a2cf452e33ea9344863db3c9e",
2+
"commit": "dd35fb8da48a4cf2e22a4a8e742cbe61ce2ae284",
33
"readme": "specification/security/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\\security\\resource-manager\\readme.md --use=@autorest/[email protected].18 --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/security/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].18"
8-
}
6+
"release_tool": "@azure-tools/[email protected].27",
7+
"use": "@autorest/typescript@^6.0.12"
8+
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
}
2929
}
3030
}
31-
}
31+
}

sdk/security/arm-security/package.json

+27-27
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,41 @@
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.19.0",
16+
"@azure/core-rest-pipeline": "^1.20.0",
1717
"tslib": "^2.8.1"
1818
},
1919
"keywords": [
2020
"node",
2121
"azure",
2222
"typescript",
2323
"browser",
24-
"isomorphic"
24+
"isomorphic",
25+
"cloud"
2526
],
2627
"license": "MIT",
2728
"main": "./dist/commonjs/index.js",
2829
"module": "./dist/esm/index.js",
2930
"types": "./dist/commonjs/index.d.ts",
31+
"type": "module",
3032
"devDependencies": {
3133
"@azure-tools/test-credential": "^2.0.0",
3234
"@azure-tools/test-recorder": "^4.1.0",
3335
"@azure-tools/test-utils-vitest": "^1.0.0",
3436
"@azure/dev-tool": "^1.0.0",
35-
"@azure/identity": "^4.6.0",
36-
"@azure/logger": "^1.1.4",
37+
"@azure/identity": "^4.9.1",
38+
"@azure/logger": "^1.2.0",
3739
"@types/node": "^18.0.0",
3840
"@vitest/browser": "^3.0.9",
3941
"@vitest/coverage-istanbul": "^3.0.9",
4042
"dotenv": "^16.0.0",
41-
"playwright": "^1.50.1",
43+
"playwright": "^1.52.0",
4244
"typescript": "~5.8.2",
4345
"vitest": "^3.0.9"
4446
},
45-
"repository": {
46-
"type": "git",
47-
"url": "https://github.com/Azure/azure-sdk-for-js.git"
48-
},
47+
"repository": "github:Azure/azure-sdk-for-js",
4948
"bugs": {
5049
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
5150
},
@@ -58,20 +57,30 @@
5857
],
5958
"scripts": {
6059
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
60+
"build:browser": "echo skipped",
61+
"build:node": "echo skipped",
6162
"build:samples": "echo skipped.",
62-
"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}\" ",
6365
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
6466
"execute:samples": "echo skipped",
6567
"extract-api": "dev-tool run extract-api",
66-
"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",
6772
"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",
6874
"pack": "npm pack 2>&1",
6975
"prepack": "npm run build",
70-
"test": "npm run test:node && npm run test:browser",
76+
"test": "npm run integration-test",
7177
"test:browser": "echo skipped",
7278
"test:node": "dev-tool run test:vitest",
73-
"test:node:esm": "dev-tool run test:vitest --esm",
74-
"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"
7584
},
7685
"sideEffects": false,
7786
"//metadata": {
@@ -83,16 +92,9 @@
8392
]
8493
},
8594
"autoPublish": true,
95+
"browser": "./dist/browser/index.js",
96+
"react-native": "./dist/react-native/index.js",
8697
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/security/arm-security",
87-
"//sampleConfiguration": {
88-
"productName": "",
89-
"productSlugs": [
90-
"azure"
91-
],
92-
"disableDocsMs": true,
93-
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-security?view=azure-node-preview"
94-
},
95-
"type": "module",
9698
"tshy": {
9799
"project": "./tsconfig.src.json",
98100
"exports": {
@@ -109,8 +111,6 @@
109111
],
110112
"selfLink": false
111113
},
112-
"browser": "./dist/browser/index.js",
113-
"react-native": "./dist/react-native/index.js",
114114
"exports": {
115115
"./package.json": "./package.json",
116116
".": {
@@ -132,4 +132,4 @@
132132
}
133133
}
134134
}
135-
}
135+
}

0 commit comments

Comments
 (0)