Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions specification/security/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
@@ -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=<path to the root directory of your azure-sdk-for-go clone>`.

```yaml $(tag) == 'package-composite-v1' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2017-08-01-preview/$(namespace)
```
39 changes: 27 additions & 12 deletions specification/security/resource-manager/readme.md
Original file line number Diff line number Diff line change
@@ -1,68 +1,83 @@
# 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`

To see additional help and options, run:

> `autorest --help`

---

## Configuration

## Suppression
``` yaml

```yaml
directive:
- suppress: ValidFormats
from: security.json
where: $.definitions.SecurityContactProperties.properties.email.format
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=<path to "SDKs" directory of your azure-sdk-for-net clone>`.

``` yaml $(csharp)
```yaml $(csharp)
csharp:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: Microsoft.Azure.Management.Security
payload-flattening-threshold: 2
output-folder: $(csharp-sdks-folder)/Security/Management.Security/Generated
clear-output-folder: true
```
```

## Go

See configuration in [readme.go.md](./readme.go.md)