Skip to content

Commit 05c8453

Browse files
author
SDKAuto
committed
CodeGen from PR 15868 in Azure/azure-rest-api-specs
Merge 0541bedf71b794918be478af00203c6117b09b01 into 191a721de644cc3f872f4fe9d676cf366083a106
1 parent af0330b commit 05c8453

File tree

122 files changed

+1312
-44450
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

+1312
-44450
lines changed

sdk/security/arm-security/README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/
3636

3737
In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
3838
Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
39-
#### nodejs - Authentication, client creation, and list complianceResults as an example written in JavaScript.
39+
#### nodejs - Authentication, client creation, and listBySubscription standards as an example written in JavaScript.
4040

4141
##### Sample code
4242

@@ -49,8 +49,7 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
4949
// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead.
5050
const creds = new DefaultAzureCredential();
5151
const client = new SecurityCenter(creds, subscriptionId);
52-
const scope = "testscope";
53-
client.complianceResults.list(scope).then((result) => {
52+
client.standards.listBySubscription().then((result) => {
5453
console.log("The result is:");
5554
console.log(result);
5655
}).catch((err) => {
@@ -59,7 +58,7 @@ client.complianceResults.list(scope).then((result) => {
5958
});
6059
```
6160

62-
#### browser - Authentication, client creation, and list complianceResults as an example written in JavaScript.
61+
#### browser - Authentication, client creation, and listBySubscription standards as an example written in JavaScript.
6362

6463
In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser.
6564
- See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser.
@@ -87,8 +86,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8786
tenant: "<optional tenant for your organization>"
8887
});
8988
const client = new Azure.ArmSecurity.SecurityCenter(creds, subscriptionId);
90-
const scope = "testscope";
91-
client.complianceResults.list(scope).then((result) => {
89+
client.standards.listBySubscription().then((result) => {
9290
console.log("The result is:");
9391
console.log(result);
9492
}).catch((err) => {

sdk/security/arm-security/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"rollup-plugin-sourcemaps": "^0.4.2",
2828
"uglify-js": "^3.6.0"
2929
},
30-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/security/arm-security",
30+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/security/arm-security",
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/Azure/azure-sdk-for-js.git"

sdk/security/arm-security/src/models/adaptiveApplicationControlsMappers.ts

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

sdk/security/arm-security/src/models/adaptiveNetworkHardeningsMappers.ts

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

sdk/security/arm-security/src/models/advancedThreatProtectionMappers.ts

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

0 commit comments

Comments
 (0)