From b445c03c91179e994597198ffdd3147b3be47a41 Mon Sep 17 00:00:00 2001 From: 00Kai0 Date: Tue, 26 Jan 2021 11:47:09 +0800 Subject: [PATCH 1/4] upgrade to python track2 sdk for purview --- .../purview/resource-manager/readme.md | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/specification/purview/resource-manager/readme.md b/specification/purview/resource-manager/readme.md index 276d1f85ef54..1618fca1fb4d 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 ``` @@ -77,23 +77,19 @@ Use `--python-mode=update` if you already have a setup.py and just want to updat ``` 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 +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +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 +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 +basic-setup-py: true +output-folder: $(python-sdks-folder)/purview/azure-mgmt-purview ``` From 0b34250735d4e53e60691e528f53c33897d2f0c9 Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Fri, 29 Jan 2021 15:28:55 +0800 Subject: [PATCH 2/4] Update readme.md --- specification/purview/resource-manager/readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/purview/resource-manager/readme.md b/specification/purview/resource-manager/readme.md index 1618fca1fb4d..fef066461b47 100644 --- a/specification/purview/resource-manager/readme.md +++ b/specification/purview/resource-manager/readme.md @@ -81,6 +81,7 @@ azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.mgmt.purview package-name: azure-mgmt-purview +package-version: 1.0.0 clear-output-folder: true ``` ``` yaml $(python) && $(python-mode) == 'update' From 971e373806ee448953efc2062e5ed2ab8678255a Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Fri, 29 Jan 2021 15:29:34 +0800 Subject: [PATCH 3/4] Update readme.md --- specification/purview/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/purview/resource-manager/readme.md b/specification/purview/resource-manager/readme.md index fef066461b47..108cd4bdf090 100644 --- a/specification/purview/resource-manager/readme.md +++ b/specification/purview/resource-manager/readme.md @@ -81,7 +81,7 @@ azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.mgmt.purview package-name: azure-mgmt-purview -package-version: 1.0.0 +package-version: 1.0.0b1 clear-output-folder: true ``` ``` yaml $(python) && $(python-mode) == 'update' From 68c2cd026e4fea21b2a2c6bc465e8b8e3ec10535 Mon Sep 17 00:00:00 2001 From: 00Kai0 Date: Fri, 29 Jan 2021 15:31:29 +0800 Subject: [PATCH 4/4] fix --- .../purview/resource-manager/readme.md | 22 +----------------- .../purview/resource-manager/readme.python.md | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+), 21 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 1618fca1fb4d..dadcf28fde0a 100644 --- a/specification/purview/resource-manager/readme.md +++ b/specification/purview/resource-manager/readme.md @@ -71,27 +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 -azure-arm: true -license-header: MICROSOFT_MIT_NO_VERSION -namespace: azure.mgmt.purview -package-name: azure-mgmt-purview -clear-output-folder: true -``` -``` yaml $(python) && $(python-mode) == 'update' -no-namespace-folders: true -output-folder: $(python-sdks-folder)/purview/azure-mgmt-purview/azure/mgmt/purview -``` -``` yaml $(python) && $(python-mode) == 'create' -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 +```