From a9e335aacd76586fca952113a0be06dd7873c257 Mon Sep 17 00:00:00 2001 From: zhangyan133 <77086185+zhangyan133@users.noreply.github.com> Date: Tue, 16 Mar 2021 16:51:41 +0800 Subject: [PATCH] T2 DNS, modify readme.python.md (#13367) * modify readme.python.md * add swagger to sdk repo track2 * third modification * Update readme.python.md Co-authored-by: Yan Zhang (WICRESOFT NORTH AMERICA LTD) Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> --- specification/dns/resource-manager/readme.md | 1 + .../dns/resource-manager/readme.python.md | 50 +++++++++++++++++-- 2 files changed, 46 insertions(+), 5 deletions(-) diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index 1bc89a36ef83..466ce29512f9 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -161,6 +161,7 @@ swagger-to-sdk: - repo: azure-sdk-for-python after_scripts: - python ./scripts/multiapi_init_gen.py azure-mgmt-dns + - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - repo: azure-sdk-for-go - repo: azure-sdk-for-node diff --git a/specification/dns/resource-manager/readme.python.md b/specification/dns/resource-manager/readme.python.md index 79d57047a499..8e1f1387d5fd 100644 --- a/specification/dns/resource-manager/readme.python.md +++ b/specification/dns/resource-manager/readme.python.md @@ -2,7 +2,7 @@ These settings apply only when `--python` is specified on the command line. -```yaml $(python) +```yaml $(python) && !$(track2) python: azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION @@ -12,15 +12,40 @@ python: no-namespace-folders: true ``` +```yaml $(python) && $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-dns +no-namespace-folders: true +package-version: 1.0.0b1 +modelerfour: + lenient-model-deduplication: true +``` + ### Python multi-api Generate all API versions currently shipped for this package -```yaml $(python) && $(multiapi) +```yaml $(python) && $(multiapi) && !$(track2) +batch: + - tag: package-2018-05 + - tag: package-2018-03-preview + - tag: package-2016-04 +``` + +```yaml $(python) && $(multiapi) && $(track2) +clear-output-folder: true batch: - tag: package-2018-05 - tag: package-2018-03-preview - tag: package-2016-04 + - multiapiscript: true +``` + +``` yaml $(multiapiscript) +output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/ +clear-output-folder: false +perform-load: false ``` ### Tag: package-2018-05 and python @@ -28,30 +53,45 @@ batch: These settings apply only when `--tag=package-2018-05 --python` is specified on the command line. Please also specify `--python-sdks-folder=`. -``` yaml $(tag) == 'package-2018-05' && $(python) +``` yaml $(tag) == 'package-2018-05' && $(python) && !$(track2) python: namespace: azure.mgmt.dns.v2018_05_01 output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01 ``` +``` yaml $(tag) == 'package-2018-05' && $(python) && $(track2) +namespace: azure.mgmt.dns.v2018_05_01 +output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01 +``` + ### Tag: package-2018-03-preview and python These settings apply only when `--tag=package-2018-03-preview --python` is specified on the command line. Please also specify `--python-sdks-folder=`. -``` yaml $(tag) == 'package-2018-03-preview' && $(python) +``` yaml $(tag) == 'package-2018-03-preview' && $(python) && !$(track2) python: namespace: azure.mgmt.dns.v2018_03_01_preview output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview ``` +``` yaml $(tag) == 'package-2018-03-preview' && $(python) && $(track2) +namespace: azure.mgmt.dns.v2018_03_01_preview +output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview +``` + ### Tag: package-2016-04 and python These settings apply only when `--tag=package-2016-04 --python` is specified on the command line. Please also specify `--python-sdks-folder=`. -``` yaml $(tag) == 'package-2016-04' && $(python) +``` yaml $(tag) == 'package-2016-04' && $(python) && !$(track2) python: namespace: azure.mgmt.dns.v2016_04_01 output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01 ``` + +``` yaml $(tag) == 'package-2016-04' && $(python) && $(track2) +namespace: azure.mgmt.dns.v2016_04_01 +output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01 +```