From a47d719eff4719638dbd6ec5c71ca739c131e454 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Fri, 14 Jan 2022 15:33:08 +0800 Subject: [PATCH 1/2] track2 config --- .../resource-manager/readme.md | 2 +- .../resource-manager/readme.python.md | 39 +++++-------------- 2 files changed, 10 insertions(+), 31 deletions(-) diff --git a/specification/machinelearningservices/resource-manager/readme.md b/specification/machinelearningservices/resource-manager/readme.md index 8f7987201c4a..6c666162f092 100644 --- a/specification/machinelearningservices/resource-manager/readme.md +++ b/specification/machinelearningservices/resource-manager/readme.md @@ -233,7 +233,7 @@ swagger-to-sdk: - repo: azure-sdk-for-net-track2 - repo: azure-sdk-for-go - repo: azure-sdk-for-go-track2 - - repo: azure-sdk-for-python + - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - repo: azure-sdk-for-js - repo: azure-sdk-for-node diff --git a/specification/machinelearningservices/resource-manager/readme.python.md b/specification/machinelearningservices/resource-manager/readme.python.md index 1af80c915fe6..c54ccd1061a2 100644 --- a/specification/machinelearningservices/resource-manager/readme.python.md +++ b/specification/machinelearningservices/resource-manager/readme.python.md @@ -2,43 +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.machinelearningservices - package-name: azure-mgmt-machinelearningservices - package-version: 0.1.0 - clear-output-folder: true -``` -``` yaml $(python) && $(track2) -python-mode: create +``` yaml $(track2) azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION -namespace: azure.mgmt.machinelearningservices package-name: azure-mgmt-machinelearningservices -package-version: 0.1.0 +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)/machinelearning/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices -``` -``` yaml $(python) && $(python-mode) == 'create' && !$(track2) -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/machinelearning/azure-mgmt-machinelearningservices -``` -``` yaml $(python) && $(python-mode) == 'update' && $(track2) + +``` yaml $(python-mode) == 'update' && $(track2) no-namespace-folders: true -output-folder: $(python-sdks-folder)/machinelearning/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices +output-folder: $(python-sdks-folder)/machinelearningservices/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices ``` -``` yaml $(python) && $(python-mode) == 'create' && $(track2) + +``` yaml $(python-mode) == 'create' && $(track2) basic-setup-py: true -output-folder: $(python-sdks-folder)/machinelearning/azure-mgmt-machinelearningservices +output-folder: $(python-sdks-folder)/machinelearningservices/azure-mgmt-machinelearningservices ``` \ No newline at end of file From 851e9c976ec7ed30c31483c4eb00fa7a419b646a Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Fri, 14 Jan 2022 15:34:40 +0800 Subject: [PATCH 2/2] track2 config --- .../machinelearningservices/resource-manager/readme.python.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/machinelearningservices/resource-manager/readme.python.md b/specification/machinelearningservices/resource-manager/readme.python.md index c54ccd1061a2..9960b888e3fb 100644 --- a/specification/machinelearningservices/resource-manager/readme.python.md +++ b/specification/machinelearningservices/resource-manager/readme.python.md @@ -14,10 +14,10 @@ clear-output-folder: true ``` yaml $(python-mode) == 'update' && $(track2) no-namespace-folders: true -output-folder: $(python-sdks-folder)/machinelearningservices/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices +output-folder: $(python-sdks-folder)/machinelearning/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices ``` ``` yaml $(python-mode) == 'create' && $(track2) basic-setup-py: true -output-folder: $(python-sdks-folder)/machinelearningservices/azure-mgmt-machinelearningservices +output-folder: $(python-sdks-folder)/machinelearning/azure-mgmt-machinelearningservices ``` \ No newline at end of file