Skip to content

Commit 6faa9f0

Browse files
author
Ajit Navasare
authored
Added readme.python.md for multi API support (#12540)
* Added readme.python.md for multi API support
1 parent c658577 commit 6faa9f0

File tree

2 files changed

+88
-39
lines changed

2 files changed

+88
-39
lines changed

specification/servicebus/resource-manager/readme.md

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -134,45 +134,7 @@ csharp:
134134

135135
## Python
136136

137-
These settings apply only when `--python` is specified on the command line.
138-
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
139-
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
140-
141-
``` yaml $(python) && !$(track2)
142-
python-mode: create
143-
python:
144-
azure-arm: true
145-
license-header: MICROSOFT_MIT_NO_VERSION
146-
payload-flattening-threshold: 2
147-
namespace: azure.mgmt.servicebus
148-
package-name: azure-mgmt-servicebus
149-
package-version: 0.5.0
150-
clear-output-folder: true
151-
```
152-
``` yaml $(python) && $(track2)
153-
python-mode: create
154-
azure-arm: true
155-
license-header: MICROSOFT_MIT_NO_VERSION
156-
namespace: azure.mgmt.servicebus
157-
package-name: azure-mgmt-servicebus
158-
package-version: 0.5.0
159-
clear-output-folder: true
160-
```
161-
162-
``` yaml $(python) && $(python-mode) == 'update'
163-
no-namespace-folders: true
164-
output-folder: $(python-sdks-folder)/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus
165-
python:
166-
no-namespace-folders: true
167-
output-folder: $(python-sdks-folder)/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus
168-
```
169-
``` yaml $(python) && $(python-mode) == 'create'
170-
basic-setup-py: true
171-
output-folder: $(python-sdks-folder)/servicebus/azure-mgmt-servicebus
172-
python:
173-
basic-setup-py: true
174-
output-folder: $(python-sdks-folder)/servicebus/azure-mgmt-servicebus
175-
```
137+
See configuration in [readme.python.md](./readme.python.md)
176138

177139
## Go
178140

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
## Python
2+
3+
These settings apply only when `--python` is specified on the command line.
4+
5+
``` yaml !$(track2)
6+
python:
7+
azure-arm: true
8+
license-header: MICROSOFT_MIT_NO_VERSION
9+
payload-flattening-threshold: 2
10+
package-name: azure-mgmt-servicebus
11+
clear-output-folder: true
12+
no-namespace-folders: true
13+
```
14+
15+
These settings apply only when `--track2` is specified on the command line.
16+
17+
``` yaml $(track2)
18+
azure-arm: true
19+
license-header: MICROSOFT_MIT_NO_VERSION
20+
package-name: azure-mgmt-servicebus
21+
no-namespace-folders: true
22+
```
23+
24+
### Python multi-api
25+
26+
Generate all API versions currently shipped for this package
27+
28+
```yaml $(multiapi) && !$(track2)
29+
batch:
30+
- tag: package-2018-01-preview
31+
- tag: package-2017-04
32+
- tag: package-2015-08
33+
```
34+
35+
```yaml $(multiapi) && $(track2)
36+
clear-output-folder: true
37+
batch:
38+
- tag: package-2018-01-preview
39+
- tag: package-2017-04
40+
- tag: package-2015-08
41+
- multiapiscript: true
42+
```
43+
44+
``` yaml $(multiapiscript)
45+
output-folder: $(python-sdks-folder)/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/
46+
clear-output-folder: false
47+
perform-load: false
48+
```
49+
50+
### Tag: package-2018-01-preview and python
51+
52+
These settings apply only when `--tag=package-2018-01-preview --python` is specified on the command line.
53+
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
54+
55+
``` yaml $(tag) == 'package-2018-01-preview'
56+
namespace: azure.mgmt.servicebus.v2018_01_01_preview
57+
output-folder: $(python-sdks-folder)/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/v2018_01_01_preview
58+
python:
59+
namespace: azure.mgmt.servicebus.v2018_01_01_preview
60+
output-folder: $(python-sdks-folder)/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/v2018_01_01_preview
61+
```
62+
63+
### Tag: package-2017-04 and python
64+
65+
These settings apply only when `--tag=package-2017-04 --python` is specified on the command line.
66+
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
67+
68+
``` yaml $(tag) == 'package-2017-04'
69+
namespace: azure.mgmt.servicebus.v2017_04_01
70+
output-folder: $(python-sdks-folder)/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/v2017_04_01
71+
python:
72+
namespace: azure.mgmt.servicebus.v2017_04_01
73+
output-folder: $(python-sdks-folder)/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/v2017_04_01
74+
```
75+
76+
### Tag: package-2015-08 and python
77+
78+
These settings apply only when `--tag=package-2015-08 --python` is specified on the command line.
79+
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
80+
81+
``` yaml $(tag) == 'package-2015-08'
82+
namespace: azure.mgmt.servicebus.v2015_08_01
83+
output-folder: $(python-sdks-folder)/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/v2015_08_01
84+
python:
85+
namespace: azure.mgmt.servicebus.v2015_08_01
86+
output-folder: $(python-sdks-folder)/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/v2015_08_01
87+
```

0 commit comments

Comments
 (0)