Skip to content

Commit 3cf8aa9

Browse files
authored
track2 config (#15004)
1 parent 4017737 commit 3cf8aa9

File tree

9 files changed

+18
-115
lines changed

9 files changed

+18
-115
lines changed

specification/baremetalinfrastructure/resource-manager/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ This is not used by Autorest itself.
4949

5050
```yaml $(swagger-to-sdk)
5151
swagger-to-sdk:
52-
- repo: azure-sdk-for-python
5352
- repo: azure-sdk-for-python-track2
5453
- repo: azure-sdk-for-java
5554
- repo: azure-sdk-for-go

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

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,23 @@ These settings apply only when `--python` is specified on the command line.
44
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
55
Use --python-mode=update if you already have a setup.py and just want to update the code itself.
66

7-
```yaml !$(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.baremetalinfrastructure
14-
package-name: azure-mgmt-baremetalinfrastructure
15-
package-version: 0.1.0
16-
clear-output-folder: true
17-
```
18-
197
These settings apply only when `--track2` is specified on the command line.
208

219
``` yaml $(track2)
2210
azure-arm: true
2311
license-header: MICROSOFT_MIT_NO_VERSION
2412
package-name: azure-mgmt-baremetalinfrastructure
2513
no-namespace-folders: true
26-
package-version: 0.1.0
14+
package-version: 1.0.0b1
15+
clear-output-folder: true
2716
```
2817
29-
``` yaml $(python-mode) == 'update'
30-
python:
31-
no-namespace-folders: true
32-
output-folder: $(python-sdks-folder)/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure/azure/mgmt/baremetalinfrastructure
18+
``` yaml $(python-mode) == 'update' && $(track2)
3319
no-namespace-folders: true
3420
output-folder: $(python-sdks-folder)/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure/azure/mgmt/baremetalinfrastructure
3521
```
3622
37-
``` yaml $(python-mode) == 'create'
38-
python:
39-
basic-setup-py: true
40-
output-folder: $(python-sdks-folder)/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure
23+
``` yaml $(python-mode) == 'create' && $(track2)
4124
basic-setup-py: true
4225
output-folder: $(python-sdks-folder)/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure
4326
```

specification/peering/resource-manager/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ This is not used by Autorest itself.
129129

130130
``` yaml $(swagger-to-sdk)
131131
swagger-to-sdk:
132-
- repo: azure-sdk-for-python
133132
- repo: azure-sdk-for-python-track2
134133
- repo: azure-sdk-for-java
135134
- repo: azure-sdk-for-go

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

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,15 @@ These settings apply only when `--python` is specified on the command line.
44
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
55
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
66

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.peering
14-
package-name: azure-mgmt-peering
15-
package-version: 0.2.0
16-
clear-output-folder: true
17-
```
187
``` yaml $(python) && $(track2)
19-
python-mode: create
208
azure-arm: true
219
license-header: MICROSOFT_MIT_NO_VERSION
2210
namespace: azure.mgmt.peering
2311
package-name: azure-mgmt-peering
24-
package-version: 0.2.0
12+
package-version: 1.0.0b1
2513
clear-output-folder: true
2614
```
2715
28-
``` yaml $(python) && $(python-mode) == 'update' && !$(track2)
29-
python:
30-
no-namespace-folders: true
31-
output-folder: $(python-sdks-folder)/peering/azure-mgmt-peering/azure/mgmt/peering
32-
```
33-
``` yaml $(python) && $(python-mode) == 'create' && !$(track2)
34-
python:
35-
basic-setup-py: true
36-
output-folder: $(python-sdks-folder)/peering/azure-mgmt-peering
37-
```
3816
``` yaml $(python) && $(python-mode) == 'update' && $(track2)
3917
no-namespace-folders: true
4018
output-folder: $(python-sdks-folder)/peering/azure-mgmt-peering/azure/mgmt/peering

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

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,14 @@ These settings apply only when `--python` is specified on the command line.
44
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
55
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
66

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.securityinsight
14-
package-name: azure-mgmt-securityinsight
15-
package-version: 0.1.0
16-
clear-output-folder: true
17-
```
187
``` yaml $(python) && $(track2)
19-
python-mode: create
208
azure-arm: true
219
license-header: MICROSOFT_MIT_NO_VERSION
22-
payload-flattening-threshold: 2
2310
namespace: azure.mgmt.securityinsight
2411
package-name: azure-mgmt-securityinsight
25-
package-version: 0.1.0
12+
package-version: 1.0.0b1
2613
clear-output-folder: true
2714
```
28-
``` yaml $(python) && $(python-mode) == 'update' && !$(track2)
29-
python:
30-
no-namespace-folders: true
31-
output-folder: $(python-sdks-folder)/azure-mgmt-securityinsight/azure/mgmt/securityinsight
32-
```
33-
34-
``` yaml $(python) && $(python-mode) == 'create' && !$(track2)
35-
python:
36-
basic-setup-py: true
37-
output-folder: $(python-sdks-folder)/azure-mgmt-securityinsight
38-
```
3915
4016
``` yaml $(python) && $(python-mode) == 'update' && $(track2)
4117
no-namespace-folders: true

specification/streamanalytics/resource-manager/readme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ This is not used by Autorest itself.
119119
``` yaml $(swagger-to-sdk)
120120
swagger-to-sdk:
121121
- repo: azure-sdk-for-net
122-
- repo: azure-sdk-for-python
123122
- repo: azure-sdk-for-python-track2
124123
- repo: azure-sdk-for-go
125124
- repo: azure-sdk-for-node
@@ -148,6 +147,10 @@ csharp:
148147

149148
See configuration in [readme.go.md](./readme.go.md)
150149

150+
## Python
151+
152+
See configuration in [readme.python.md](./readme.python.md)
153+
151154
## Java
152155

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

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

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,22 @@ Please also specify `--python-sdks-folder=<path to the root directory of your az
55
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
66

77

8-
``` yaml !$(track2)
9-
python-mode: create
10-
python:
11-
azure-arm: true
12-
license-header: MICROSOFT_MIT_NO_VERSION
13-
payload-flattening-threshold: 2
14-
namespace: azure.mgmt.streamanalytics
15-
package-name: azure-mgmt-streamanalytics
16-
package-version: 0.1.0
17-
clear-output-folder: true
18-
```
19-
208
These settings apply only when `--track2` is specified on the command line.
219

2210
``` yaml $(track2)
2311
azure-arm: true
2412
license-header: MICROSOFT_MIT_NO_VERSION
2513
package-name: azure-mgmt-streamanalytics
2614
no-namespace-folders: true
15+
package-version: 1.0.0b1
16+
clear-output-folder: true
2717
```
2818
29-
``` yaml $(python-mode) == 'update'
30-
python:
31-
no-namespace-folders: true
32-
output-folder: $(python-sdks-folder)/streamanalytics/azure-mgmt-streamanalytics/azure/mgmt/streamanalytics
19+
``` yaml $(python-mode) == 'update' && $(track2)
3320
no-namespace-folders: true
3421
output-folder: $(python-sdks-folder)/streamanalytics/azure-mgmt-streamanalytics/azure/mgmt/streamanalytics
3522
```
36-
``` yaml $(python-mode) == 'create'
37-
python:
38-
package-version: 0.1.0
39-
basic-setup-py: true
40-
output-folder: $(python-sdks-folder)/streamanalytics/azure-mgmt-streamanalytics
41-
package-version: 0.1.0
23+
``` yaml $(python-mode) == 'create' && $(track2)
4224
basic-setup-py: true
4325
output-folder: $(python-sdks-folder)/streamanalytics/azure-mgmt-streamanalytics
4426
```

specification/workloadmonitor/resource-manager/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ This is not used by Autorest itself.
8080
``` yaml $(swagger-to-sdk)
8181
swagger-to-sdk:
8282
- repo: azure-sdk-for-net
83-
- repo: azure-sdk-for-python
8483
- repo: azure-sdk-for-python-track2
8584
- repo: azure-sdk-for-java
8685
- repo: azure-sdk-for-go

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

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,6 @@ These settings apply only when `--python` is specified on the command line.
44
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
55
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
66

7-
```yaml !$(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.workloadmonitor
14-
package-name: azure-mgmt-workloadmonitor
15-
package-version: 1.0.0
16-
clear-output-folder: true
17-
```
187

198
These settings apply only when `--track2` is specified on the command line.
209

@@ -23,21 +12,16 @@ azure-arm: true
2312
license-header: MICROSOFT_MIT_NO_VERSION
2413
package-name: azure-mgmt-workloadmonitor
2514
no-namespace-folders: true
26-
package-version: 1.0.0
15+
package-version: 1.0.0b1
16+
clear-output-folder: true
2717
```
2818
29-
``` yaml $(python) && $(python-mode) == 'update'
30-
python:
31-
no-namespace-folders: true
32-
output-folder: $(python-sdks-folder)/workloadmonitor/azure-mgmt-workloadmonitor/azure/mgmt/workloadmonitor
19+
``` yaml $(python) && $(python-mode) == 'update' && $(track2)
3320
no-namespace-folders: true
3421
output-folder: $(python-sdks-folder)/workloadmonitor/azure-mgmt-workloadmonitor/azure/mgmt/workloadmonitor
3522
```
3623
37-
``` yaml $(python) && $(python-mode) == 'create'
38-
python:
39-
basic-setup-py: true
40-
output-folder: $(python-sdks-folder)/workloadmonitor/azure-mgmt-workloadmonitor
24+
``` yaml $(python) && $(python-mode) == 'create' && $(track2)
4125
basic-setup-py: true
4226
output-folder: $(python-sdks-folder)/workloadmonitor/azure-mgmt-workloadmonitor
4327
```

0 commit comments

Comments
 (0)