From 08688f37c1fef80c4e1a6ee73da6c87d0b061748 Mon Sep 17 00:00:00 2001 From: "Kaihui (Kerwin) Sun" Date: Fri, 29 Jan 2021 16:23:02 +0800 Subject: [PATCH] Upgrade to python track2 sdk for purview (#12634) * upgrade to python track2 sdk for purview * Update readme.md * Update readme.md * fix Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> --- .../purview/resource-manager/readme.md | 27 ++----------------- .../purview/resource-manager/readme.python.md | 23 ++++++++++++++++ 2 files changed, 25 insertions(+), 25 deletions(-) create mode 100644 specification/purview/resource-manager/readme.python.md diff --git a/specification/purview/resource-manager/readme.md b/specification/purview/resource-manager/readme.md index a29d31483b91..5ba1fd5d77dd 100644 --- a/specification/purview/resource-manager/readme.md +++ b/specification/purview/resource-manager/readme.md @@ -50,7 +50,7 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: - - repo: azure-sdk-for-python + - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-go ``` @@ -71,30 +71,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.purview - package-name: azure-mgmt-purview - clear-output-folder: true -``` -``` yaml $(python) && $(python-mode) == 'update' -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/purview/azure-mgmt-purview/azure/mgmt/purview -``` -``` yaml $(python) && $(python-mode) == 'create' -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/purview/azure-mgmt-purview -``` +See configuration in [readme.python.md](./readme.python.md) ## Go diff --git a/specification/purview/resource-manager/readme.python.md b/specification/purview/resource-manager/readme.python.md new file mode 100644 index 000000000000..c18f8e52b6db --- /dev/null +++ b/specification/purview/resource-manager/readme.python.md @@ -0,0 +1,23 @@ +## 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 +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +namespace: azure.mgmt.purview +package-name: azure-mgmt-purview +package-version: 1.0.0b1 +clear-output-folder: true +``` +``` yaml $(python) && $(python-mode) == 'update' && $(track2) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/purview/azure-mgmt-purview/azure/mgmt/purview +``` +``` yaml $(python) && $(python-mode) == 'create' && $(track2) +basic-setup-py: true +output-folder: $(python-sdks-folder)/purview/azure-mgmt-purview +```