Skip to content

Commit a2b6c11

Browse files
zhangyan133Yan Zhang (WICRESOFT NORTH AMERICA LTD)msyyc
authored
T2 DNS, modify readme.python.md (Azure#13367)
* 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) <[email protected]> Co-authored-by: msyyc <[email protected]>
1 parent e05b5a2 commit a2b6c11

File tree

2 files changed

+46
-5
lines changed

2 files changed

+46
-5
lines changed

specification/dns/resource-manager/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ swagger-to-sdk:
161161
- repo: azure-sdk-for-python
162162
after_scripts:
163163
- python ./scripts/multiapi_init_gen.py azure-mgmt-dns
164+
- repo: azure-sdk-for-python-track2
164165
- repo: azure-sdk-for-java
165166
- repo: azure-sdk-for-go
166167
- repo: azure-sdk-for-node

specification/dns/resource-manager/readme.python.md

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

5-
```yaml $(python)
5+
```yaml $(python) && !$(track2)
66
python:
77
azure-arm: true
88
license-header: MICROSOFT_MIT_NO_VERSION
@@ -12,46 +12,86 @@ python:
1212
no-namespace-folders: true
1313
```
1414
15+
```yaml $(python) && $(track2)
16+
azure-arm: true
17+
license-header: MICROSOFT_MIT_NO_VERSION
18+
package-name: azure-mgmt-dns
19+
no-namespace-folders: true
20+
package-version: 1.0.0b1
21+
modelerfour:
22+
lenient-model-deduplication: true
23+
```
24+
1525
### Python multi-api
1626
1727
Generate all API versions currently shipped for this package
1828
19-
```yaml $(python) && $(multiapi)
29+
```yaml $(python) && $(multiapi) && !$(track2)
30+
batch:
31+
- tag: package-2018-05
32+
- tag: package-2018-03-preview
33+
- tag: package-2016-04
34+
```
35+
36+
```yaml $(python) && $(multiapi) && $(track2)
37+
clear-output-folder: true
2038
batch:
2139
- tag: package-2018-05
2240
- tag: package-2018-03-preview
2341
- tag: package-2016-04
42+
- multiapiscript: true
43+
```
44+
45+
``` yaml $(multiapiscript)
46+
output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/
47+
clear-output-folder: false
48+
perform-load: false
2449
```
2550
2651
### Tag: package-2018-05 and python
2752
2853
These settings apply only when `--tag=package-2018-05 --python` is specified on the command line.
2954
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
3055

31-
``` yaml $(tag) == 'package-2018-05' && $(python)
56+
``` yaml $(tag) == 'package-2018-05' && $(python) && !$(track2)
3257
python:
3358
namespace: azure.mgmt.dns.v2018_05_01
3459
output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01
3560
```
3661

62+
``` yaml $(tag) == 'package-2018-05' && $(python) && $(track2)
63+
namespace: azure.mgmt.dns.v2018_05_01
64+
output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01
65+
```
66+
3767
### Tag: package-2018-03-preview and python
3868

3969
These settings apply only when `--tag=package-2018-03-preview --python` is specified on the command line.
4070
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
4171

42-
``` yaml $(tag) == 'package-2018-03-preview' && $(python)
72+
``` yaml $(tag) == 'package-2018-03-preview' && $(python) && !$(track2)
4373
python:
4474
namespace: azure.mgmt.dns.v2018_03_01_preview
4575
output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview
4676
```
4777

78+
``` yaml $(tag) == 'package-2018-03-preview' && $(python) && $(track2)
79+
namespace: azure.mgmt.dns.v2018_03_01_preview
80+
output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview
81+
```
82+
4883
### Tag: package-2016-04 and python
4984

5085
These settings apply only when `--tag=package-2016-04 --python` is specified on the command line.
5186
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
5287

53-
``` yaml $(tag) == 'package-2016-04' && $(python)
88+
``` yaml $(tag) == 'package-2016-04' && $(python) && !$(track2)
5489
python:
5590
namespace: azure.mgmt.dns.v2016_04_01
5691
output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01
5792
```
93+
94+
``` yaml $(tag) == 'package-2016-04' && $(python) && $(track2)
95+
namespace: azure.mgmt.dns.v2016_04_01
96+
output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01
97+
```

0 commit comments

Comments
 (0)