diff --git a/specification/keyvault/data-plane/readme.md b/specification/keyvault/data-plane/readme.md index 68f9afee7462..99613b17c32a 100644 --- a/specification/keyvault/data-plane/readme.md +++ b/specification/keyvault/data-plane/readme.md @@ -70,6 +70,9 @@ This is not used by Autorest itself. swagger-to-sdk: - repo: azure-sdk-for-go - repo: azure-sdk-for-node + - repo: azure-sdk-for-python + after_scripts: + - python ./scripts/multiapi_init_gen.py azure-keyvault ``` @@ -88,34 +91,6 @@ csharp: clear-output-folder: true ``` -## Python - -These settings apply only when `--python` is specified on the command line. -Please also specify `--python-sdks-folder=`. -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 - namespace: azure.keyvault - package-name: azure-keyvault - package-version: 1.0.0 - clear-output-folder: true -``` -``` yaml $(python) && $(python-mode) == 'update' -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/azure-keyvault/azure/keyvault -``` -``` yaml $(python) && $(python-mode) == 'create' -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/azure-keyvault -``` - ## Go diff --git a/specification/keyvault/data-plane/readme.python.md b/specification/keyvault/data-plane/readme.python.md new file mode 100644 index 000000000000..3465d1a7b156 --- /dev/null +++ b/specification/keyvault/data-plane/readme.python.md @@ -0,0 +1,46 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. +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 +``` + +### Python multi-api + +Generate all API versions currently shipped for this package + +```yaml $(python) && $(multiapi) +batch: + - tag: package-7.0 + - tag: package-2016-10 +``` + +### 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)/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)/azure-keyvault/azure/keyvault/v2016_10_01 +```