From cfb12860aedba6cf2bc6e3c68ef49df4afdcf98f Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Wed, 4 Nov 2020 10:37:29 +0800 Subject: [PATCH 1/2] track2 --- .../securityinsights/resource-manager/readme.md | 1 + .../resource-manager/readme.python.md | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/specification/securityinsights/resource-manager/readme.md b/specification/securityinsights/resource-manager/readme.md index e9bf77101153..09ac2faed74c 100644 --- a/specification/securityinsights/resource-manager/readme.md +++ b/specification/securityinsights/resource-manager/readme.md @@ -74,6 +74,7 @@ swagger-to-sdk: - repo: azure-sdk-for-net - repo: azure-sdk-for-go - repo: azure-sdk-for-python + - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-js - repo: azure-sdk-for-node - repo: azure-cli-extensions diff --git a/specification/securityinsights/resource-manager/readme.python.md b/specification/securityinsights/resource-manager/readme.python.md index 1818849662fd..75994ac854f6 100644 --- a/specification/securityinsights/resource-manager/readme.python.md +++ b/specification/securityinsights/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 @@ -15,13 +15,27 @@ python: package-version: 0.1.0 clear-output-folder: true ``` +``` yaml $(python) && $(track2) +python-mode: create +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +payload-flattening-threshold: 2 +namespace: azure.mgmt.securityinsight +package-name: azure-mgmt-securityinsight +package-version: 0.1.0 +clear-output-folder: true +``` ``` yaml $(python) && $(python-mode) == 'update' python: no-namespace-folders: true output-folder: $(python-sdks-folder)/azure-mgmt-securityinsight/azure/mgmt/securityinsight +no-namespace-folders: true +output-folder: $(python-sdks-folder)/azure-mgmt-securityinsight/azure/mgmt/securityinsight ``` ``` yaml $(python) && $(python-mode) == 'create' python: basic-setup-py: true output-folder: $(python-sdks-folder)/azure-mgmt-securityinsight +basic-setup-py: true +output-folder: $(python-sdks-folder)/azure-mgmt-securityinsight ``` From c7190a7790235096268933e4ba2ce96bc1310877 Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Thu, 5 Nov 2020 16:14:20 +0800 Subject: [PATCH 2/2] Update readme.python.md --- .../resource-manager/readme.python.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/specification/securityinsights/resource-manager/readme.python.md b/specification/securityinsights/resource-manager/readme.python.md index 75994ac854f6..e7c2576215ec 100644 --- a/specification/securityinsights/resource-manager/readme.python.md +++ b/specification/securityinsights/resource-manager/readme.python.md @@ -25,17 +25,24 @@ package-name: azure-mgmt-securityinsight package-version: 0.1.0 clear-output-folder: true ``` -``` yaml $(python) && $(python-mode) == 'update' +``` yaml $(python) && $(python-mode) == 'update' && !$(track2) python: no-namespace-folders: true output-folder: $(python-sdks-folder)/azure-mgmt-securityinsight/azure/mgmt/securityinsight -no-namespace-folders: true -output-folder: $(python-sdks-folder)/azure-mgmt-securityinsight/azure/mgmt/securityinsight ``` -``` yaml $(python) && $(python-mode) == 'create' + +``` yaml $(python) && $(python-mode) == 'create' && !$(track2) python: basic-setup-py: true output-folder: $(python-sdks-folder)/azure-mgmt-securityinsight +``` + +``` yaml $(python) && $(python-mode) == 'update' && $(track2) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/azure-mgmt-securityinsight/azure/mgmt/securityinsight +``` + +``` yaml $(python) && $(python-mode) == 'create' && $(track2) basic-setup-py: true output-folder: $(python-sdks-folder)/azure-mgmt-securityinsight ```