Skip to content

Commit 7431d5a

Browse files
author
SDK Automation
committed
Generated from 68f447a5616a98624124cb385dfcca4be142dd0f
Merge branch 'master' into dev-security-Microsoft.Security-2019-08-01
1 parent 6801e5a commit 7431d5a

File tree

85 files changed

+20189
-3339
lines changed

Some content is hidden

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

85 files changed

+20189
-3339
lines changed

sdk/security/arm-security/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2018 Microsoft
3+
Copyright (c) 2020 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/security/arm-security/README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,24 @@ This package contains an isomorphic SDK for SecurityCenter.
99

1010
### How to Install
1111

12-
```
12+
```bash
1313
npm install @azure/arm-security
1414
```
1515

1616
### How to use
1717

18-
#### nodejs - Authentication, client creation and list pricings as an example written in TypeScript.
18+
#### nodejs - Authentication, client creation and list complianceResults as an example written in TypeScript.
1919

2020
##### Install @azure/ms-rest-nodeauth
2121

22-
```
23-
npm install @azure/ms-rest-nodeauth
22+
- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
23+
```bash
24+
npm install @azure/ms-rest-nodeauth@"^3.0.0"
2425
```
2526

2627
##### Sample code
2728

28-
```ts
29+
```typescript
2930
import * as msRest from "@azure/ms-rest-js";
3031
import * as msRestAzure from "@azure/ms-rest-azure-js";
3132
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
@@ -34,7 +35,8 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
3435

