Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/@azure/arm-security/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft
Copyright (c) 2019 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
23 changes: 12 additions & 11 deletions packages/@azure/arm-security/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ This package contains an isomorphic SDK for SecurityCenter.

### How to Install

```
```bash
npm install @azure/arm-security
```

### How to use

#### nodejs - Authentication, client creation and list pricings as an example written in TypeScript.
#### nodejs - Authentication, client creation and list regulatoryComplianceStandards as an example written in TypeScript.

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

```
```bash
npm install @azure/ms-rest-nodeauth
```

##### Sample code

```ts
```typescript
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
Expand All @@ -34,7 +34,9 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
const client = new SecurityCenter(creds, subscriptionId);
client.pricings.list().then((result) => {
const resourceGroupName = "testresourceGroupName";
const filter = "testfilter";
client.regulatoryComplianceStandards.list(resourceGroupName, filter).then((result) => {
console.log("The result is:");
console.log(result);
});
Expand All @@ -43,11 +45,11 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
});
```

#### browser - Authentication, client creation and list pricings as an example written in JavaScript.
#### browser - Authentication, client creation and list regulatoryComplianceStandards as an example written in JavaScript.

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

```
```bash
npm install @azure/ms-rest-browserauth
```

Expand Down Expand Up @@ -77,7 +79,9 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
authManager.login();
}
const client = new Azure.ArmSecurity.SecurityCenter(res.creds, subscriptionId);
client.pricings.list().then((result) => {
const resourceGroupName = "testresourceGroupName";
const filter = "testfilter";
client.regulatoryComplianceStandards.list(resourceGroupName, filter).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
Expand All @@ -94,6 +98,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
## Related projects

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


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fpackages%2F%40azure%2Farm-security%2FREADME.png)
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

export {
discriminators,
AdaptiveNetworkHardeningsList,
AdaptiveNetworkHardening,
Resource,
BaseResource,
Rule,
EffectiveNetworkSecurityGroups,
CloudError,
AdaptiveNetworkHardeningEnforceRequest,
RegulatoryComplianceStandard,
RegulatoryComplianceControl,
RegulatoryComplianceAssessment,
AscLocation,
Pricing,
SecurityContact,
WorkspaceSetting,
AutoProvisioningSetting,
Compliance,
ComplianceSegment,
AdvancedThreatProtectionSetting,
DeviceSecurityGroup,
ThresholdCustomAlertRule,
CustomAlertRule,
TimeWindowCustomAlertRule,
AllowlistCustomAlertRule,
ListCustomAlertRule,
DenylistCustomAlertRule,
SettingResource,
InformationProtectionPolicy,
SensitivityLabel,
InformationType,
InformationProtectionKeyword,
SecurityTask,
SecurityTaskParameters,
Alert,
AlertEntity,
AlertConfidenceReason,
Setting,
DataExportSetting
} from "../models/mappers";

Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,37 @@ export {
Resource,
BaseResource,
CloudError,
SecurityContact,
RegulatoryComplianceStandard,
RegulatoryComplianceControl,
RegulatoryComplianceAssessment,
AscLocation,
Pricing,
SecurityContact,
WorkspaceSetting,
AutoProvisioningSetting,
Compliance,
ComplianceSegment,
DeviceSecurityGroup,
ThresholdCustomAlertRule,
CustomAlertRule,
TimeWindowCustomAlertRule,
AllowlistCustomAlertRule,
ListCustomAlertRule,
DenylistCustomAlertRule,
SettingResource,
InformationProtectionPolicy,
SensitivityLabel,
InformationType,
InformationProtectionKeyword,
SecurityTask,
SecurityTaskParameters,
AscLocation,
Alert,
AlertEntity,
AlertConfidenceReason
AlertConfidenceReason,
AdaptiveNetworkHardening,
Rule,
EffectiveNetworkSecurityGroups,
Setting,
DataExportSetting
} from "../models/mappers";

20 changes: 18 additions & 2 deletions packages/@azure/arm-security/lib/models/alertsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,35 @@ export {
AlertEntity,
AlertConfidenceReason,
CloudError,
SecurityContact,
RegulatoryComplianceStandard,
RegulatoryComplianceControl,
RegulatoryComplianceAssessment,
AscLocation,
Pricing,
SecurityContact,
WorkspaceSetting,
AutoProvisioningSetting,
Compliance,
ComplianceSegment,
AdvancedThreatProtectionSetting,
DeviceSecurityGroup,
ThresholdCustomAlertRule,
CustomAlertRule,
TimeWindowCustomAlertRule,
AllowlistCustomAlertRule,
ListCustomAlertRule,
DenylistCustomAlertRule,
SettingResource,
InformationProtectionPolicy,
SensitivityLabel,
InformationType,
InformationProtectionKeyword,
SecurityTask,
SecurityTaskParameters,
AscLocation
AdaptiveNetworkHardening,
Rule,
EffectiveNetworkSecurityGroups,
Setting,
DataExportSetting
} from "../models/mappers";

Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,37 @@ export {
Resource,
BaseResource,
CloudError,
SecurityContact,
RegulatoryComplianceStandard,
RegulatoryComplianceControl,
RegulatoryComplianceAssessment,
AscLocation,
Pricing,
SecurityContact,
WorkspaceSetting,
Compliance,
ComplianceSegment,
AdvancedThreatProtectionSetting,
DeviceSecurityGroup,
ThresholdCustomAlertRule,
CustomAlertRule,
TimeWindowCustomAlertRule,
AllowlistCustomAlertRule,
ListCustomAlertRule,
DenylistCustomAlertRule,
SettingResource,
InformationProtectionPolicy,
SensitivityLabel,
InformationType,
InformationProtectionKeyword,
SecurityTask,
SecurityTaskParameters,
AscLocation,
Alert,
AlertEntity,
AlertConfidenceReason
AlertConfidenceReason,
AdaptiveNetworkHardening,
Rule,
EffectiveNetworkSecurityGroups,
Setting,
DataExportSetting
} from "../models/mappers";

22 changes: 19 additions & 3 deletions packages/@azure/arm-security/lib/models/compliancesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,36 @@ export {
BaseResource,
ComplianceSegment,
CloudError,
SecurityContact,
RegulatoryComplianceStandard,
RegulatoryComplianceControl,
RegulatoryComplianceAssessment,
AscLocation,
Pricing,
SecurityContact,
WorkspaceSetting,
AutoProvisioningSetting,
AdvancedThreatProtectionSetting,
DeviceSecurityGroup,
ThresholdCustomAlertRule,
CustomAlertRule,
TimeWindowCustomAlertRule,
AllowlistCustomAlertRule,
ListCustomAlertRule,
DenylistCustomAlertRule,
SettingResource,
InformationProtectionPolicy,
SensitivityLabel,
InformationType,
InformationProtectionKeyword,
SecurityTask,
SecurityTaskParameters,
AscLocation,
Alert,
AlertEntity,
AlertConfidenceReason
AlertConfidenceReason,
AdaptiveNetworkHardening,
Rule,
EffectiveNetworkSecurityGroups,
Setting,
DataExportSetting
} from "../models/mappers";

Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

export {
discriminators,
DeviceSecurityGroupList,
DeviceSecurityGroup,
Resource,
BaseResource,
ThresholdCustomAlertRule,
CustomAlertRule,
TimeWindowCustomAlertRule,
AllowlistCustomAlertRule,
ListCustomAlertRule,
DenylistCustomAlertRule,
CloudError,
RegulatoryComplianceStandard,
RegulatoryComplianceControl,
RegulatoryComplianceAssessment,
AscLocation,
Pricing,
SecurityContact,
WorkspaceSetting,
AutoProvisioningSetting,
Compliance,
ComplianceSegment,
AdvancedThreatProtectionSetting,
SettingResource,
InformationProtectionPolicy,
SensitivityLabel,
InformationType,
InformationProtectionKeyword,
SecurityTask,
SecurityTaskParameters,
Alert,
AlertEntity,
AlertConfidenceReason,
AdaptiveNetworkHardening,
Rule,
EffectiveNetworkSecurityGroups,
Setting,
DataExportSetting
} from "../models/mappers";

Loading