Skip to content

Commit

Permalink
CodeGen from PR 12614 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Alert simulator security microsoft.security 2021 01 01 (Azure#12614)

* Alert Simulator

* Added AlertSimulator

* removed alert simulator

* rebase squash

* Added AlertSimulator

* rebase squash

* Fix

* removing alert simulator from old API

* removed example from old API

* Updated response to be 202

* Added discriminator

* Prettier

* Prettier

* readme fix

* readme fix

* readme fix

* readme fix

* readme fix

* readme fix

* Fixes

* Fixes

* Duplication fix

* Added 2 new bundles

* reverted change

* Changed readme

* Changed readme

* Changed simulation kind to kind

* Added x-ms-long-running-operation

* Prettier

Co-authored-by: t-yucohe <t-yucohe@microsoft.com>
  • Loading branch information
SDKAuto and t-yucohe committed Feb 23, 2021
1 parent 8c5b07d commit 69f1e83
Show file tree
Hide file tree
Showing 117 changed files with 17,948 additions and 2,848 deletions.
2 changes: 1 addition & 1 deletion sdk/security/arm-security/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2020 Microsoft
Copyright (c) 2021 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
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,92 @@ export {
AscLocation,
AssessmentLinks,
AssessmentStatus,
AuthenticationDetailsProperties,
AutoProvisioningSetting,
AwAssumeRoleAuthenticationDetailsProperties,
AwsCredsAuthenticationDetailsProperties,
AzureResourceDetails,
AzureResourceIdentifier,
AzureResourceLink,
Baseline,
BaselineAdjustedResult,
BaseResource,
BenchmarkReference,
CloudError,
Compliance,
ComplianceResult,
ComplianceSegment,
ConnectionFromIpNotAllowed,
ConnectionToIpNotAllowed,
ConnectorSetting,
ContainerRegistryVulnerabilityProperties,
CustomAlertRule,
CVE,
CVSS,
DataExportSettings,
DenylistCustomAlertRule,
Device,
DeviceSecurityGroup,
DirectMethodInvokesNotInAllowedRange,
EffectiveNetworkSecurityGroups,
FailedLocalLoginsNotInAllowedRange,
FileUploadsNotInAllowedRange,
Firmware,
GcpCredentialsDetailsProperties,
HttpC2DMessagesNotInAllowedRange,
HttpC2DRejectedMessagesNotInAllowedRange,
HttpD2CMessagesNotInAllowedRange,
HybridComputeSettingsProperties,
InformationProtectionKeyword,
InformationProtectionPolicy,
InformationType,
IotAlert,
IotAlertModel,
IotAlertType,
IotDefenderSettingsModel,
IotRecommendation,
IotRecommendationModel,
IotRecommendationType,
IoTSecurityAlertedDevice,
IoTSecurityDeviceAlert,
IoTSecurityDeviceRecommendation,
IoTSecuritySolutionAnalyticsModel,
IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem,
IotSensorsModel,
IoTSeverityMetrics,
IotSitesModel,
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 +125,20 @@ 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,92 @@ export {
AscLocation,
AssessmentLinks,
AssessmentStatus,
AuthenticationDetailsProperties,
AutoProvisioningSetting,
AwAssumeRoleAuthenticationDetailsProperties,
AwsCredsAuthenticationDetailsProperties,
AzureResourceDetails,
AzureResourceIdentifier,
AzureResourceLink,
Baseline,
BaselineAdjustedResult,
BaseResource,
BenchmarkReference,
CloudError,
Compliance,
ComplianceResult,
ComplianceSegment,
ConnectionFromIpNotAllowed,
ConnectionToIpNotAllowed,
ConnectorSetting,
ContainerRegistryVulnerabilityProperties,
CustomAlertRule,
CVE,
CVSS,
DataExportSettings,
DenylistCustomAlertRule,
Device,
DeviceSecurityGroup,
DirectMethodInvokesNotInAllowedRange,
EffectiveNetworkSecurityGroups,
FailedLocalLoginsNotInAllowedRange,
FileUploadsNotInAllowedRange,
Firmware,
GcpCredentialsDetailsProperties,
HttpC2DMessagesNotInAllowedRange,
HttpC2DRejectedMessagesNotInAllowedRange,
HttpD2CMessagesNotInAllowedRange,
HybridComputeSettingsProperties,
InformationProtectionKeyword,
InformationProtectionPolicy,
InformationType,
IotAlert,
IotAlertModel,
IotAlertType,
IotDefenderSettingsModel,
IotRecommendation,
IotRecommendationModel,
IotRecommendationType,
IoTSecurityAlertedDevice,
IoTSecurityDeviceAlert,
IoTSecurityDeviceRecommendation,
IoTSecuritySolutionAnalyticsModel,
IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem,
IotSensorsModel,
IoTSeverityMetrics,
IotSitesModel,
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 +123,20 @@ 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 69f1e83

Please sign in to comment.