Skip to content

Commit

Permalink
fix readme for application insights in python (#8979)
Browse files Browse the repository at this point in the history
* fix readme

* fix

* fix

* reveert
  • Loading branch information
mmyyrroonn authored Apr 8, 2020
1 parent 12d0222 commit 548d909
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 11 deletions.
6 changes: 6 additions & 0 deletions specification/applicationinsights/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ This is not used by Autorest itself.
swagger-to-sdk:
- repo: azure-sdk-for-net
- repo: azure-sdk-for-python
after_scripts:
- python ./scripts/multiapi_init_gen.py --default-api-version=2020-03-01-preview azure-mgmt-applicationinsights
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-js
Expand All @@ -347,6 +349,10 @@ swagger-to-sdk:

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

## Python

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

## C#

These settings apply only when `--csharp` is specified on the command line.
Expand Down
106 changes: 95 additions & 11 deletions specification/applicationinsights/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,111 @@
## Python

## python
These settings apply only when `--python` is specified on the command line.
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.

``` yaml $(python)
```yaml $(python)
python-mode: create
python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: azure.mgmt.applicationinsights
package-name: azure-mgmt-applicationinsights
package-version: 0.2.0
clear-output-folder: true
no-namespace-folders: true
```
### Python multi-api
``` yaml $(python) && $(multiapi)
batch:
- tag: package-2015-05
- tag: package-2017-10
- tag: package-2018-05-01-preview
- tag: package-2018-06-17-preview
- tag: package-2019-09-01-preview
- tag: package-2019-10-17-preview
- tag: package-2020-02-02-preview
- tag: package-2020-03-01-preview
```
``` yaml $(python) && $(python-mode) == 'update'
### Tag: package-2015-05 and python
These settings apply only when `--tag=package-2015-05 --python` is specified on the command line.

``` yaml $(tag) == 'package-2015-05' && $(python)
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights
namespace: azure.mgmt.applicationinsights.v2015_05_01
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01
```

### Tag: package-2017-10 and python

These settings apply only when `--tag=package-2017-10 --python` is specified on the command line.

``` yaml $(tag) == 'package-2017-10' && $(python)
python:
namespace: azure.mgmt.applicationinsights.v2017_10_01
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2017_10_01
```
``` yaml $(python) && $(python-mode) == 'create'

### Tag: package-2018-06-17-preview and python

These settings apply only when `--tag=package-2018-06-17-preview --python` is specified on the command line.

``` yaml $(tag) == 'package-2018-06-17-preview' && $(python)
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights
namespace: azure.mgmt.applicationinsights.v2018_06_17_preview
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_06_17_preview
```

### Tag: package-2019-10-17-preview and python

These settings apply only when `--tag=package-2019-10-17-preview --python` is specified on the command line.

```yaml $(tag) == 'package-2019-10-17-preview' && $(python)
python:
namespace: azure.mgmt.applicationinsights.v2019_10_17_preview
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2019_10_17_preview
```

### Tag: package-2018-05-01-preview and python

These settings apply only when `--tag=package-2018-05-01-preview --python` is specified on the command line.

``` yaml $(tag) == 'package-2018-05-01-preview' && $(python)
python:
namespace: azure.mgmt.applicationinsights.v2018_05_01_preview
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview
```

### Tag: package-2019-09-01-preview and python

These settings apply only when `--tag=package-2019-09-01-preview --python` is specified on the command line.

``` yaml $(tag) == 'package-2019-09-01-preview' && $(python)
python:
namespace: azure.mgmt.applicationinsights.v2019_09_01_preview
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2019_09_01_preview
```

### Tag: package-2020-02-02-preview and python

These settings apply only when `--tag=package-2020-02-02-preview --python` is specified on the command line.

``` yaml $(tag) == 'package-2020-02-02-preview' && $(python)
python:
namespace: azure.mgmt.applicationinsights.v2020_02_02_preview
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_02_02_preview
```

### Tag: package-2020-03-01-preview and python

These settings apply only when `--tag=package-2020-03-01-preview --python` is specified on the command line.

``` yaml $(tag) == 'package-2020-03-01-preview' && $(python)
python:
namespace: azure.mgmt.applicationinsights.v2020_03_01_preview
output-folder: $(python-sdks-folder)/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_03_01_preview
```



0 comments on commit 548d909

Please sign in to comment.