diff --git a/specification/security/resource-manager/readme.go.md b/specification/security/resource-manager/readme.go.md new file mode 100644 index 000000000000..7aff2b222cfc --- /dev/null +++ b/specification/security/resource-manager/readme.go.md @@ -0,0 +1,26 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +```yaml $(go) +go: + license-header: MICROSOFT_APACHE_NO_VERSION + namespace: security + clear-output-folder: true +``` + +### Go multi-api + +```yaml $(go) && $(multiapi) +batch: + - tag: package-composite-v1 +``` + +### Tag: package-composite-v1 and go + +These settings apply only when `--tag=package-composite-v1 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +```yaml $(tag) == 'package-composite-v1' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2017-08-01-preview/$(namespace) +``` diff --git a/specification/security/resource-manager/readme.md b/specification/security/resource-manager/readme.md index 955d8b751e9f..ee6e112ca887 100644 --- a/specification/security/resource-manager/readme.md +++ b/specification/security/resource-manager/readme.md @@ -1,13 +1,13 @@ # Security Center - + > see https://aka.ms/autorest This is the AutoRest configuration file for Security. +--- +## Getting Started ---- -## Getting Started To build the SDK for Security, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: > `autorest` @@ -15,12 +15,14 @@ To build the SDK for Security, simply [Install AutoRest](https://aka.ms/autorest To see additional help and options, run: > `autorest --help` + --- ## Configuration ## Suppression -``` yaml + +```yaml directive: - suppress: ValidFormats from: security.json @@ -28,36 +30,45 @@ directive: reason: email format is allowed ``` -### Basic Information +### Basic Information + These are the global settings for the Security API. -``` yaml +```yaml openapi-type: arm tag: package-composite-v1 ``` - ### Tag: package-composite-v1 These settings apply only when `--tag=package-composite-v1` is specified on the command line. -``` yaml $(tag) == 'package-composite-v1' +```yaml $(tag) == 'package-composite-v1' input-file: - Microsoft.Security/preview/2017-08-01-preview/security.json - Microsoft.Security/preview/2015-06-01-preview/security.json ``` - --- + # Code Generation +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +```yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-go +``` -## C# +## C These settings apply only when `--csharp` is specified on the command line. Please also specify `--csharp-sdks-folder=`. -``` yaml $(csharp) +```yaml $(csharp) csharp: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION @@ -65,4 +76,8 @@ csharp: payload-flattening-threshold: 2 output-folder: $(csharp-sdks-folder)/Security/Management.Security/Generated clear-output-folder: true -``` \ No newline at end of file +``` + +## Go + +See configuration in [readme.go.md](./readme.go.md)