From 212e4e22f2526972b62c1e9cda6689935f15a155 Mon Sep 17 00:00:00 2001 From: 00Kai0 Date: Mon, 30 Nov 2020 10:15:13 +0800 Subject: [PATCH] add databox track2 config --- .../databox/resource-manager/readme.python.md | 57 ++++++++++++++++--- 1 file changed, 50 insertions(+), 7 deletions(-) diff --git a/specification/databox/resource-manager/readme.python.md b/specification/databox/resource-manager/readme.python.md index ebdc1a83087b..2956e1d72d64 100644 --- a/specification/databox/resource-manager/readme.python.md +++ b/specification/databox/resource-manager/readme.python.md @@ -4,7 +4,7 @@ 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) +``` yaml $(python) && !$(track2) python: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION @@ -18,16 +18,43 @@ python: no-namespace-folders: true ``` +``` yaml $(python) && $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +namespace: azure.mgmt.databox +package-name: azure-mgmt-databox +package-version: 0.1.0 +title: DataBoxManagementClient +description: The DataBox Client. +clear-output-folder: true +no-namespace-folders: true +``` + ### Python multi-api Generate all API versions currently shipped for this package -```yaml $(python) && $(multiapi) +```yaml $(python) && $(multiapi) && !$(track2) +batch: + - tag: package-2020-11 + - tag: package-2020-04 + - tag: package-2019-09 + - tag: package-2018-01 +``` + +```yaml $(python) && $(multiapi) && $(track2) batch: - tag: package-2020-11 - tag: package-2020-04 - tag: package-2019-09 - tag: package-2018-01 + - multiapiscript: true +``` + +``` yaml $(multiapiscript) +output-folder: $(python-sdks-folder)/databox/azure-mgmt-databox/azure/mgmt/databox/ +clear-output-folder: false +perform-load: false ``` ### Tag: package-2020-11 and python @@ -35,41 +62,57 @@ batch: These settings apply only when `--tag=package-2020-11 --python` is specified on the command line. Please also specify `--python-sdks-folder=`. -``` yaml $(tag) == 'package-2020-11' && $(python) +``` yaml $(tag) == 'package-2020-11' && $(python) && !$(track2) python: namespace: azure.mgmt.databox.v2020_11_01 output-folder: $(python-sdks-folder)/databox/azure-mgmt-databox/azure/mgmt/databox/v2020_11_01 ``` +``` yaml $(tag) == 'package-2020-11' && $(python) && $(track2) +namespace: azure.mgmt.databox.v2020_11_01 +output-folder: $(python-sdks-folder)/databox/azure-mgmt-databox/azure/mgmt/databox/v2020_11_01 +``` ### Tag: package-2020-04 and python These settings apply only when `--tag=package-2020-04 --python` is specified on the command line. Please also specify `--python-sdks-folder=`. -``` yaml $(tag) == 'package-2020-04' && $(python) +``` yaml $(tag) == 'package-2020-04' && $(python) && !$(track2) python: namespace: azure.mgmt.databox.v2020_04_01 output-folder: $(python-sdks-folder)/databox/azure-mgmt-databox/azure/mgmt/databox/v2020_04_01 ``` +``` yaml $(tag) == 'package-2020-04' && $(python) && $(track2) +namespace: azure.mgmt.databox.v2020_04_01 +output-folder: $(python-sdks-folder)/databox/azure-mgmt-databox/azure/mgmt/databox/v2020_04_01 +``` ### Tag: package-2019-09 and python These settings apply only when `--tag=package-2019-09 --python` is specified on the command line. Please also specify `--python-sdks-folder=`. -``` yaml $(tag) == 'package-2019-09' && $(python) +``` yaml $(tag) == 'package-2019-09' && $(python) && !$(track2) python: namespace: azure.mgmt.databox.v2019_09_01 output-folder: $(python-sdks-folder)/databox/azure-mgmt-databox/azure/mgmt/databox/v2019_09_01 ``` +``` yaml $(tag) == 'package-2019-09' && $(python) && $(track2) +namespace: azure.mgmt.databox.v2019_09_01 +output-folder: $(python-sdks-folder)/databox/azure-mgmt-databox/azure/mgmt/databox/v2019_09_01 +``` ### Tag: package-2018-01 and python These settings apply only when `--tag=package-2018-01 --python` is specified on the command line. Please also specify `--python-sdks-folder=`. -``` yaml $(tag) == 'package-2018-01' && $(python) +``` yaml $(tag) == 'package-2018-01' && $(python) && !$(track2) python: namespace: azure.mgmt.databox.v2018_01_01 output-folder: $(python-sdks-folder)/databox/azure-mgmt-databox/azure/mgmt/databox/v2018_01_01 -``` \ No newline at end of file +``` +``` yaml $(tag) == 'package-2018-01' && $(python) && $(track2) +namespace: azure.mgmt.databox.v2018_01_01 +output-folder: $(python-sdks-folder)/databox/azure-mgmt-databox/azure/mgmt/databox/v2018_01_01 +```