From f5d9d8aa631a79068146a6a720d6d21c9a22ef8f Mon Sep 17 00:00:00 2001 From: unknown <424401670@qq.com> Date: Thu, 24 Mar 2022 15:12:31 +0800 Subject: [PATCH 1/4] update readme --- .../resource-manager/readme.python.md | 23 +++++---------- .../resource-manager/readme.python.md | 12 +++----- .../resource-manager/readme.python.md | 8 +---- .../resource-manager/readme.python.md | 29 +++++++++---------- .../resource-manager/readme.python.md | 11 ++----- 5 files changed, 29 insertions(+), 54 deletions(-) diff --git a/specification/managednetwork/resource-manager/readme.python.md b/specification/managednetwork/resource-manager/readme.python.md index 3c302015817c..d8f9d123b3bf 100644 --- a/specification/managednetwork/resource-manager/readme.python.md +++ b/specification/managednetwork/resource-manager/readme.python.md @@ -3,21 +3,14 @@ These settings apply only when `--python` is specified on the command line. ``` yaml $(python) -python: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - package-name: azure-mgmt-managednetwork - clear-output-folder: true +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +payload-flattening-threshold: 2 +package-name: azure-mgmt-managednetwork +clear-output-folder: true ``` -``` yaml $(python) && $(python-mode) == 'update' -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/managednetwork/azure-mgmt-managednetwork/azure/mgmt/managednetwork -``` -``` yaml $(python) && $(python-mode) == 'create' -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/managednetwork/azure-mgmt-managednetwork +``` yaml $(python) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/managednetwork/azure-mgmt-managednetwork/azure/mgmt/managednetwork ``` diff --git a/specification/operationalinsights/resource-manager/readme.python.md b/specification/operationalinsights/resource-manager/readme.python.md index 3eb360a05037..063c81e412d9 100644 --- a/specification/operationalinsights/resource-manager/readme.python.md +++ b/specification/operationalinsights/resource-manager/readme.python.md @@ -2,9 +2,8 @@ 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) +``` yaml $(python) azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.mgmt.loganalytics @@ -13,15 +12,12 @@ package-version: 7.0.0b1 clear-output-folder: true ``` -``` yaml $(python) && $(python-mode) == 'update' && $(track2) +``` yaml $(python) no-namespace-folders: true output-folder: $(python-sdks-folder)/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics ``` -``` yaml $(python) && $(python-mode) == 'create' && $(track2) -basic-setup-py: true -output-folder: $(python-sdks-folder)/loganalytics/azure-mgmt-loganalytics -``` -``` yaml $(python) && $(track2) + +``` yaml $(python) modelerfour: lenient-model-deduplication: true ``` diff --git a/specification/powerbiprivatelinks/resource-manager/readme.python.md b/specification/powerbiprivatelinks/resource-manager/readme.python.md index 080807cc4d8f..70c037e2b4df 100644 --- a/specification/powerbiprivatelinks/resource-manager/readme.python.md +++ b/specification/powerbiprivatelinks/resource-manager/readme.python.md @@ -5,7 +5,6 @@ Please also specify `--python-sdks-folder=`. ```yaml $(python) -python: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - namespace: Microsoft.ProviderHub - package-name: providerhub - package-version: 2020-11-20 - clear-output-folder: true +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +payload-flattening-threshold: 2 +namespace: azure.mgmt.providerhub +package-name: azure-mgmt-providerhub +package-version: 2020-11-20 +clear-output-folder: true ``` -```yaml $(python) -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/azure-mgmt/providerhub +``` yaml $(python) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/providerhub/azure-mgmt-providerhub/azure/mgmt/providerhub ``` -``` yaml $(python) && $(python-mode) == 'update' -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/azure-mgmt/providerhub/azure/mgmt/providerhub +``` yaml $(python) +modelerfour: + lenient-model-deduplication: true ``` diff --git a/specification/recommendationsservice/resource-manager/readme.python.md b/specification/recommendationsservice/resource-manager/readme.python.md index b4199b55bccf..b3fb2d6a911a 100644 --- a/specification/recommendationsservice/resource-manager/readme.python.md +++ b/specification/recommendationsservice/resource-manager/readme.python.md @@ -3,21 +3,16 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. -``` yaml $(track2) +``` yaml $(python) azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION package-name: azure-mgmt-recommendationsservice -no-namespace-folders: true +namespace: azure.mgmt.recommendationsservice package-version: 1.0.0b1 clear-output-folder: true ``` -``` yaml $(python-mode) == 'update' && $(track2) +``` yaml $(python) no-namespace-folders: true output-folder: $(python-sdks-folder)/recommendationsservice/azure-mgmt-recommendationsservice/azure/mgmt/recommendationsservice -``` - -``` yaml $(python-mode) == 'create' && $(track2) -basic-setup-py: true -output-folder: $(python-sdks-folder)/recommendationsservice/azure-mgmt-recommendationsservice ``` \ No newline at end of file From 9255a3c7f3409441e0186c8ac6526a7c754c9588 Mon Sep 17 00:00:00 2001 From: unknown <424401670@qq.com> Date: Thu, 24 Mar 2022 15:46:28 +0800 Subject: [PATCH 2/4] update readme --- specification/managednetwork/resource-manager/readme.md | 2 +- specification/providerhub/resource-manager/readme.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/managednetwork/resource-manager/readme.md b/specification/managednetwork/resource-manager/readme.md index 81a1cb549adb..1af5c0a5c47c 100644 --- a/specification/managednetwork/resource-manager/readme.md +++ b/specification/managednetwork/resource-manager/readme.md @@ -47,7 +47,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-java - repo: azure-sdk-for-go - repo: azure-sdk-for-net diff --git a/specification/providerhub/resource-manager/readme.md b/specification/providerhub/resource-manager/readme.md index a45d05fd854f..9f85883dde13 100644 --- a/specification/providerhub/resource-manager/readme.md +++ b/specification/providerhub/resource-manager/readme.md @@ -93,7 +93,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-java - repo: azure-sdk-for-go - repo: azure-sdk-for-go-track2 From 4248952a232a5691218b381e6ede24093fb44dcc Mon Sep 17 00:00:00 2001 From: zhenbiao wei <424401670@qq.com> Date: Thu, 24 Mar 2022 15:53:18 +0800 Subject: [PATCH 3/4] Update readme.python.md --- specification/managednetwork/resource-manager/readme.python.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/managednetwork/resource-manager/readme.python.md b/specification/managednetwork/resource-manager/readme.python.md index d8f9d123b3bf..ed8829a96d04 100644 --- a/specification/managednetwork/resource-manager/readme.python.md +++ b/specification/managednetwork/resource-manager/readme.python.md @@ -5,8 +5,9 @@ These settings apply only when `--python` is specified on the command line. ``` yaml $(python) azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION -payload-flattening-threshold: 2 package-name: azure-mgmt-managednetwork +namespace: azure.mgmt.managednetwork +package-version: 2019-06-01 clear-output-folder: true ``` From 8697f1ce58d423ad40f7fe82e06a6be37a6d8cfd Mon Sep 17 00:00:00 2001 From: zhenbiao wei <424401670@qq.com> Date: Thu, 24 Mar 2022 15:54:29 +0800 Subject: [PATCH 4/4] Update readme.python.md --- specification/providerhub/resource-manager/readme.python.md | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/providerhub/resource-manager/readme.python.md b/specification/providerhub/resource-manager/readme.python.md index e1a086238fd0..2a56aa29eeb9 100644 --- a/specification/providerhub/resource-manager/readme.python.md +++ b/specification/providerhub/resource-manager/readme.python.md @@ -6,7 +6,6 @@ Please also specify `--python-sdks-folder=