This is the AutoRest configuration file for SecurityInsights.
To build the SDK for SecurityInsights, simply Install AutoRest and in this folder, run:
autorest
To see additional help and options, run:
autorest --help
These are the global settings for the SecurityInsights API.
openapi-type: arm
tag: package-2020-01
These settings apply only when --tag=package-2020-01
is specified on the command line.
input-file:
- Microsoft.SecurityInsights/stable/2020-01-01/SecurityInsights.json
directive:
- suppress: R2059
from: Microsoft.SecurityInsights/stable/2020-01-01/SecurityInsights.json
reason: it's not actually a resource path; the validator is confused because the LogAnalytics namespace is in the URI path.
approved-by: "@lirenhe"
These settings apply only when --tag=package-2021-03-preview-only
is specified on the command line.
input-file:
- Microsoft.SecurityInsights/preview/2021-03-01-preview/Settings.json
- Microsoft.SecurityInsights/preview/2021-03-01-preview/operations.json
directive:
- suppress: R4017
from: Microsoft.SecurityInsights/preview/2021-03-01-preview/Settings.json
where: $.definitions.Settings
reason: The Setting does not support list by subscription. It's not a top-level resource. To get the Watchlist, we should have a subscription as well as a resource group and Log Analytics workspace.
These settings apply only when --tag=package-2019-01-preview
is specified on the command line.
input-file:
- Microsoft.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.json
directive:
- suppress: R4017
from: Microsoft.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.json
where: $.definitions.ThreatIntelligenceResource
reason: Our API is designed based on per region per workspace concept. There is no use case of our customers to get all indicators in multiple workspaces.
approved-by: "@cheggert"
- suppress: R4017
from: Microsoft.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.json
where: $.definitions.Watchlist
reason: The Watchlist does not support list by subscription. It's not a top-level resource. To get the Watchlist, we should have a subscription as well as a resource group and Log Analytics workspace.
- suppress: R4017
from: Microsoft.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.json
where: $.definitions.AutomationRule
reason: The AutomationRule does not support list by subscription. It's not a top-level resource. To get the AutomationRule, we should have a subscription as well as a resource group and Log Analytics workspace.
This section describes what SDK should be generated by the automatic system. This is not used by Autorest itself.
swagger-to-sdk:
- repo: azure-sdk-for-net
- repo: azure-sdk-for-go
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-js
- repo: azure-sdk-for-node
- repo: azure-cli-extensions
- repo: azure-resource-manager-schemas
after_scripts:
- node sdkauto_afterscript.js securityinsights/resource-manager
These settings apply only when --csharp
is specified on the command line.
Please also specify --csharp-sdks-folder=<path to "SDKs" directory of your azure-sdk-for-net clone>
.
csharp:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: Microsoft.Azure.Management.SecurityInsights
payload-flattening-threshold: 2
output-folder: $(csharp-sdks-folder)/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated
clear-output-folder: true
See configuration in readme.go.md
See configuration in readme.python.md
See configuration in readme.nodejs.md
See configuration in readme.typescript.md
See configuration in readme.azureresourceschema.md