Skip to content

Commit

Permalink
Adds suppression to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
arolshan committed Apr 14, 2019
1 parent 51a3e6a commit 350be00
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions specification/operationalinsights/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@
This is the AutoRest configuration file for OperationalInsights.



---

## Getting Started

To build the SDK for OperationalInsights, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run:

> `autorest`
To see additional help and options, run:

> `autorest --help`
---

## Configuration



### Basic Information

These are the global settings for the OperationalInsights API.

``` yaml
Expand All @@ -31,7 +31,6 @@ openapi-type: arm
tag: package-2015-11-preview
```
### Tag: package-2015-11-preview
These settings apply only when `--tag=package-2015-11-preview` is specified on the command line.
Expand All @@ -51,8 +50,8 @@ input-file:
```

---
# Code Generation

# Code Generation

## Swagger to SDK

Expand All @@ -70,13 +69,12 @@ swagger-to-sdk:
- bundle install && rake arm:regen_all_profiles['azure_mgmt_operational_insights']
```


## 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:
# last generated using AutoRest.1.0.0-Nightly20170126
azure-arm: true
Expand Down Expand Up @@ -105,11 +103,13 @@ python:
description: The Log Analytics Client.
clear-output-folder: true
```

``` yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/azure-mgmt-loganalytics/azure/mgmt/loganalytics
```

``` yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
Expand All @@ -134,8 +134,6 @@ payload-flattening-threshold: 1
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-operationalinsights
```



### Java multi-api

``` yaml $(java) && $(multiapi)
Expand Down Expand Up @@ -170,12 +168,15 @@ regenerate-manager: true
generate-interface: true
```


## Suppression

``` yaml
directive:
- from: OperationalInsights.json
suppress: R3006 # BodyTopLevelProperties/R3006/RPCViolation
suppress: R3006
reason: properties etag defined as eTag in model
- suppress: EnumInsteadOfBoolean
from: OperationalInsights.json
where: $.definitions.IntelligencePack.properties.enabled
reason: 'Not related to my change and this is a code constraint. '
```

0 comments on commit 350be00

Please sign in to comment.