Skip to content

Commit 731b282

Browse files
authored
[key vault] improve python readme and add multiapi client generation (#9870)
* fix python flags and add multiapi generation * temp * temp * kv changes * revert change to main readme * update changelog from 7.1-preview to 7.1
1 parent 98ae52b commit 731b282

File tree

1 file changed

+36
-34
lines changed

1 file changed

+36
-34
lines changed

specification/keyvault/data-plane/readme.python.md

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4,65 +4,67 @@ 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)
7+
``` yaml
88
python-mode: create
9-
python:
10-
azure-arm: true
11-
license-header: MICROSOFT_MIT_NO_VERSION
12-
payload-flattening-threshold: 2
13-
package-name: azure-keyvault
14-
clear-output-folder: true
15-
no-namespace-folders: true
9+
azure-arm: true
10+
license-header: MICROSOFT_MIT_NO_VERSION
11+
payload-flattening-threshold: 2
12+
package-name: azure-keyvault
13+
clear-output-folder: true
14+
no-namespace-folders: true
1615
```
1716
1817
### Python multi-api
1918
2019
Generate all API versions currently shipped for this package
2120
22-
```yaml $(python) && $(multiapi)
21+
```yaml $(multiapi)
2322
batch:
24-
- tag: package-7.2-preview
25-
- tag: package-7.1
26-
- tag: package-7.0
27-
- tag: package-2016-10
23+
- tag: package-2016-10
24+
- tag: package-7.0
25+
- tag: package-7.1
26+
- tag: package-7.2-preview
27+
- multiapiscript: true
2828
```
2929
30-
### Tag: package-7.2-preview and python
30+
``` yaml $(multiapiscript)
31+
output-folder: $(python-sdks-folder)/keyvault/azure-keyvault/azure/keyvault/
32+
clear-output-folder: false
33+
perform-load: false
34+
```
35+
36+
### Tag: package-7.2-preview
3137
32-
These settings apply only when `--tag=package-7.2-preview --python` is specified on the command line.
38+
These settings apply only when `--tag=package-7.2-preview` is specified on the command line.
3339

34-
``` yaml $(tag) == 'package-7.2-preview' && $(python)
35-
python:
36-
namespace: azure.keyvault.v7_2
37-
output-folder: $(python-sdks-folder)/keyvault/azure-keyvault/azure/keyvault/v7_2_preview
40+
``` yaml $(tag) == 'package-7.2-preview'
41+
namespace: azure.keyvault.v7_2
42+
output-folder: $(python-sdks-folder)/keyvault/azure-keyvault/azure/keyvault/v7_2_preview
3843
```
3944

40-
### Tag: package-7.1 and python
45+
### Tag: package-7.1
4146

42-
These settings apply only when `--tag=package-7.1 --python` is specified on the command line.
47+
These settings apply only when `--tag=package-7.1` is specified on the command line.
4348

44-
``` yaml $(tag) == 'package-7.1' && $(python)
45-
python:
46-
namespace: azure.keyvault.v7_1
47-
output-folder: $(python-sdks-folder)/keyvault/azure-keyvault/azure/keyvault/v7_1_preview
49+
``` yaml $(tag) == 'package-7.1'
50+
namespace: azure.keyvault.v7_1
51+
output-folder: $(python-sdks-folder)/keyvault/azure-keyvault/azure/keyvault/v7_1
4852
```
4953

50-
### Tag: package-7.0 and python
54+
### Tag: package-7.0
5155

52-
These settings apply only when `--tag=package-7.0 --python` is specified on the command line.
56+
These settings apply only when `--tag=package-7.0` is specified on the command line.
5357

54-
``` yaml $(tag) == 'package-7.0' && $(python)
55-
python:
58+
``` yaml $(tag) == 'package-7.0'
5659
namespace: azure.keyvault.v7_0
5760
output-folder: $(python-sdks-folder)/keyvault/azure-keyvault/azure/keyvault/v7_0
5861
```
5962

60-
### Tag: package-2016-10 and python
63+
### Tag: package-2016-10
6164

62-
These settings apply only when `--tag=package-2016-10 --python` is specified on the command line.
65+
These settings apply only when `--tag=package-2016-10` is specified on the command line.
6366

64-
``` yaml $(tag) == 'package-2016-10' && $(python)
65-
python:
67+
``` yaml $(tag) == 'package-2016-10'
6668
namespace: azure.keyvault.v2016_10_01
6769
output-folder: $(python-sdks-folder)/keyvault/azure-keyvault/azure/keyvault/v2016_10_01
68-
```
70+
```

0 commit comments

Comments
 (0)