Skip to content

Commit

Permalink
CodeGen from PR 18796 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
dev-Sentinel-2022-05-01-preview (Azure#18796)

* Adds base for updating Microsoft.SecurityInsights from version preview/2022-04-01-preview to version 2022-05-01-preview

* Updates readme

* Updates API version in new specs and examples

* Added fileImports.json (Azure#18540)

* Added fileImports.json

* add example files

* move example files

* delete old example files

* fix get file import by id example

* fix delete file import example

* fix typos

* resolve issues

* fix date

* more issue resolving

* .

* .

* add location to delete example

* support 200

* resolve comments

* update example

* remove whitespace

* readonly

* operationId

* revert file imports (Azure#18663)

* add securityMLAnalyticsSettings to securityInsights (Azure#18679)

* add securityMLAnalyticsSettings to securityInsights

* update for operationIdNounConflictingModelNames

* update plurality

* update

* add settingsdefinintionid field for anomalySettings

* Add Anomaly to timeline items (Azure#18675)

* Add Anomaly to timeline items

* Add exmaple of anomaly

* Add x-ms-identifiers

* fix  issue
fix x-m-id issue.
fix lint

* Change enum name

* REmove timeline from inceidents

* swap enum definistion and name

* Align SKU descriptions (Azure#18874)

* Align SKU descriptions

* Remove Sku model from Settings as it's not in use and has conflict with another trype.

* Update AutomationRules.json (Azure#18630)

* Update automation rules swagger

* Update examples

* fix examples

* fix naming typo

* run prettier

* run prettier on missing file

* remove logic app arm id from required

* remove a tag with errors (Azure#18916)

Co-authored-by: moranraz <[email protected]>
Co-authored-by: jungph808 <[email protected]>
Co-authored-by: rpressburger <[email protected]>
Co-authored-by: ityankel <[email protected]>
Co-authored-by: Dapeng Zhang <[email protected]>
  • Loading branch information
6 people committed May 5, 2022
1 parent 2d6ad94 commit 0dfa0fd
Show file tree
Hide file tree
Showing 16 changed files with 1,579 additions and 224 deletions.
17 changes: 8 additions & 9 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 59 additions & 0 deletions sdk/securityinsight/arm-securityinsight/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,64 @@
# Release History

## 1.0.0-beta.3 (2022-05-05)

**Features**

- Added operation group SecurityMLAnalyticsSettings
- Added Interface AutomationRulePropertyArrayChangedValuesCondition
- Added Interface AutomationRulePropertyValuesChangedCondition
- Added Interface GetInsightsErrorKind
- Added Interface SecurityMLAnalyticsSettingsCreateOrUpdateOptionalParams
- Added Interface SecurityMLAnalyticsSettingsDataSource
- Added Interface SecurityMLAnalyticsSettingsDeleteOptionalParams
- Added Interface SecurityMLAnalyticsSettingsGetOptionalParams
- Added Interface SecurityMLAnalyticsSettingsList
- Added Interface SecurityMLAnalyticsSettingsListNextOptionalParams
- Added Interface SecurityMLAnalyticsSettingsListOptionalParams
- Added Type Alias AnomalySecurityMLAnalyticsSettings
- Added Type Alias AnomalyTimelineItem
- Added Type Alias AutomationRulePropertyArrayChangedConditionSupportedArrayType
- Added Type Alias AutomationRulePropertyArrayChangedConditionSupportedChangeType
- Added Type Alias AutomationRulePropertyChangedConditionSupportedChangedType
- Added Type Alias AutomationRulePropertyChangedConditionSupportedPropertyType
- Added Type Alias EntityProviders
- Added Type Alias Enum13
- Added Type Alias GetInsightsError
- Added Type Alias PropertyArrayChangedConditionProperties
- Added Type Alias PropertyChangedConditionProperties
- Added Type Alias SecurityMLAnalyticsSetting
- Added Type Alias SecurityMLAnalyticsSettingsCreateOrUpdateResponse
- Added Type Alias SecurityMLAnalyticsSettingsGetResponse
- Added Type Alias SecurityMLAnalyticsSettingsKind
- Added Type Alias SecurityMLAnalyticsSettingsListNextResponse
- Added Type Alias SecurityMLAnalyticsSettingsListResponse
- Added Type Alias SecurityMLAnalyticsSettingUnion
- Added Type Alias SettingsStatus
- Class SecurityInsights has a new parameter securityMLAnalyticsSettings
- Type Alias EntityAnalytics has a new parameter entityProviders
- Added Enum KnownAutomationRulePropertyArrayChangedConditionSupportedArrayType
- Added Enum KnownAutomationRulePropertyArrayChangedConditionSupportedChangeType
- Added Enum KnownAutomationRulePropertyChangedConditionSupportedChangedType
- Added Enum KnownAutomationRulePropertyChangedConditionSupportedPropertyType
- Added Enum KnownEntityProviders
- Added Enum KnownEnum13
- Added Enum KnownGetInsightsError
- Added Enum KnownSecurityMLAnalyticsSettingsKind
- Added Enum KnownSettingsStatus
- Enum KnownConditionType has a new value PropertyArrayChanged
- Enum KnownConditionType has a new value PropertyChanged
- Enum KnownEntityTimelineKind has a new value Anomaly
- Enum KnownTriggersWhen has a new value Updated

**Breaking Changes**

- Type Alias EntityAnalytics no longer has parameter isEnabled
- Type Alias WatchlistItem no longer has parameter itemsKeyValue
- Type Alias WatchlistItem no longer has parameter entityMapping
- Removed Enum KnownEnum12
- Removed Enum KnownSkuKind


## 1.0.0-beta.2 (2022-03-17)

**Features**
Expand Down
11 changes: 0 additions & 11 deletions sdk/securityinsight/arm-securityinsight/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provi
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
- Latest versions of Safari, Chrome, Edge and Firefox.

See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.

### Prerequisites

- An [Azure subscription][azure_sub].
Expand Down Expand Up @@ -51,17 +49,8 @@ For more information about how to create an Azure AD Application check out [this
```javascript
const { SecurityInsights } = require("@azure/arm-securityinsight");
const { DefaultAzureCredential } = require("@azure/identity");
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new SecurityInsights(new DefaultAzureCredential(), subscriptionId);

// For client-side applications running in the browser, use this code instead:
// const credential = new InteractiveBrowserCredential({
// tenantId: "<YOUR_TENANT_ID>",
// clientId: "<YOUR_CLIENT_ID>"
// });
// const client = new SecurityInsights(credential, subscriptionId);
```


Expand Down
8 changes: 4 additions & 4 deletions sdk/securityinsight/arm-securityinsight/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "3124311bc9791b64a8fa8fe8dc6372fb19559a1a",
"commit": "46784d176d6b495f2b2c0d7015bca259b331c271",
"readme": "specification/securityinsights/resource-manager/readme.md",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\securityinsights\\resource-manager\\readme.md --use=@autorest/[email protected]beta.16 --generate-sample=true",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/securityinsights/resource-manager/readme.md --use=@autorest/[email protected]alpha.16.20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.1.2",
"use": "@autorest/[email protected]beta.16"
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.0",
"use": "@autorest/[email protected]alpha.16.20220105.1"
}
36 changes: 10 additions & 26 deletions sdk/securityinsight/arm-securityinsight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for SecurityInsights.",
"version": "1.0.0-beta.2",
"version": "1.0.0-beta.3",
"engines": {
"node": ">=12.0.0"
},
Expand All @@ -26,14 +26,14 @@
"module": "./dist-esm/src/index.js",
"types": "./types/arm-securityinsight.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "7.18.11",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-multi-entry": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"@microsoft/api-extractor": "^7.18.11",
"@rollup/plugin-commonjs": "11.0.2",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-multi-entry": "^3.0.0",
"@rollup/plugin-node-resolve": "^8.0.0",
"mkdirp": "^1.0.4",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup": "^1.16.3",
"rollup-plugin-sourcemaps": "^0.4.2",
"typescript": "~4.2.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
Expand Down Expand Up @@ -96,21 +96,5 @@
"docs": "echo skipped"
},
"sideEffects": false,
"//metadata": {
"constantPaths": [
{
"path": "src/securityInsights.ts",
"prefix": "packageDetails"
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-securityinsight?view=azure-node-preview"
}
}
"autoPublish": true
}
Loading

0 comments on commit 0dfa0fd

Please sign in to comment.