From 1ea74f126afef4d0e06a3592c9ef5874649ea966 Mon Sep 17 00:00:00 2001 From: "Kaihui (Kerwin) Sun" Date: Tue, 2 Feb 2021 14:39:26 +0800 Subject: [PATCH] update python track2 config for redisenterprise (#12727) * update python track2 config for redisenterprise * remove old namespace * fix * fix --- .../resource-manager/readme.md | 2 +- .../resource-manager/readme.python.md | 28 ++++++++++--------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/specification/redisenterprise/resource-manager/readme.md b/specification/redisenterprise/resource-manager/readme.md index 40b8cc61561..ada0718718a 100644 --- a/specification/redisenterprise/resource-manager/readme.md +++ b/specification/redisenterprise/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-net - - repo: azure-sdk-for-python + - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - repo: azure-sdk-for-go - repo: azure-sdk-for-js diff --git a/specification/redisenterprise/resource-manager/readme.python.md b/specification/redisenterprise/resource-manager/readme.python.md index ee21c8325e1..3c3b3505c3f 100644 --- a/specification/redisenterprise/resource-manager/readme.python.md +++ b/specification/redisenterprise/resource-manager/readme.python.md @@ -3,19 +3,21 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. -```yaml $(python) -python: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - namespace: Microsoft.Cache - package-name: redisenterprise - package-version: 2020-10-01-preview - clear-output-folder: true +```yaml $(python) && $(track2) +python-mode: create +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +namespace: azure.mgmt.redisenterprise +package-name: azure-mgmt-redisenterprise +package-version: 1.0.0b1 +clear-output-folder: true ``` -```yaml $(python) -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/azure-mgmt/redisenterprise +```yaml $(python) && $(python-mode) == 'update' +no-namespace-folders: true +output-folder: $(python-sdks-folder)/redisenterprise/azure-mgmt-redisenterprise/azure/mgmt/redisenterprise +``` +```yaml $(python) && $(python-mode) == 'create' +basic-setup-py: true +output-folder: $(python-sdks-folder)/redisenterprise/azure-mgmt-redisenterprise ```