Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[T2]digitaltwins python track2 configure #12150

Merged
merged 1 commit into from
Dec 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
```