Skip to content

Commit

Permalink
python track2 configure (Azure#12150)
Browse files Browse the repository at this point in the history
  • Loading branch information
msyyc authored Dec 29, 2020
1 parent bdc7355 commit dab488e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
4 changes: 1 addition & 3 deletions specification/digitaltwins/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ 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-digitaltwins
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-js
Expand Down
42 changes: 23 additions & 19 deletions specification/digitaltwins/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,43 @@
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>`.

```yaml $(python)
python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: azure.mgmt.digitaltwins
package-name: azure-mgmt-digitaltwins
clear-output-folder: true
no-namespace-folders: true
```yaml $(python) && $(track2)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.mgmt.digitaltwins
package-name: azure-mgmt-digitaltwins
package-version: 1.0.0
clear-output-folder: true
no-namespace-folders: true
```
### Python multi-api
Generate all API versions currently shipped for this package
```yaml $(python) && $(multiapi)
```yaml $(python) && $(multiapi) && $(track2)
batch:
- tag: package-2020-12
- tag: package-2020-10
- tag: package-2020-03-01-preview
- multiapiscript: true
```
``` yaml $(multiapiscript)
output-folder: $(python-sdks-folder)/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/
clear-output-folder: false
perform-load: false
```
### Tag: package-2020-12 and python
These settings apply only when `--tag=package-2020-12 --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-12' && $(python)
python:
namespace: azure.mgmt.digitaltwins.v2020_12_01
output-folder: $(python-sdks-folder)/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_12_01
namespace: azure.mgmt.digitaltwins.v2020_12_01
output-folder: $(python-sdks-folder)/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_12_01
```

### Tag: package-2020-10 and python
Expand All @@ -42,9 +48,8 @@ These settings apply only when `--tag=package-2020-10 --python` is specified on
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.

``` yaml $(tag) == 'package-2020-10' && $(python)
python:
namespace: azure.mgmt.digitaltwins.v2020_10_31
output-folder: $(python-sdks-folder)/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31
namespace: azure.mgmt.digitaltwins.v2020_10_31
output-folder: $(python-sdks-folder)/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31
```

### Tag: package-2020-03-01-preview and python
Expand All @@ -53,7 +58,6 @@ These settings apply only when `--tag=package-2020-03-01-preview --python` is sp
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.

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

0 comments on commit dab488e

Please sign in to comment.