Skip to content

Commit

Permalink
T2 DNS, modify readme.python.md (Azure#13367)
Browse files Browse the repository at this point in the history
* modify readme.python.md

* add swagger to sdk repo track2

* third modification

* Update readme.python.md

Co-authored-by: Yan Zhang (WICRESOFT NORTH AMERICA LTD) <v-yanzhang@microsoft.com>
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
  • Loading branch information
3 people authored and MirzaSikander committed Mar 22, 2021
1 parent dad46d9 commit a9e335a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 5 deletions.
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
```

0 comments on commit a9e335a

Please sign in to comment.