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 DNS, modify readme.python.md #13367

Merged
merged 4 commits into from
Mar 16, 2021
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
1 change: 1 addition & 0 deletions specification/dns/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-python
after_scripts:
- python ./scripts/multiapi_init_gen.py azure-mgmt-dns
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-node
Expand Down
50 changes: 45 additions & 5 deletions specification/dns/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

These settings apply only when `--python` is specified on the command line.

```yaml $(python)
```yaml $(python) && !$(track2)
python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
Expand All @@ -12,46 +12,86 @@ python:
no-namespace-folders: true
```

```yaml $(python) && $(track2)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
package-name: azure-mgmt-dns
no-namespace-folders: true
package-version: 1.0.0b1
modelerfour:
lenient-model-deduplication: true
```

### Python multi-api

Generate all API versions currently shipped for this package

```yaml $(python) && $(multiapi)
```yaml $(python) && $(multiapi) && !$(track2)
batch:
- tag: package-2018-05
- tag: package-2018-03-preview
- tag: package-2016-04
```

```yaml $(python) && $(multiapi) && $(track2)
clear-output-folder: true
batch:
- tag: package-2018-05
- tag: package-2018-03-preview
- tag: package-2016-04
- multiapiscript: true
```

``` yaml $(multiapiscript)
output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/
clear-output-folder: false
perform-load: false
```

### Tag: package-2018-05 and python

These settings apply only when `--tag=package-2018-05 --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-2018-05' && $(python)
``` yaml $(tag) == 'package-2018-05' && $(python) && !$(track2)
python:
namespace: azure.mgmt.dns.v2018_05_01
output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01
```

``` yaml $(tag) == 'package-2018-05' && $(python) && $(track2)
namespace: azure.mgmt.dns.v2018_05_01
output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01
```

### Tag: package-2018-03-preview and python

These settings apply only when `--tag=package-2018-03-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-2018-03-preview' && $(python)
``` yaml $(tag) == 'package-2018-03-preview' && $(python) && !$(track2)
python:
namespace: azure.mgmt.dns.v2018_03_01_preview
output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview
```

``` yaml $(tag) == 'package-2018-03-preview' && $(python) && $(track2)
namespace: azure.mgmt.dns.v2018_03_01_preview
output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview
```

### Tag: package-2016-04 and python

These settings apply only when `--tag=package-2016-04 --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-2016-04' && $(python)
``` yaml $(tag) == 'package-2016-04' && $(python) && !$(track2)
python:
namespace: azure.mgmt.dns.v2016_04_01
output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01
```

``` yaml $(tag) == 'package-2016-04' && $(python) && $(track2)
namespace: azure.mgmt.dns.v2016_04_01
output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01
```