From 75b30793c42697490e34194adfce6256f7a08de8 Mon Sep 17 00:00:00 2001 From: "Kaihui (Kerwin) Sun" Date: Thu, 28 Jan 2021 13:19:43 +0800 Subject: [PATCH] remove track1 config in storage, keyvault, compute, network, monitor (#12543) --- .../compute/resource-manager/readme.md | 3 - .../compute/resource-manager/readme.python.md | 96 +----------- .../keyvault/resource-manager/readme.md | 3 - .../resource-manager/readme.python.md | 37 +---- .../monitor/resource-manager/readme.md | 3 - .../monitor/resource-manager/readme.python.md | 104 +------------ .../network/resource-manager/readme.md | 6 - .../network/resource-manager/readme.python.md | 146 +----------------- .../storage/resource-manager/readme.md | 6 - .../storage/resource-manager/readme.python.md | 66 +------- 10 files changed, 8 insertions(+), 462 deletions(-) diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index 21dd38957a5b..c2cf07ec7a7c 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -772,9 +772,6 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: - repo: azure-sdk-for-net - - repo: azure-sdk-for-python - after_scripts: - - python ./scripts/multiapi_init_gen.py azure-mgmt-compute - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - repo: azure-sdk-for-js diff --git a/specification/compute/resource-manager/readme.python.md b/specification/compute/resource-manager/readme.python.md index 8dc4338cd615..3916148b59d9 100644 --- a/specification/compute/resource-manager/readme.python.md +++ b/specification/compute/resource-manager/readme.python.md @@ -1,20 +1,8 @@ ## Python -These settings apply only when `--python` is specified on the command line. - -``` yaml !$(track2) -python: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - package-name: azure-mgmt-compute - no-namespace-folders: true - clear-output-folder: true -``` - These settings apply only when `--track2` is specified on the command line. -``` yaml $(track2) +``` yaml azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION package-name: azure-mgmt-compute @@ -42,30 +30,7 @@ directive: Generate all API versions currently shipped for this package -```yaml $(multiapi) && !$(track2) -batch: - - tag: package-2020-09-30-only - - tag: package-2020-06-30-only - - tag: package-2020-06-01-only - - tag: package-2020-05-01-only - - tag: package-2019-12-01-only - - tag: package-2019-11-01-only - - tag: package-2019-07-01-only - - tag: package-2019-04-01-only - - tag: package-2019-03-01-only - - tag: package-2018-10-01-only - - tag: package-2018-09-30-only - - tag: package-compute-only-2018-06 - - tag: package-compute-2018-04 - - tag: package-compute-only-2017-12 - - tag: package-skus-2017-09 - - tag: package-compute-2017-03 - - tag: package-compute-2016-04-preview - - tag: package-compute-2016-03 - - tag: package-compute-2015-06 -``` - -```yaml $(multiapi) && $(track2) +```yaml $(multiapi) clear-output-folder: true batch: - tag: package-2020-09-30-only @@ -104,9 +69,6 @@ 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 !$(track2) -python: - python-mode: create - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - package-name: azure-mgmt-keyvault - clear-output-folder: true - no-namespace-folders: true -``` - -These settings apply only when `--track2` is specified on the command line. - -``` yaml $(track2) +``` yaml azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION package-name: azure-mgmt-keyvault @@ -28,15 +15,7 @@ no-namespace-folders: true Generate all API versions currently shipped for this package -```yaml $(multiapi) && !$(track2) -batch: - - tag: package-2019-09 - - tag: package-2018-02 - - tag: package-2016-10 - - tag: package-preview-2020-04 -``` - -```yaml $(multiapi) && $(track2) +```yaml $(multiapi) clear-output-folder: true batch: - tag: package-2019-09 @@ -59,9 +38,6 @@ These settings apply only when `--tag=package-preview-2020-04 --python` is speci ``` yaml $(tag) == 'package-preview-2020-04' namespace: azure.mgmt.keyvault.v2020_04_01_preview output-folder: $(python-sdks-folder)/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2020_04_01_preview -python: - namespace: azure.mgmt.keyvault.v2020_04_01_preview - output-folder: $(python-sdks-folder)/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2020_04_01_preview ``` ### Tag: package-2019-09 and python @@ -71,9 +47,6 @@ These settings apply only when `--tag=package-2019-09 --python` is specified on ``` yaml $(tag) == 'package-2019-09' namespace: azure.mgmt.keyvault.v2019_09_01 output-folder: $(python-sdks-folder)/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2019_09_01 -python: - namespace: azure.mgmt.keyvault.v2019_09_01 - output-folder: $(python-sdks-folder)/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2019_09_01 ``` ### Tag: package-2018-02 and python @@ -83,9 +56,6 @@ These settings apply only when `--tag=package-2018-02 --python` is specified on ``` yaml $(tag) == 'package-2018-02' namespace: azure.mgmt.keyvault.v2018_02_14 output-folder: $(python-sdks-folder)/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2018_02_14 -python: - namespace: azure.mgmt.keyvault.v2018_02_14 - output-folder: $(python-sdks-folder)/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2018_02_14 ``` ### Tag: package-2016-10 and python @@ -95,7 +65,4 @@ These settings apply only when `--tag=package-2016-10 --python` is specified on ``` yaml $(tag) == 'package-2016-10' namespace: azure.mgmt.keyvault.v2016_10_01 output-folder: $(python-sdks-folder)/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2016_10_01 -python: - namespace: azure.mgmt.keyvault.v2016_10_01 - output-folder: $(python-sdks-folder)/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2016_10_01 ``` diff --git a/specification/monitor/resource-manager/readme.md b/specification/monitor/resource-manager/readme.md index a8ad386d03f9..062ebce0b54f 100644 --- a/specification/monitor/resource-manager/readme.md +++ b/specification/monitor/resource-manager/readme.md @@ -535,9 +535,6 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: - repo: azure-sdk-for-net - - repo: azure-sdk-for-python - after_scripts: - - python ./scripts/multiapi_init_gen.py azure-mgmt-monitor - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - repo: azure-sdk-for-go diff --git a/specification/monitor/resource-manager/readme.python.md b/specification/monitor/resource-manager/readme.python.md index dc4bb3a2d29d..54323f8f4134 100644 --- a/specification/monitor/resource-manager/readme.python.md +++ b/specification/monitor/resource-manager/readme.python.md @@ -1,22 +1,8 @@ ## Python -These settings apply only when `--python` is specified on the command line. - -``` yaml !$(track2) -python: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - package-name: azure-mgmt-monitor - clear-output-folder: true - no-namespace-folders: true - python-base-folder: monitor/azure-mgmt-monitor/azure/mgmt/monitor - python-base-namespace: azure.mgmt.monitor -``` - These settings apply only when `--track2` is specified on the command line. -``` yaml $(track2) +``` yaml azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION package-name: azure-mgmt-monitor @@ -40,31 +26,6 @@ output-folder: $(python-sdks-folder)/amcs/azure-mgmt-amcs Generate all API versions currently shipped for this package -```yaml $(multiapi) && !$(track2) -batch: - - tag: package-2020-05-preview - - tag: package-2020-01-01-preview-only - - tag: package-2019-11-01-preview-only - - tag: package-2019-10-17-preview-only - - tag: package-2019-06-01-only - - tag: package-2019-03-01-only - - tag: package-2018-11-27-preview-only - - tag: package-2018-09-01-only - - tag: package-2018-06-01-preview-only - - tag: package-2018-04-16-only - - tag: package-2018-03-01-only - - tag: package-2018-01-01-only - - tag: package-2017-12-01-preview-only - - tag: package-2017-11-01-preview-only - - tag: package-2017-05-01-preview-only - - tag: package-2017-04-01-only - - tag: package-2017-03-01-preview-only - - tag: package-2016-09-01-only - - tag: package-2016-03-01-only - - tag: package-2015-07-01-only - - tag: package-2015-04-01-only -``` - ```yaml $(multiapi) && $(track2) clear-output-folder: true batch: @@ -106,9 +67,6 @@ Please also specify `--python-sdks-folder=