Skip to content

Commit

Permalink
CodeGen from PR 11577 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Add SecureScores & SecureScoreControls as new supported datatypes in Automations resource (Azure#11577)

* Add SubAssessment event source type and add more automations examples

* Change Location isReadOnlu to false

* Test

* Add new read/write location and add new type TrackedResourceLocation

* Minor

* minor

* prettier fixes

* Change variable name to TrackedResourceLocation

* Change type name TrackedResourceLocation to AzureTrackedResourceLocation

* Update automations example

* Add SecureScores & SecureScoreControls as new supported datatypes in Automations resource
  • Loading branch information
SDKAuto committed Nov 12, 2020
1 parent a5ba074 commit 908bef4
Show file tree
Hide file tree
Showing 114 changed files with 16,386 additions and 3,059 deletions.
9 changes: 4 additions & 5 deletions sdk/security/arm-security/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install @azure/arm-security

### How to use

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

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

Expand All @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0"

##### Sample code

While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
```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";
import { SecurityCenter, SecurityCenterModels, SecurityCenterMappers } from "@azure/arm-security";
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
const { SecurityCenter } = require("@azure/arm-security");
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
Expand Down
4 changes: 2 additions & 2 deletions sdk/security/arm-security/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const config = {
"@azure/ms-rest-azure-js": "msRestAzure"
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
discriminators,
AppWhitelistingGroup,
AppWhitelistingGroups,
AppWhitelistingIssueSummary,
AdaptiveApplicationControlGroup,
AdaptiveApplicationControlGroups,
AdaptiveApplicationControlIssueSummary,
CloudError,
PathRecommendation,
ProtectionMode,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand All @@ -15,7 +15,6 @@ export {
AdditionalData,
AdvancedThreatProtectionSetting,
Alert,
AlertConfidenceReason,
AlertEntity,
AlertsSuppressionRule,
AllowlistCustomAlertRule,
Expand All @@ -25,53 +24,88 @@ export {
AscLocation,
AssessmentLinks,
AssessmentStatus,
AuthenticationDetailsProperties,
AutoProvisioningSetting,
AwAssumeRoleAuthenticationDetailsProperties,
AwsCredsAuthenticationDetailsProperties,
AzureResourceDetails,
AzureResourceIdentifier,
AzureResourceLink,
Baseline,
BaselineAdjustedResult,
BaseResource,
BenchmarkReference,
CloudError,
Compliance,
ComplianceResult,
ComplianceSegment,
ConnectionToIpNotAllowed,
ConnectorSetting,
ContainerRegistryVulnerabilityProperties,
CustomAlertRule,
CVE,
CVSS,
DataExportSettings,
DenylistCustomAlertRule,
Device,
DeviceSecurityGroup,
DirectMethodInvokesNotInAllowedRange,
EffectiveNetworkSecurityGroups,
FailedLocalLoginsNotInAllowedRange,
FileUploadsNotInAllowedRange,
Firmware,
GcpCredentialsDetailsProperties,
HttpC2DMessagesNotInAllowedRange,
HttpC2DRejectedMessagesNotInAllowedRange,
HttpD2CMessagesNotInAllowedRange,
HybridComputeSettingsProperties,
InformationProtectionKeyword,
InformationProtectionPolicy,
InformationType,
IotAlertType,
IotDefenderSettingsModel,
IotRecommendation,
IotRecommendationModel,
IotRecommendationType,
IoTSecurityAlertedDevice,
IoTSecurityDeviceAlert,
IoTSecurityDeviceRecommendation,
IoTSecuritySolutionAnalyticsModel,
IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem,
IotSensor,
IoTSeverityMetrics,
IpAddress,
ListCustomAlertRule,
LocalUserNotAllowed,
LogAnalyticsIdentifier,
MacAddress,
MqttC2DMessagesNotInAllowedRange,
MqttC2DRejectedMessagesNotInAllowedRange,
MqttD2CMessagesNotInAllowedRange,
NetworkInterface,
OnPremiseIotSensor,
OnPremiseResourceDetails,
OnPremiseSqlResourceDetails,
Pricing,
ProcessNotAllowed,
Protocol1,
ProxyServerProperties,
QueryCheck,
QueuePurgesNotInAllowedRange,
RegulatoryComplianceAssessment,
RegulatoryComplianceControl,
RegulatoryComplianceStandard,
Remediation,
Resource,
ResourceDetails,
ResourceIdentifier,
Rule,
RuleResults,
RuleResultsProperties,
Scan,
ScanProperties,
ScanResult,
ScanResultProperties,
ScopeElement,
SecureScoreControlDefinitionItem,
SecureScoreControlDefinitionSource,
Expand All @@ -87,17 +121,21 @@ export {
SecurityTask,
SecurityTaskParameters,
SensitivityLabel,
Sensor,
ServerVulnerabilityAssessment,
ServerVulnerabilityProperties,
ServicePrincipalProperties,
Setting,
SettingResource,
Site,
SqlServerVulnerabilityProperties,
SubAssessmentStatus,
SuppressionAlertsScope,
ThresholdCustomAlertRule,
TimeWindowCustomAlertRule,
TwinUpdatesNotInAllowedRange,
UnauthorizedOperationsNotInAllowedRange,
VaRule,
VendorReference,
WorkspaceSetting
} from "../models/mappers";
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand All @@ -13,7 +13,6 @@ export {
AdditionalData,
AdvancedThreatProtectionSetting,
Alert,
AlertConfidenceReason,
AlertEntity,
AlertsSuppressionRule,
AllowlistCustomAlertRule,
Expand All @@ -23,53 +22,88 @@ export {
AscLocation,
AssessmentLinks,
AssessmentStatus,
AuthenticationDetailsProperties,
AutoProvisioningSetting,
AwAssumeRoleAuthenticationDetailsProperties,
AwsCredsAuthenticationDetailsProperties,
AzureResourceDetails,
AzureResourceIdentifier,
AzureResourceLink,
Baseline,
BaselineAdjustedResult,
BaseResource,
BenchmarkReference,
CloudError,
Compliance,
ComplianceResult,
ComplianceSegment,
ConnectionToIpNotAllowed,
ConnectorSetting,
ContainerRegistryVulnerabilityProperties,
CustomAlertRule,
CVE,
CVSS,
DataExportSettings,
DenylistCustomAlertRule,
Device,
DeviceSecurityGroup,
DirectMethodInvokesNotInAllowedRange,
EffectiveNetworkSecurityGroups,
FailedLocalLoginsNotInAllowedRange,
FileUploadsNotInAllowedRange,
Firmware,
GcpCredentialsDetailsProperties,
HttpC2DMessagesNotInAllowedRange,
HttpC2DRejectedMessagesNotInAllowedRange,
HttpD2CMessagesNotInAllowedRange,
HybridComputeSettingsProperties,
InformationProtectionKeyword,
InformationProtectionPolicy,
InformationType,
IotAlertType,
IotDefenderSettingsModel,
IotRecommendation,
IotRecommendationModel,
IotRecommendationType,
IoTSecurityAlertedDevice,
IoTSecurityDeviceAlert,
IoTSecurityDeviceRecommendation,
IoTSecuritySolutionAnalyticsModel,
IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem,
IotSensor,
IoTSeverityMetrics,
IpAddress,
ListCustomAlertRule,
LocalUserNotAllowed,
LogAnalyticsIdentifier,
MacAddress,
MqttC2DMessagesNotInAllowedRange,
MqttC2DRejectedMessagesNotInAllowedRange,
MqttD2CMessagesNotInAllowedRange,
NetworkInterface,
OnPremiseIotSensor,
OnPremiseResourceDetails,
OnPremiseSqlResourceDetails,
Pricing,
ProcessNotAllowed,
Protocol1,
ProxyServerProperties,
QueryCheck,
QueuePurgesNotInAllowedRange,
RegulatoryComplianceAssessment,
RegulatoryComplianceControl,
RegulatoryComplianceStandard,
Remediation,
Resource,
ResourceDetails,
ResourceIdentifier,
Rule,
RuleResults,
RuleResultsProperties,
Scan,
ScanProperties,
ScanResult,
ScanResultProperties,
ScopeElement,
SecureScoreControlDefinitionItem,
SecureScoreControlDefinitionSource,
Expand All @@ -85,17 +119,21 @@ export {
SecurityTask,
SecurityTaskParameters,
SensitivityLabel,
Sensor,
ServerVulnerabilityAssessment,
ServerVulnerabilityProperties,
ServicePrincipalProperties,
Setting,
SettingResource,
Site,
SqlServerVulnerabilityProperties,
SubAssessmentStatus,
SuppressionAlertsScope,
ThresholdCustomAlertRule,
TimeWindowCustomAlertRule,
TwinUpdatesNotInAllowedRange,
UnauthorizedOperationsNotInAllowedRange,
VaRule,
VendorReference,
WorkspaceSetting
} from "../models/mappers";
Loading

0 comments on commit 908bef4

Please sign in to comment.