3536
msRestNodeAuth.interactiveLogin().then((creds) => {
3637
const client = new SecurityCenter(creds, subscriptionId);
37-
client.pricings.list().then((result) => {
38+
const scope = "testscope";
39+
client.complianceResults.list(scope).then((result) => {
3840
console.log("The result is:");
3941
console.log(result);
4042
});
@@ -43,11 +45,11 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
4345
});
4446
```
4547

46-
#### browser - Authentication, client creation and list pricings as an example written in JavaScript.
48+
#### browser - Authentication, client creation and list complianceResults as an example written in JavaScript.
4749

4850
##### Install @azure/ms-rest-browserauth
4951

50-
```
52+
```bash
5153
npm install @azure/ms-rest-browserauth
5254
```
5355

@@ -77,7 +79,8 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
7779
authManager.login();
7880
}
7981
const client = new Azure.ArmSecurity.SecurityCenter(res.creds, subscriptionId);
80-
client.pricings.list().then((result) => {
82+
const scope = "testscope";
83+
client.complianceResults.list(scope).then((result) => {
8184
console.log("The result is:");
8285
console.log(result);
8386
}).catch((err) => {
@@ -95,5 +98,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
9598

9699
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
97100

98-
99-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fsecurity%2Farm-security%2FREADME.png)
101+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/security/arm-security/README.png)

sdk/security/arm-security/package.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "SecurityCenter Library with typescript type definitions for node.js and browser.",
55
"version": "1.2.0",
66
"dependencies": {
7-
"@azure/ms-rest-azure-js": "^1.1.0",
8-
"@azure/ms-rest-js": "^1.1.0",
9-
"tslib": "^1.9.3"
7+
"@azure/ms-rest-azure-js": "^2.0.1",
8+
"@azure/ms-rest-js": "^2.0.4",
9+
"tslib": "^1.10.0"
1010
},
1111
"keywords": [
1212
"node",
@@ -20,18 +20,19 @@
2020
"module": "./esm/securityCenter.js",
2121
"types": "./esm/securityCenter.d.ts",
2222
"devDependencies": {
23-
"typescript": "^3.1.1",
24-
"rollup": "^0.66.2",
25-
"rollup-plugin-node-resolve": "^3.4.0",
26-
"uglify-js": "^3.4.9"
23+
"typescript": "^3.5.3",
24+
"rollup": "^1.18.0",
25+
"rollup-plugin-node-resolve": "^5.2.0",
26+
"rollup-plugin-sourcemaps": "^0.4.2",
27+
"uglify-js": "^3.6.0"
2728
},
28-
"homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/security/arm-security",
29+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/security/arm-security",
2930
"repository": {
3031
"type": "git",
31-
"url": "https://github.com/azure/azure-sdk-for-js.git"
32+
"url": "https://github.com/Azure/azure-sdk-for-js.git"
3233
},
3334
"bugs": {
34-
"url": "https://github.com/azure/azure-sdk-for-js/issues"
35+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
3536
},
3637
"files": [
3738
"dist/**/*.js",
@@ -43,6 +44,7 @@
4344
"esm/**/*.d.ts",
4445
"esm/**/*.d.ts.map",
4546
"src/**/*.ts",
47+
"README.md",
4648
"rollup.config.js",
4749
"tsconfig.json"
4850
],
Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
import rollup from "rollup";
12
import nodeResolve from "rollup-plugin-node-resolve";
3+
import sourcemaps from "rollup-plugin-sourcemaps";
4+
25
/**
3-
* @type {import('rollup').RollupFileOptions}
6+
* @type {rollup.RollupFileOptions}
47
*/
58
const config = {
6-
input: './esm/securityCenter.js',
7-
external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"],
9+
input: "./esm/securityCenter.js",
10+
external: [
11+
"@azure/ms-rest-js",
12+
"@azure/ms-rest-azure-js"
13+
],
814
output: {
915
file: "./dist/arm-security.js",
1016
format: "umd",
@@ -16,16 +22,16 @@ const config = {
1622
},
1723
banner: `/*
1824
* Copyright (c) Microsoft Corporation. All rights reserved.
19-
* Licensed under the MIT License. See License.txt in the project root for
20-
* license information.
25+
* Licensed under the MIT License. See License.txt in the project root for license information.
2126
*
2227
* Code generated by Microsoft (R) AutoRest Code Generator.
23-
* Changes may cause incorrect behavior and will be lost if the code is
24-
* regenerated.
28+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
2529
*/`
2630
},
2731
plugins: [
28-
nodeResolve({ module: true })
32+
nodeResolve({ mainFields: ['module', 'main'] }),
33+
sourcemaps()
2934
]
3035
};
36+
3137
export default config;
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for license information.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
export {
10+
discriminators,
11+
AppWhitelistingGroup,
12+
AppWhitelistingGroups,
13+
AppWhitelistingIssueSummary,
14+
CloudError,
15+
PathRecommendation,
16+
ProtectionMode,
17+
PublisherInfo,
18+
UserRecommendation,
19+
VmRecommendation
20+
} from "../models/mappers";
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for license information.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
export {
10+
discriminators,
11+
ActiveConnectionsNotInAllowedRange,
12+
AdaptiveNetworkHardening,
13+
AdaptiveNetworkHardeningEnforceRequest,
14+
AdaptiveNetworkHardeningsList,
15+
AdditionalData,
16+
AdvancedThreatProtectionSetting,
17+
Alert,
18+
AlertConfidenceReason,
19+
AlertEntity,
20+
AlertsSuppressionRule,
21+
AllowlistCustomAlertRule,
22+
AmqpC2DMessagesNotInAllowedRange,
23+
AmqpC2DRejectedMessagesNotInAllowedRange,
24+
AmqpD2CMessagesNotInAllowedRange,
25+
AscLocation,
26+
AssessmentLinks,
27+
AssessmentStatus,
28+
AutoProvisioningSetting,
29+
AzureResourceDetails,
30+
AzureResourceLink,
31+
BaseResource,
32+
CloudError,
33+
Compliance,
34+
ComplianceResult,
35+
ComplianceSegment,
36+
ConnectionToIpNotAllowed,
37+
ContainerRegistryVulnerabilityProperties,
38+
CustomAlertRule,
39+
CVE,
40+
CVSS,
41+
DataExportSettings,
42+
DenylistCustomAlertRule,
43+
DeviceSecurityGroup,
44+
DirectMethodInvokesNotInAllowedRange,
45+
EffectiveNetworkSecurityGroups,
46+
FailedLocalLoginsNotInAllowedRange,
47+
FileUploadsNotInAllowedRange,
48+
HttpC2DMessagesNotInAllowedRange,
49+
HttpC2DRejectedMessagesNotInAllowedRange,
50+
HttpD2CMessagesNotInAllowedRange,
51+
InformationProtectionKeyword,
52+
InformationProtectionPolicy,
53+
InformationType,
54+
IoTSecurityAlertedDevice,
55+
IoTSecurityDeviceAlert,
56+
IoTSecurityDeviceRecommendation,
57+
IoTSecuritySolutionAnalyticsModel,
58+
IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem,
59+
IoTSeverityMetrics,
60+
ListCustomAlertRule,
61+
LocalUserNotAllowed,
62+
MqttC2DMessagesNotInAllowedRange,
63+
MqttC2DRejectedMessagesNotInAllowedRange,
64+
MqttD2CMessagesNotInAllowedRange,
65+
OnPremiseResourceDetails,
66+
Pricing,
67+
ProcessNotAllowed,
68+
QueuePurgesNotInAllowedRange,
69+
RegulatoryComplianceAssessment,
70+
RegulatoryComplianceControl,
71+
RegulatoryComplianceStandard,
72+
Resource,
73+
ResourceDetails,
74+
Rule,
75+
ScopeElement,
76+
SecureScoreControlDefinitionItem,
77+
SecureScoreControlDefinitionSource,
78+
SecureScoreControlDetails,
79+
SecureScoreItem,
80+
SecurityAssessment,
81+
SecurityAssessmentMetadata,
82+
SecurityAssessmentMetadataPartnerData,
83+
SecurityAssessmentMetadataProperties,
84+
SecurityAssessmentPartnerData,
85+
SecurityContact,
86+
SecuritySubAssessment,
87+
SecurityTask,
88+
SecurityTaskParameters,
89+
SensitivityLabel,
90+
ServerVulnerabilityAssessment,
91+
ServerVulnerabilityProperties,
92+
Setting,
93+
SettingResource,
94+
SqlServerVulnerabilityProperties,
95+
SubAssessmentStatus,
96+
SuppressionAlertsScope,
97+
ThresholdCustomAlertRule,
98+
TimeWindowCustomAlertRule,
99+
TwinUpdatesNotInAllowedRange,
100+
UnauthorizedOperationsNotInAllowedRange,
101+
VendorReference,
102+
WorkspaceSetting
103+
} from "../models/mappers";

0 commit comments

Comments
 (0)