Skip to content

Commit

Permalink
fix python flags and add multiapi generation
Browse files Browse the repository at this point in the history
  • Loading branch information
iscai-msft committed Jun 17, 2020
1 parent 189fe8e commit 18d6f07
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions specification/keyvault/data-plane/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,65 +4,65 @@ These settings apply only when `--python` is specified on the command line.
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.

``` yaml $(python)
python-mode: create
python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
package-name: azure-keyvault
clear-output-folder: true
no-namespace-folders: true
``` yaml
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
package-name: azure-keyvault
clear-output-folder: true
no-namespace-folders: true
```
### Python multi-api
Generate all API versions currently shipped for this package
```yaml $(python) && $(multiapi)
```yaml $(multiapi)
batch:
- tag: package-7.2-preview
- tag: package-7.1-preview
- tag: package-7.0
- tag: package-2016-10
- multiapiscript: true
```
``` yaml $(multiapiscript)
output-folder: $(python-sdks-folder)/keyvault/azure-keyvault/azure/keyvault/
clear-output-folder: false
perform-load: false
```
### Tag: package-7.2-preview and python
These settings apply only when `--tag=package-7.2-preview --python` is specified on the command line.

``` yaml $(tag) == 'package-7.2-preview' && $(python)
python:
namespace: azure.keyvault.v7_2
output-folder: $(python-sdks-folder)/keyvault/azure-keyvault/azure/keyvault/v7_2_preview
``` yaml $(tag) == 'package-7.2-preview'
namespace: azure.keyvault.v7_2
output-folder: $(python-sdks-folder)/keyvault/azure-keyvault/azure/keyvault/v7_2_preview
```

### Tag: package-7.1-preview and python

These settings apply only when `--tag=package-7.1-preview --python` is specified on the command line.

``` yaml $(tag) == 'package-7.1-preview' && $(python)
python:
namespace: azure.keyvault.v7_1
output-folder: $(python-sdks-folder)/keyvault/azure-keyvault/azure/keyvault/v7_1_preview
``` yaml $(tag) == 'package-7.1-preview'
namespace: azure.keyvault.v7_1
output-folder: $(python-sdks-folder)/keyvault/azure-keyvault/azure/keyvault/v7_1_preview
```

### Tag: package-7.0 and python

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

``` yaml $(tag) == 'package-7.0' && $(python)
python:
namespace: azure.keyvault.v7_0
output-folder: $(python-sdks-folder)/keyvault/azure-keyvault/azure/keyvault/v7_0
``` yaml $(tag) == 'package-7.0'
namespace: azure.keyvault.v7_0
output-folder: $(python-sdks-folder)/keyvault/azure-keyvault/azure/keyvault/v7_0
```

### Tag: package-2016-10 and python

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

``` yaml $(tag) == 'package-2016-10' && $(python)
python:
namespace: azure.keyvault.v2016_10_01
output-folder: $(python-sdks-folder)/keyvault/azure-keyvault/azure/keyvault/v2016_10_01
``` yaml $(tag) == 'package-2016-10'
namespace: azure.keyvault.v2016_10_01
output-folder: $(python-sdks-folder)/keyvault/azure-keyvault/azure/keyvault/v2016_10_01
```

0 comments on commit 18d6f07

Please sign in to comment.