From 098a73f91449a939a63a86d86703ff5274f40d97 Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Wed, 21 Jul 2021 09:46:48 +0800 Subject: [PATCH 1/3] Update readme.python.md --- .../resource-manager/readme.python.md | 35 +++++++++++++++---- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/specification/blueprint/resource-manager/readme.python.md b/specification/blueprint/resource-manager/readme.python.md index c5fa5e96e328..899059941412 100644 --- a/specification/blueprint/resource-manager/readme.python.md +++ b/specification/blueprint/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-mode: create python: azure-arm: true @@ -12,17 +12,40 @@ python: payload-flattening-threshold: 2 namespace: azure.mgmt.blueprint package-name: azure-mgmt-blueprint + package-version: 0.1.0 title: BlueprintManagementClient description: The Blueprint Client. clear-output-folder: true ``` -``` yaml $(python) && $(python-mode) == 'update' + +``` yaml $(python) && $(track2) +python-mode: create +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +namespace: azure.mgmt.blueprint +package-name: azure-mgmt-blueprint +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)/azure-mgmt-blueprint/azure/mgmt/blueprint + output-folder: $(python-sdks-folder)/blueprint/azure-mgmt-blueprint/azure/mgmt/blueprint ``` -``` yaml $(python) && $(python-mode) == 'create' + +``` yaml $(python) && $(python-mode) == 'create'&& !$(track2) python: basic-setup-py: true - output-folder: $(python-sdks-folder)/azure-mgmt-blueprint -``` \ No newline at end of file + output-folder: $(python-sdks-folder)/blueprint/azure-mgmt-blueprint +``` + +``` yaml $(python) && $(python-mode) == 'update' && $(track2) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/blueprint/azure-mgmt-blueprint/azure/mgmt/blueprint +``` + +``` yaml $(python) && $(python-mode) == 'create' && $(track2) +basic-setup-py: true +output-folder: $(python-sdks-folder)/blueprint/azure-mgmt-blueprint +``` From ca5aac9587a28bb9531f020da6eba718326f537a Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Wed, 21 Jul 2021 09:49:42 +0800 Subject: [PATCH 2/3] Update readme.md --- specification/blueprint/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/blueprint/resource-manager/readme.md b/specification/blueprint/resource-manager/readme.md index 5d57c7587278..3445d11dc42a 100644 --- a/specification/blueprint/resource-manager/readme.md +++ b/specification/blueprint/resource-manager/readme.md @@ -62,7 +62,7 @@ swagger-to-sdk: - repo: azure-sdk-for-net - repo: azure-sdk-for-go - repo: azure-sdk-for-js - - repo: azure-sdk-for-python + - repo: azure-sdk-for-python-track2 - repo: azure-resource-manager-schemas ``` From b1a745e3bda0c66ac36130aa1161c5834b5b4833 Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Wed, 21 Jul 2021 09:51:49 +0800 Subject: [PATCH 3/3] Update readme.python.md --- .../resource-manager/readme.python.md | 36 +++---------------- 1 file changed, 4 insertions(+), 32 deletions(-) diff --git a/specification/blueprint/resource-manager/readme.python.md b/specification/blueprint/resource-manager/readme.python.md index 899059941412..e39e1e3a364a 100644 --- a/specification/blueprint/resource-manager/readme.python.md +++ b/specification/blueprint/resource-manager/readme.python.md @@ -2,50 +2,22 @@ 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.blueprint - package-name: azure-mgmt-blueprint - package-version: 0.1.0 - title: BlueprintManagementClient - description: The Blueprint Client. - clear-output-folder: true -``` - -``` yaml $(python) && $(track2) -python-mode: create +``` yaml $(track2) azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION -namespace: azure.mgmt.blueprint package-name: azure-mgmt-blueprint +no-namespace-folders: true 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)/blueprint/azure-mgmt-blueprint/azure/mgmt/blueprint -``` - -``` yaml $(python) && $(python-mode) == 'create'&& !$(track2) -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/blueprint/azure-mgmt-blueprint -``` - -``` yaml $(python) && $(python-mode) == 'update' && $(track2) +``` yaml $(python-mode) == 'update' && $(track2) no-namespace-folders: true output-folder: $(python-sdks-folder)/blueprint/azure-mgmt-blueprint/azure/mgmt/blueprint ``` -``` yaml $(python) && $(python-mode) == 'create' && $(track2) +``` yaml $(python-mode) == 'create' && $(track2) basic-setup-py: true output-folder: $(python-sdks-folder)/blueprint/azure-mgmt-blueprint ```