Skip to content

Commit

Permalink
correct multiapi config (Azure#10683)
Browse files Browse the repository at this point in the history
* correct multiapi config

* multiapi init
  • Loading branch information
changlong-liu authored Sep 4, 2020
1 parent 7f85e26 commit c72994c
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions specification/commerce/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ This is not used by Autorest itself.
``` yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-python
after_scripts:
- python ./scripts/multiapi_init_gen.py azure-mgmt-commerce
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-js
Expand Down Expand Up @@ -81,16 +83,6 @@ python:
clear-output-folder: true
no-namespace-folders: true
```
``` yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/commerce/azure-mgmt-commerce/azure/mgmt/commerce
```
``` yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/commerce/azure-mgmt-commerce
```

### Python multi-api

Expand All @@ -101,16 +93,17 @@ batch:
- tag: package-2015-06-preview
```


### Tag: package-2015-06-preview and python

These settings apply only when `--tag=package-2015-06-preview --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>`.

``` yaml $(tag) == 'package-2020-05-preview' && $(python)
``` yaml $(tag) == 'package-2015-06-preview' && $(python)
namespace: azure.mgmt.commerce.v2015_06_01_preview
output-folder: $(python-sdks-folder)/commerce/azure-mgmt-commerce/azure/mgmt/commerce/v2015_06_01_preview
python:
namespace: azure.mgmt.databoxedge.v2016_06_01_preview
output-folder: $(python-sdks-folder)/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2016_06_01_preview
namespace: azure.mgmt.commerce.v2015_06_01_preview
output-folder: $(python-sdks-folder)/commerce/azure-mgmt-commerce/azure/mgmt/commerce/v2015_06_01_preview
```

## Go
Expand Down

0 comments on commit c72994c

Please sign in to comment.