Skip to content

Commit

Permalink
New version of Web API for Python SDK (#7473)
Browse files Browse the repository at this point in the history
* adding package-2019-08 to python multiapi

* changes for python

* try different version of autorest

* added trim-aio

* additional fixes to multiapi generation
  • Loading branch information
Zim Kalinowski authored Oct 12, 2019
1 parent 88f7d56 commit 458a379
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
8 changes: 6 additions & 2 deletions specification/web/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ tag: package-2019-08
### Tag: package-2019-08
These settings apply only when `--tag=package-2019-08` is specified on the command line.
These settings apply only when `--tag=package-2019-08` or `--tag=package-2019-08-only` is specified on the command line.
NOTE: Currently these tags are the same, but it will need to be split if any files from folders other than 2019-08-01 are included.

``` yaml $(tag) == 'package-2019-08'
``` yaml $(tag) == 'package-2019-08' || $(tag) == 'package-2019-08-only'
input-file:
- Microsoft.CertificateRegistration/stable/2019-08-01/AppServiceCertificateOrders.json
Expand Down Expand Up @@ -1017,8 +1018,11 @@ This is not used by Autorest itself.
swagger-to-sdk:
- repo: azure-sdk-for-net
- repo: azure-sdk-for-python
autorest_options:
use: "@microsoft.azure/autorest.python@4.0.70"
after_scripts:
- python ./scripts/multiapi_init_gen.py azure-mgmt-web
- python ./scripts/trim_aio.py ./sdk/appservice/azure-mgmt-web
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-node
Expand Down
13 changes: 12 additions & 1 deletion specification/web/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: azure.mgmt.web
package-name: azure-mgmt-web
package-version: 0.42.0
clear-output-folder: true
Expand All @@ -23,6 +22,7 @@ Generate all API versions currently shipped for this package
```yaml $(python) && $(multiapi)
batch:
- tag: package-2019-08-only
- tag: package-2018-11-only
- tag: package-2018-02-only
- tag: package-2016-09-only
Expand All @@ -32,6 +32,17 @@ batch:
- tag: package-2015-04-only
```
### Tag: package-2019-08-only and python
These settings apply only when `--tag=package-2019-08-only --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-2019-08-only' && $(python)
python:
namespace: azure.mgmt.web.v2019_08_01
output-folder: $(python-sdks-folder)/appservice/azure-mgmt-web/azure/mgmt/web/v2019_08_01
```

### Tag: package-2018-11-only and python

These settings apply only when `--tag=package-2018-11-only --python` is specified on the command line.
Expand Down

0 comments on commit 458a379

Please sign in to comment.