Skip to content

Commit 9107915

Browse files
RAY-316msyyc
andauthored
sql t2 readme config (Azure#14370)
* sql t2 readme config * readme config * Update readme.python.md Co-authored-by: msyyc <[email protected]>
1 parent 14d2ddf commit 9107915

File tree

2 files changed

+53
-27
lines changed

2 files changed

+53
-27
lines changed

specification/sql/resource-manager/readme.md

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,6 +1426,7 @@ This is not used by Autorest itself.
14261426
swagger-to-sdk:
14271427
- repo: azure-sdk-for-net
14281428
- repo: azure-sdk-for-python
1429+
- repo: azure-sdk-for-python-track2
14291430
- repo: azure-sdk-for-java
14301431
- repo: azure-sdk-for-go
14311432
- repo: azure-sdk-for-node
@@ -1452,33 +1453,7 @@ csharp:
14521453

14531454
### Python
14541455

1455-
These settings apply only when `--python` is specified on the command line.
1456-
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
1457-
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
1458-
1459-
``` yaml $(python)
1460-
python-mode: create
1461-
python:
1462-
azure-arm: true
1463-
license-header: MICROSOFT_MIT_NO_VERSION
1464-
payload-flattening-threshold: 2
1465-
namespace: azure.mgmt.sql
1466-
package-name: azure-mgmt-sql
1467-
package-version: 0.9.0
1468-
clear-output-folder: true
1469-
```
1470-
1471-
``` yaml $(python) && $(python-mode) == 'update'
1472-
python:
1473-
no-namespace-folders: true
1474-
output-folder: $(python-sdks-folder)/sql/azure-mgmt-sql/azure/mgmt/sql
1475-
```
1476-
1477-
``` yaml $(python) && $(python-mode) == 'create'
1478-
python:
1479-
basic-setup-py: true
1480-
output-folder: $(python-sdks-folder)/sql/azure-mgmt-sql
1481-
```
1456+
See configuration in [readme.python.md](./readme.python.md)
14821457

14831458
### Go
14841459

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
### Python
2+
3+
These settings apply only when `--python` is specified on the command line.
4+
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
5+
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
6+
7+
``` yaml $(python) && !$(track2)
8+
python-mode: create
9+
python:
10+
azure-arm: true
11+
license-header: MICROSOFT_MIT_NO_VERSION
12+
payload-flattening-threshold: 2
13+
namespace: azure.mgmt.sql
14+
package-name: azure-mgmt-sql
15+
package-version: 0.9.0
16+
clear-output-folder: true
17+
```
18+
19+
``` yaml $(python) && $(track2)
20+
python-mode: create
21+
azure-arm: true
22+
license-header: MICROSOFT_MIT_NO_VERSION
23+
namespace: azure.mgmt.sql
24+
package-name: azure-mgmt-sql
25+
package-version: 0.9.0
26+
clear-output-folder: true
27+
modelerfour:
28+
lenient-model-deduplication: true
29+
```
30+
31+
``` yaml $(python) && $(python-mode) == 'update' && !$(track2)
32+
python:
33+
no-namespace-folders: true
34+
output-folder: $(python-sdks-folder)/sql/azure-mgmt-sql/azure/mgmt/sql
35+
```
36+
37+
``` yaml $(python) && $(python-mode) == 'create' && !$(track2)
38+
python:
39+
basic-setup-py: true
40+
output-folder: $(python-sdks-folder)/sql/azure-mgmt-sql
41+
```
42+
43+
``` yaml $(python) && $(python-mode) == 'update' && $(track2)
44+
no-namespace-folders: true
45+
output-folder: $(python-sdks-folder)/sql/azure-mgmt-sql/azure/mgmt/sql
46+
```
47+
48+
``` yaml $(python) && $(python-mode) == 'create' && $(track2)
49+
basic-setup-py: true
50+
output-folder: $(python-sdks-folder)/sql/azure-mgmt-sql
51+
```

0 commit comments

Comments
 (0)