From 68a3fb8f341d38fd7bce5445b539d9a54f2b0029 Mon Sep 17 00:00:00 2001 From: Jiefeng Chen <51037443+BigCat20196@users.noreply.github.com> Date: Mon, 28 Mar 2022 09:49:05 +0800 Subject: [PATCH] [Msi] update readme.python to Multiapi (#18408) * update readme.python to multiapi * Update readme.python.md * Update readme.python.md --- .../msi/resource-manager/readme.python.md | 40 +++++++++++++++++-- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/specification/msi/resource-manager/readme.python.md b/specification/msi/resource-manager/readme.python.md index d05f5533bcc1..d662da1be07e 100644 --- a/specification/msi/resource-manager/readme.python.md +++ b/specification/msi/resource-manager/readme.python.md @@ -8,12 +8,44 @@ Use `--python-mode=update` if you already have a setup.py and just want to updat azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION package-name: azure-mgmt-msi -namespace: azure.mgmt.msi package-version: 1.0.0b1 +no-namespace-folders: true +``` + +### Python multi-api + +Generate all API versions currently shipped for this package + + +```yaml $(multiapi) && $(python) clear-output-folder: true +batch: + - tag: package-preview-2021-09 + - tag: package-2018-11-30 + - multiapiscript: true ``` -``` yaml $(python) -no-namespace-folders: true -output-folder: $(python-sdks-folder)/resources/azure-mgmt-msi/azure/mgmt/msi +``` yaml $(multiapiscript) +output-folder: $(python-sdks-folder)/resources/azure-mgmt-msi/azure/mgmt/msi/ +perform-load: false +``` + +### Tag: package-2019-09-preview and python + +These settings apply only when `--tag=package-preview-2021-09 --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-preview-2021-09' +namespace: azure.mgmt.msi.v2019_09_01_preview +output-folder: $(python-sdks-folder)/resources/azure-mgmt-msi/azure/mgmt/msi/v2019_09_01_preview +``` + +### Tag: package-2018-11-30 and python + +These settings apply only when `--tag=package-2018-11-30 --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2018-11-30' +namespace: azure.mgmt.msi.v2018_11_30 +output-folder: $(python-sdks-folder)/resources/azure-mgmt-msi/azure/mgmt/msi/v2018_11_30 ```