Skip to content

Commit 8dcd644

Browse files
msyycgiromm2ms
authored andcommitted
[T2] devtestlabs for python track2 (Azure#11724)
* python track2 * python
1 parent d374c41 commit 8dcd644

File tree

2 files changed

+43
-24
lines changed

2 files changed

+43
-24
lines changed

specification/devtestlabs/resource-manager/readme.md

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ This is not used by Autorest itself.
7171
swagger-to-sdk:
7272
- repo: azure-sdk-for-net
7373
- repo: azure-sdk-for-python
74+
- repo: azure-sdk-for-python-track2
7475
- repo: azure-sdk-for-java
7576
- repo: azure-sdk-for-go
7677
- repo: azure-sdk-for-js
@@ -100,30 +101,7 @@ csharp:
100101

101102
## Python
102103

103-
These settings apply only when `--python` is specified on the command line.
104-
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
105-
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
106-
107-
``` yaml $(python)
108-
python-mode: create
109-
python:
110-
azure-arm: true
111-
license-header: MICROSOFT_MIT_NO_VERSION
112-
payload-flattening-threshold: 2
113-
namespace: azure.mgmt.devtestlabs
114-
package-name: azure-mgmt-devtestlabs
115-
clear-output-folder: true
116-
```
117-
``` yaml $(python) && $(python-mode) == 'update'
118-
python:
119-
no-namespace-folders: true
120-
output-folder: $(python-sdks-folder)/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs
121-
```
122-
``` yaml $(python) && $(python-mode) == 'create'
123-
python:
124-
basic-setup-py: true
125-
output-folder: $(python-sdks-folder)/devtestlabs/azure-mgmt-devtestlabs
126-
```
104+
See configuration in [readme.python.md](./readme.python.md)
127105

128106
## Go
129107

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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.devtestlabs
14+
package-name: azure-mgmt-devtestlabs
15+
package-version: 1.0.0
16+
clear-output-folder: true
17+
```
18+
``` yaml $(python) && $(track2)
19+
python-mode: create
20+
azure-arm: true
21+
license-header: MICROSOFT_MIT_NO_VERSION
22+
payload-flattening-threshold: 2
23+
namespace: azure.mgmt.devtestlabs
24+
package-name: azure-mgmt-devtestlabs
25+
package-version: 1.0.0
26+
clear-output-folder: true
27+
```
28+
``` yaml $(python) && $(python-mode) == 'update'
29+
python:
30+
no-namespace-folders: true
31+
output-folder: $(python-sdks-folder)/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs
32+
no-namespace-folders: true
33+
output-folder: $(python-sdks-folder)/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs
34+
```
35+
``` yaml $(python) && $(python-mode) == 'create'
36+
python:
37+
basic-setup-py: true
38+
output-folder: $(python-sdks-folder)/devtestlabs/azure-mgmt-devtestlabs
39+
basic-setup-py: true
40+
output-folder: $(python-sdks-folder)/devtestlabs/azure-mgmt-devtestlabs
41+
```

0 commit comments

Comments
 (0)