From 6e765382bb72623e7f5d9a11b53954c586ab8663 Mon Sep 17 00:00:00 2001 From: zhangyan133 <77086185+zhangyan133@users.noreply.github.com> Date: Thu, 6 May 2021 15:34:44 +0800 Subject: [PATCH] trafficmanager wave4 (#14166) * trafficmanager wave4 * Update readme.python.md Co-authored-by: Yan Zhang (WICRESOFT NORTH AMERICA LTD) Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> --- .../trafficmanager/resource-manager/readme.md | 26 +---------- .../resource-manager/readme.python.md | 44 +++++++++++++++++++ 2 files changed, 46 insertions(+), 24 deletions(-) create mode 100644 specification/trafficmanager/resource-manager/readme.python.md diff --git a/specification/trafficmanager/resource-manager/readme.md b/specification/trafficmanager/resource-manager/readme.md index 24f264af844c..410aa199e403 100644 --- a/specification/trafficmanager/resource-manager/readme.md +++ b/specification/trafficmanager/resource-manager/readme.md @@ -183,6 +183,7 @@ This is not used by Autorest itself. swagger-to-sdk: - repo: azure-sdk-for-net - repo: azure-sdk-for-python + - repo: azure-sdk-for-python-track2 - repo: azure-libraries-for-java - repo: azure-sdk-for-go - repo: azure-sdk-for-node @@ -212,30 +213,7 @@ csharp: ## 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.mgmt.trafficmanager - package-name: azure-mgmt-trafficmanager - clear-output-folder: true -``` -``` yaml $(python) && $(python-mode) == 'update' -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/trafficmanager/azure-mgmt-trafficmanager/azure/mgmt/trafficmanager -``` -``` yaml $(python) && $(python-mode) == 'create' -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/trafficmanager/azure-mgmt-trafficmanager -``` +See configuration in [readme.python.md](./readme.python.md) ## Go diff --git a/specification/trafficmanager/resource-manager/readme.python.md b/specification/trafficmanager/resource-manager/readme.python.md new file mode 100644 index 000000000000..9cc7e779c70a --- /dev/null +++ b/specification/trafficmanager/resource-manager/readme.python.md @@ -0,0 +1,44 @@ +## 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)&& !$(track2) +python-mode: create +python: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: azure.mgmt.trafficmanager + package-name: azure-mgmt-trafficmanager + package-version: 1.0.0b1 + clear-output-folder: true +``` +``` yaml $(python) && $(track2) +python-mode: create +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +namespace: azure.mgmt.trafficmanager +package-name: azure-mgmt-trafficmanager +package-version: 1.0.0b1 +clear-output-folder: true +``` +``` yaml $(python) && $(python-mode) == 'update'&& !$(track2) +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/trafficmanager/azure-mgmt-trafficmanager/azure/mgmt/trafficmanager +``` +``` yaml $(python) && $(python-mode) == 'create'&& !$(track2) +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/trafficmanager/azure-mgmt-trafficmanager +``` +``` yaml $(python) && $(python-mode) == 'update' && $(track2) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/trafficmanager/azure-mgmt-trafficmanager/azure/mgmt/trafficmanager +``` +``` yaml $(python) && $(python-mode) == 'create' && $(track2) +basic-setup-py: true +output-folder: $(python-sdks-folder)/trafficmanager/azure-mgmt-trafficmanager +```