Skip to content

Commit

Permalink
python codegen (#10826)
Browse files Browse the repository at this point in the history
  • Loading branch information
changlong-liu authored Sep 17, 2020
1 parent f595fe8 commit e342403
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
2 changes: 2 additions & 0 deletions specification/streamanalytics/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ This is not used by Autorest itself.
``` yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-net
- repo: azure-sdk-for-python
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-go
- repo: azure-sdk-for-node
- repo: azure-sdk-for-js
Expand Down
25 changes: 21 additions & 4 deletions specification/streamanalytics/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ 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 !$(track2)
python-mode: create
python:
azure-arm: true
Expand All @@ -15,12 +16,28 @@ python:
package-version: 0.1.0
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'
These settings apply only when `--track2` is specified on the command line.

``` yaml $(track2)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
package-name: azure-mgmt-streamanalytics
no-namespace-folders: true
package-version: 0.1.0
```

``` yaml $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/streamanalytics/azure-mgmt-streamanalytics/azure/mgmt/streamanalytics
no-namespace-folders: true
output-folder: $(python-sdks-folder)/streamanalytics/azure-mgmt-streamanalytics/azure/mgmt/streamanalytics
```
``` yaml $(python) && $(python-mode) == 'create'
``` yaml $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/streamanalytics/azure-mgmt-streamanalytics
output-folder: $(python-sdks-folder)/streamanalytics/azure-mgmt-streamanalytics
basic-setup-py: true
output-folder: $(python-sdks-folder)/streamanalytics/azure-mgmt-streamanalytics
```

0 comments on commit e342403

Please sign in to comment.