diff --git a/specification/appplatform/resource-manager/readme.md b/specification/appplatform/resource-manager/readme.md index 11dd36545e4d..c169a4fccdb7 100644 --- a/specification/appplatform/resource-manager/readme.md +++ b/specification/appplatform/resource-manager/readme.md @@ -97,9 +97,6 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: - repo: azure-powershell - - repo: azure-sdk-for-python - after_scripts: - - python ./scripts/multiapi_init_gen.py azure-mgmt-appplatform - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - repo: azure-sdk-for-net diff --git a/specification/appplatform/resource-manager/readme.python.md b/specification/appplatform/resource-manager/readme.python.md index f3a102599d2c..748f15d43ccc 100644 --- a/specification/appplatform/resource-manager/readme.python.md +++ b/specification/appplatform/resource-manager/readme.python.md @@ -4,21 +4,12 @@ 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 - package-name: azure-mgmt-appplatform - clear-output-folder: true - no-namespace-folders: true -``` ``` yaml $(python) && $(track2) python-mode: create azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION package-name: azure-mgmt-appplatform +package-version: 1.0.0b1 clear-output-folder: true no-namespace-folders: true ``` @@ -27,13 +18,6 @@ no-namespace-folders: true Generate all API versions currently shipped for this package -```yaml $(python) && $(multiapi) && !$(track2) -batch: - - tag: package-preview-2021-06 - - tag: package-preview-2020-11 - - tag: package-2020-07 - - tag: package-2019-05-01-preview -``` ```yaml $(python) && $(multiapi) && $(track2) clear-output-folder: true @@ -56,11 +40,6 @@ perform-load: false These settings apply only when `--tag=package-preview-2021-06 --python` is specified on the command line. Please also specify `--python-sdks-folder=`. -``` yaml $(tag) == 'package-preview-2021-06' && $(python) && !$(track2) -python: - namespace: azure.mgmt.appplatform.v2021_06_01_preview - output-folder: $(python-sdks-folder)/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2021_06_01_preview -``` ``` yaml $(tag) == 'package-preview-2021-06' && $(python) && $(track2) namespace: azure.mgmt.appplatform.v2021_06_01_preview output-folder: $(python-sdks-folder)/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2021_06_01_preview @@ -71,11 +50,6 @@ output-folder: $(python-sdks-folder)/appplatform/azure-mgmt-appplatform/azure/mg These settings apply only when `--tag=package-preview-2020-11 --python` is specified on the command line. Please also specify `--python-sdks-folder=`. -``` yaml $(tag) == 'package-preview-2020-11' && $(python) && !$(track2) -python: - namespace: azure.mgmt.appplatform.v2020_11_01_preview - output-folder: $(python-sdks-folder)/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2020_11_01_preview -``` ``` yaml $(tag) == 'package-preview-2020-11' && $(python) && $(track2) namespace: azure.mgmt.appplatform.v2020_11_01_preview output-folder: $(python-sdks-folder)/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2020_11_01_preview @@ -86,11 +60,6 @@ output-folder: $(python-sdks-folder)/appplatform/azure-mgmt-appplatform/azure/mg These settings apply only when `--tag=package-2020-07 --python` is specified on the command line. Please also specify `--python-sdks-folder=`. -``` yaml $(tag) == 'package-2020-07' && $(python) && !$(track2) -python: - namespace: azure.mgmt.appplatform.v2020_07_01 - output-folder: $(python-sdks-folder)/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2020_07_01 -``` ``` yaml $(tag) == 'package-2020-07' && $(python) && $(track2) namespace: azure.mgmt.appplatform.v2020_07_01 output-folder: $(python-sdks-folder)/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2020_07_01 @@ -101,11 +70,6 @@ output-folder: $(python-sdks-folder)/appplatform/azure-mgmt-appplatform/azure/mg These settings apply only when `--tag=package-2019-05-01-preview --python` is specified on the command line. Please also specify `--python-sdks-folder=`. -``` yaml $(tag) == 'package-2019-05-01-preview' && $(python) && !$(track2) -python: - namespace: azure.mgmt.appplatform.v2019_05_01_preview - output-folder: $(python-sdks-folder)/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2019_05_01_preview -``` ``` yaml $(tag) == 'package-2019-05-01-preview' && $(python) && $(track2) namespace: azure.mgmt.appplatform.v2019_05_01_preview diff --git a/specification/azurestack/resource-manager/readme.md b/specification/azurestack/resource-manager/readme.md index 1a330200bcbd..1ff4b827e59a 100644 --- a/specification/azurestack/resource-manager/readme.md +++ b/specification/azurestack/resource-manager/readme.md @@ -96,7 +96,6 @@ 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 diff --git a/specification/azurestack/resource-manager/readme.python.md b/specification/azurestack/resource-manager/readme.python.md index 9a4e4bef6073..743c17a3b419 100644 --- a/specification/azurestack/resource-manager/readme.python.md +++ b/specification/azurestack/resource-manager/readme.python.md @@ -4,37 +4,15 @@ 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.azurestack - package-name: azure-mgmt-azurestack - package-version: 0.1.0 - clear-output-folder: true -``` ``` yaml $(python) && $(track2) -python-mode: create azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.mgmt.azurestack package-name: azure-mgmt-azurestack -package-version: 0.1.0 +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)/azurestack/azure-mgmt-azurestack/azure/mgmt/azurestack -``` -``` yaml $(python) && $(python-mode) == 'create' && !$(track2) -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/azurestack/azure-mgmt-azurestack -``` ``` yaml $(python) && $(python-mode) == 'update' && $(track2) no-namespace-folders: true output-folder: $(python-sdks-folder)/azurestack/azure-mgmt-azurestack/azure/mgmt/azurestack diff --git a/specification/customproviders/resource-manager/readme.md b/specification/customproviders/resource-manager/readme.md index 84b2982cf20a..d79a7ead5125 100644 --- a/specification/customproviders/resource-manager/readme.md +++ b/specification/customproviders/resource-manager/readme.md @@ -51,7 +51,6 @@ This is not used by Autorest itself. swagger-to-sdk: - repo: azure-powershell - 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 diff --git a/specification/customproviders/resource-manager/readme.python.md b/specification/customproviders/resource-manager/readme.python.md index ae8f7bd9c9d8..f30be160c48e 100644 --- a/specification/customproviders/resource-manager/readme.python.md +++ b/specification/customproviders/resource-manager/readme.python.md @@ -3,37 +3,15 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. -```yaml $(python) && !$(track2) -python-mode: create -python: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - namespace: azure.mgmt.customproviders - package-name: azure-mgmt-customproviders - package-version: 2018-09-01-preview - clear-output-folder: true -``` ```yaml $(python) && $(track2) -python-mode: create azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.mgmt.customproviders package-name: azure-mgmt-customproviders -package-version: 2018-09-01-preview +package-version: 1.0.0b1 clear-output-folder: true ``` -```yaml $(python) && $(python-mode) == 'create' && !$(track2) -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/customproviders/azure-mgmt-customproviders -``` -``` yaml $(python) && $(python-mode) == 'update' && !$(track2) -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/customproviders/azure-mgmt-customproviders/azure/mgmt/customproviders -``` ```yaml $(python) && $(python-mode) == 'create' && $(track2) basic-setup-py: true diff --git a/specification/datamigration/resource-manager/readme.python.md b/specification/datamigration/resource-manager/readme.python.md index 1e32099cbf9c..96530721fb6f 100644 --- a/specification/datamigration/resource-manager/readme.python.md +++ b/specification/datamigration/resource-manager/readme.python.md @@ -43,4 +43,12 @@ python: ``` yaml $(python) && $(python-mode) == 'create' && $(track2) basic-setup-py: true output-folder: $(python-sdks-folder)/datamigration/azure-mgmt-datamigration -``` \ No newline at end of file +``` + +``` yaml $(python) && $(track2) +directive: + - from: swagger-document + where: $.definitions.MigrateSchemaSqlServerSqlDbTaskOutput + transform: > + $['required'] = ['resultType']; +``` diff --git a/specification/datashare/resource-manager/readme.md b/specification/datashare/resource-manager/readme.md index 584f9e203462..d16c0aef9fa1 100644 --- a/specification/datashare/resource-manager/readme.md +++ b/specification/datashare/resource-manager/readme.md @@ -78,7 +78,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 - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-go - repo: azure-cli-extensions diff --git a/specification/datashare/resource-manager/readme.python.md b/specification/datashare/resource-manager/readme.python.md index 9bbfc58e2633..e8eac3df6c68 100644 --- a/specification/datashare/resource-manager/readme.python.md +++ b/specification/datashare/resource-manager/readme.python.md @@ -3,37 +3,15 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. -```yaml $(python) && !$(track2) -python-mode: create -python: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - namespace: azure.mgmt.datashare - package-name: azure-mgmt-datashare - package-version: 2019-11-01 - clear-output-folder: true -``` ```yaml $(python) && $(track2) -python-mode: create azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.mgmt.datashare package-name: azure-mgmt-datashare -package-version: 2019-11-01 +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)/datashare/azure-mgmt-datashare/azure/mgmt/datashare -``` -``` yaml $(python) && $(python-mode) == 'create' && !$(track2) -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/datashare/azure-mgmt-datashare -``` ``` yaml $(python) && $(python-mode) == 'update' && $(track2) no-namespace-folders: true output-folder: $(python-sdks-folder)/datashare/azure-mgmt-datashare/azure/mgmt/datashare diff --git a/specification/dns/resource-manager/readme.md b/specification/dns/resource-manager/readme.md index e34c59181edd..5baf1dc98983 100644 --- a/specification/dns/resource-manager/readme.md +++ b/specification/dns/resource-manager/readme.md @@ -158,9 +158,6 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: - - repo: azure-sdk-for-python - after_scripts: - - python ./scripts/multiapi_init_gen.py azure-mgmt-dns - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - repo: azure-sdk-for-go diff --git a/specification/dns/resource-manager/readme.python.md b/specification/dns/resource-manager/readme.python.md index 8e1f1387d5fd..5ccf3d1231c3 100644 --- a/specification/dns/resource-manager/readme.python.md +++ b/specification/dns/resource-manager/readme.python.md @@ -2,37 +2,18 @@ These settings apply only when `--python` is specified on the command line. -```yaml $(python) && !$(track2) -python: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - package-name: azure-mgmt-dns - clear-output-folder: true - no-namespace-folders: true -``` - ```yaml $(python) && $(track2) azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION package-name: azure-mgmt-dns no-namespace-folders: true package-version: 1.0.0b1 -modelerfour: - lenient-model-deduplication: true ``` ### Python multi-api Generate all API versions currently shipped for this package -```yaml $(python) && $(multiapi) && !$(track2) -batch: - - tag: package-2018-05 - - tag: package-2018-03-preview - - tag: package-2016-04 -``` - ```yaml $(python) && $(multiapi) && $(track2) clear-output-folder: true batch: @@ -53,12 +34,6 @@ perform-load: false These settings apply only when `--tag=package-2018-05 --python` is specified on the command line. Please also specify `--python-sdks-folder=`. -``` yaml $(tag) == 'package-2018-05' && $(python) && !$(track2) -python: - namespace: azure.mgmt.dns.v2018_05_01 - output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01 -``` - ``` yaml $(tag) == 'package-2018-05' && $(python) && $(track2) namespace: azure.mgmt.dns.v2018_05_01 output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01 @@ -69,12 +44,6 @@ output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2018 These settings apply only when `--tag=package-2018-03-preview --python` is specified on the command line. Please also specify `--python-sdks-folder=`. -``` yaml $(tag) == 'package-2018-03-preview' && $(python) && !$(track2) -python: - namespace: azure.mgmt.dns.v2018_03_01_preview - output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview -``` - ``` yaml $(tag) == 'package-2018-03-preview' && $(python) && $(track2) namespace: azure.mgmt.dns.v2018_03_01_preview output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview @@ -85,13 +54,12 @@ output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2018 These settings apply only when `--tag=package-2016-04 --python` is specified on the command line. Please also specify `--python-sdks-folder=`. -``` yaml $(tag) == 'package-2016-04' && $(python) && !$(track2) -python: - namespace: azure.mgmt.dns.v2016_04_01 - output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01 -``` - ``` yaml $(tag) == 'package-2016-04' && $(python) && $(track2) namespace: azure.mgmt.dns.v2016_04_01 output-folder: $(python-sdks-folder)/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01 ``` + +```yaml $(python) && $(track2) +modelerfour: + lenient-model-deduplication: true +``` \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/readme.md b/specification/frontdoor/resource-manager/readme.md index 67f4b29079ab..7c8ee22c7658 100644 --- a/specification/frontdoor/resource-manager/readme.md +++ b/specification/frontdoor/resource-manager/readme.md @@ -203,7 +203,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 - repo: azure-sdk-for-python-track2 - repo: azure-libraries-for-java - repo: azure-sdk-for-go diff --git a/specification/frontdoor/resource-manager/readme.python.md b/specification/frontdoor/resource-manager/readme.python.md index ebc9d5d70838..bc5e26c8a89d 100644 --- a/specification/frontdoor/resource-manager/readme.python.md +++ b/specification/frontdoor/resource-manager/readme.python.md @@ -4,36 +4,16 @@ 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.frontdoor - package-name: azure-mgmt-frontdoor - package-version: 0.1.0 - clear-output-folder: true -``` ``` yaml $(python) && $(track2) python-mode: create azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.mgmt.frontdoor package-name: azure-mgmt-frontdoor -package-version: 0.1.0 +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)/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor -``` -``` yaml $(python) && $(python-mode) == 'create' && !$(track2) -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/network/azure-mgmt-frontdoor -``` + ``` yaml $(python) && $(python-mode) == 'update' && $(track2) no-namespace-folders: true output-folder: $(python-sdks-folder)/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor diff --git a/specification/hanaonazure/resource-manager/readme.md b/specification/hanaonazure/resource-manager/readme.md index 94f530067662..aa685af66e2b 100644 --- a/specification/hanaonazure/resource-manager/readme.md +++ b/specification/hanaonazure/resource-manager/readme.md @@ -63,7 +63,6 @@ This is not used by Autorest itself. ``` yaml $(swagger-to-sdk) swagger-to-sdk: - repo: azure-powershell - - repo: azure-sdk-for-python - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - repo: azure-sdk-for-go diff --git a/specification/hanaonazure/resource-manager/readme.python.md b/specification/hanaonazure/resource-manager/readme.python.md index 7bcd12fae479..87d51938acd4 100644 --- a/specification/hanaonazure/resource-manager/readme.python.md +++ b/specification/hanaonazure/resource-manager/readme.python.md @@ -4,36 +4,15 @@ 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.hanaonazure - package-name: azure-mgmt-hanaonazure - clear-output-folder: true - package-version: 0.6.0 -``` ``` yaml $(python) && $(track2) -python-mode: create azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.mgmt.hanaonazure package-name: azure-mgmt-hanaonazure clear-output-folder: true -package-version: 0.6.0 -``` -``` yaml $(python) && $(python-mode) == 'update' && !$(track2) -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure -``` -``` yaml $(python) && $(python-mode) == 'create' && !$(track2) -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/hanaonazure/azure-mgmt-hanaonazure +package-version: 1.0.0b1 ``` + ``` yaml $(python) && $(python-mode) == 'update' && $(track2) no-namespace-folders: true output-folder: $(python-sdks-folder)/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure diff --git a/specification/healthcareapis/resource-manager/readme.md b/specification/healthcareapis/resource-manager/readme.md index a4385e2dff98..6f1d727c4c73 100644 --- a/specification/healthcareapis/resource-manager/readme.md +++ b/specification/healthcareapis/resource-manager/readme.md @@ -87,7 +87,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 - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - repo: azure-sdk-for-go diff --git a/specification/healthcareapis/resource-manager/readme.python.md b/specification/healthcareapis/resource-manager/readme.python.md index b33f50d11c85..fff0f012ba04 100644 --- a/specification/healthcareapis/resource-manager/readme.python.md +++ b/specification/healthcareapis/resource-manager/readme.python.md @@ -4,36 +4,15 @@ 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.healthcareapis - package-name: azure-mgmt-healthcareapis - clear-output-folder: true - package-version: 0.1.0 -``` ``` yaml $(python) && $(track2) -python-mode: create azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.mgmt.healthcareapis package-name: azure-mgmt-healthcareapis clear-output-folder: true -package-version: 0.1.0 -``` -``` yaml $(python) && $(python-mode) == 'update' && !$(track2) -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis -``` -``` yaml $(python) && $(python-mode) == 'create' && !$(track2) -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/healthcareapis/azure-mgmt-healthcareapis +package-version: 1.0.0b1 ``` + ``` yaml $(python) && $(python-mode) == 'update' && $(track2) no-namespace-folders: true output-folder: $(python-sdks-folder)/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis diff --git a/specification/hybridcompute/resource-manager/readme.md b/specification/hybridcompute/resource-manager/readme.md index a9b1bfe751c8..52bd31aafe81 100644 --- a/specification/hybridcompute/resource-manager/readme.md +++ b/specification/hybridcompute/resource-manager/readme.md @@ -157,7 +157,6 @@ This is not used by Autorest itself. swagger-to-sdk: - repo: azure-powershell - 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 diff --git a/specification/hybridcompute/resource-manager/readme.python.md b/specification/hybridcompute/resource-manager/readme.python.md index 5e4d8f38a28d..d932975f6ab8 100644 --- a/specification/hybridcompute/resource-manager/readme.python.md +++ b/specification/hybridcompute/resource-manager/readme.python.md @@ -4,18 +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) && !$(track2) -python-mode: create -python: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - namespace: azure.mgmt.hybridcompute - package-name: azure-mgmt-hybridcompute - clear-output-folder: true -``` ``` yaml $(python) && $(track2) -python-mode: create azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.mgmt.hybridcompute @@ -23,38 +12,17 @@ package-name: azure-mgmt-hybridcompute 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)/hybridcompute/azure-mgmt-hybridcompute/azure/mgmt/hybridcompute -directive: - - remove-operation: - - Machines_Reconnect - - Machines_CreateOrUpdate - - Machines_Update -``` -``` yaml $(python) && $(python-mode) == 'create' && !$(track2) -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/azure-mgmt-hybridcompute -directive: - - remove-operation: - - Machines_Reconnect - - Machines_CreateOrUpdate - - Machines_Update -``` + ``` yaml $(python) && $(python-mode) == 'update' && $(track2) no-namespace-folders: true output-folder: $(python-sdks-folder)/hybridcompute/azure-mgmt-hybridcompute/azure/mgmt/hybridcompute -directive: - - remove-operation: - - Machines_Reconnect - - Machines_CreateOrUpdate - - Machines_Update ``` ``` yaml $(python) && $(python-mode) == 'create' && $(track2) basic-setup-py: true output-folder: $(python-sdks-folder)/azure-mgmt-hybridcompute +``` + +``` yaml $(python) && $(track2) directive: - remove-operation: - Machines_Reconnect diff --git a/specification/labservices/resource-manager/readme.md b/specification/labservices/resource-manager/readme.md index 5bd1a1501470..ab3823b5f1b3 100644 --- a/specification/labservices/resource-manager/readme.md +++ b/specification/labservices/resource-manager/readme.md @@ -51,7 +51,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 - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - repo: azure-sdk-for-go diff --git a/specification/labservices/resource-manager/readme.python.md b/specification/labservices/resource-manager/readme.python.md index 6b206e0b7f9f..2d72bc2ff597 100644 --- a/specification/labservices/resource-manager/readme.python.md +++ b/specification/labservices/resource-manager/readme.python.md @@ -4,19 +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) && !$(track2) -python-mode: create -python: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - namespace: azure.mgmt.labservices - package-name: azure-mgmt-labservices - package-version: 1.0.0b1 - clear-output-folder: true -``` ``` yaml $(python) && $(track2) -python-mode: create azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.mgmt.labservices @@ -24,16 +12,7 @@ package-name: azure-mgmt-labservices 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)/labservices/azure-mgmt-labservices/azure/mgmt/labservices -``` -``` yaml $(python) && $(python-mode) == 'create' && !$(track2) -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/labservices/azure-mgmt-labservices -``` + ``` yaml $(python) && $(python-mode) == 'update' && $(track2) no-namespace-folders: true output-folder: $(python-sdks-folder)/labservices/azure-mgmt-labservices/azure/mgmt/labservices diff --git a/specification/maintenance/resource-manager/readme.md b/specification/maintenance/resource-manager/readme.md index 105ccf603947..cbb0fce36a73 100644 --- a/specification/maintenance/resource-manager/readme.md +++ b/specification/maintenance/resource-manager/readme.md @@ -85,7 +85,6 @@ 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-libraries-for-java - repo: azure-sdk-for-go diff --git a/specification/maintenance/resource-manager/readme.python.md b/specification/maintenance/resource-manager/readme.python.md index f942a856620e..17bd37335d01 100644 --- a/specification/maintenance/resource-manager/readme.python.md +++ b/specification/maintenance/resource-manager/readme.python.md @@ -4,38 +4,15 @@ 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.maintenance - package-name: azure-mgmt-maintenance - package-version: 1.1.0 - clear-output-folder: true -``` ``` yaml $(python) && $(track2) -python-mode: create azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.mgmt.maintenance package-name: azure-mgmt-maintenance -package-version: 1.1.0 +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)/maintenance/azure-mgmt-maintenance/azure/mgmt/maintenance -``` - -``` yaml $(python) && $(python-mode) == 'create' && !$(track2) -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/maintenance/azure-mgmt-maintenance -``` ``` yaml $(python) && $(python-mode) == 'update' && $(track2) no-namespace-folders: true diff --git a/specification/powerbidedicated/resource-manager/readme.md b/specification/powerbidedicated/resource-manager/readme.md index 3f0ddaba3690..83ecf10b91fa 100644 --- a/specification/powerbidedicated/resource-manager/readme.md +++ b/specification/powerbidedicated/resource-manager/readme.md @@ -64,7 +64,6 @@ swagger-to-sdk: - repo: azure-sdk-for-go - repo: azure-sdk-for-js - repo: azure-sdk-for-node - - repo: azure-sdk-for-python - repo: azure-sdk-for-python-track2 - repo: azure-resource-manager-schemas ``` diff --git a/specification/powerbidedicated/resource-manager/readme.python.md b/specification/powerbidedicated/resource-manager/readme.python.md index 1326f68f8000..a26c50aa83a5 100644 --- a/specification/powerbidedicated/resource-manager/readme.python.md +++ b/specification/powerbidedicated/resource-manager/readme.python.md @@ -4,36 +4,15 @@ 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.powerbidedicated - package-name: azure-mgmt-powerbidedicated - package-version: 2.0.0 - clear-output-folder: true -``` -``` yaml $(python) && $(track2) -python-mode: create +``` yaml $(python) && $(track2 azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.mgmt.powerbidedicated package-name: azure-mgmt-powerbidedicated -package-version: 2.0.0 +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)/powerbidedicated/azure-mgmt-powerbidedicated/azure/mgmt/powerbidedicated -``` -``` yaml $(python) && $(python-mode) == 'create' && !$(track2) -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/powerbidedicated/azure-mgmt-powerbidedicated -``` + ``` yaml $(python) && $(python-mode) == 'update' && $(track2) no-namespace-folders: true output-folder: $(python-sdks-folder)/powerbidedicated/azure-mgmt-powerbidedicated/azure/mgmt/powerbidedicated diff --git a/specification/privatedns/resource-manager/readme.md b/specification/privatedns/resource-manager/readme.md index baa29a1dc15a..531b5698caca 100644 --- a/specification/privatedns/resource-manager/readme.md +++ b/specification/privatedns/resource-manager/readme.md @@ -66,7 +66,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 - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - repo: azure-sdk-for-go diff --git a/specification/privatedns/resource-manager/readme.python.md b/specification/privatedns/resource-manager/readme.python.md index e33f11bd20b0..c0aa35eab68b 100644 --- a/specification/privatedns/resource-manager/readme.python.md +++ b/specification/privatedns/resource-manager/readme.python.md @@ -4,36 +4,17 @@ 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.privatedns - package-name: azure-mgmt-privatedns - package-version: 1.0.0 - clear-output-folder: true -``` + ``` yaml $(python) && $(track2) python-mode: create azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.mgmt.privatedns package-name: azure-mgmt-privatedns -package-version: 1.0.0 +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)/network/azure-mgmt-privatedns/azure/mgmt/privatedns -``` -``` yaml $(python) && $(python-mode) == 'create' && !$(track2) -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/network/azure-mgmt-privatedns -``` + ``` yaml $(python) && $(python-mode) == 'update' && $(track2) no-namespace-folders: true output-folder: $(python-sdks-folder)/network/azure-mgmt-privatedns/azure/mgmt/privatedns diff --git a/specification/storagesync/resource-manager/readme.md b/specification/storagesync/resource-manager/readme.md index a92f035e71ca..4d9182db74c3 100644 --- a/specification/storagesync/resource-manager/readme.md +++ b/specification/storagesync/resource-manager/readme.md @@ -131,7 +131,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 - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - repo: azure-sdk-for-go @@ -158,33 +157,7 @@ csharp: ## Python -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) -python-mode: create -python: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - namespace: azure.mgmt.storagesync - package-name: azure-mgmt-storagesync - package-version: 1.0.0 - clear-output-folder: true -``` - -``` yaml $(python) && $(python-mode) == 'update' -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/storage/azure-mgmt-storagesync/azure/mgmt/storagesync -``` - -``` yaml $(python) && $(python-mode) == 'create' -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/storage/azure-mgmt-storagesync -``` +See configuration in [readme.python.md](./readme.python.md) ## Go diff --git a/specification/storagesync/resource-manager/readme.python.md b/specification/storagesync/resource-manager/readme.python.md index 345560f54a6d..481ceabadd7c 100644 --- a/specification/storagesync/resource-manager/readme.python.md +++ b/specification/storagesync/resource-manager/readme.python.md @@ -4,38 +4,15 @@ 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.storagesync - package-name: azure-mgmt-storagesync - package-version: 1.0.0 - clear-output-folder: true -``` ```yaml $(python) && $(track2) -python-mode: create azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.mgmt.storagesync package-name: azure-mgmt-storagesync -package-version: 1.0.0 +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)/storage/azure-mgmt-storagesync/azure/mgmt/storagesync -``` - -``` yaml $(python) && $(python-mode) == 'create' && !$(track2) -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/storage/azure-mgmt-storagesync -``` ``` yaml $(python) && $(python-mode) == 'update' && $(track2) no-namespace-folders: true output-folder: $(python-sdks-folder)/storage/azure-mgmt-storagesync/azure/mgmt/storagesync diff --git a/specification/support/resource-manager/readme.md b/specification/support/resource-manager/readme.md index 162678725499..371b24a74999 100644 --- a/specification/support/resource-manager/readme.md +++ b/specification/support/resource-manager/readme.md @@ -67,7 +67,6 @@ 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-js diff --git a/specification/support/resource-manager/readme.python.md b/specification/support/resource-manager/readme.python.md index 1dfaa6930a39..1974be4e363c 100644 --- a/specification/support/resource-manager/readme.python.md +++ b/specification/support/resource-manager/readme.python.md @@ -4,36 +4,15 @@ 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.support - package-name: azure-mgmt-support - package-version: 2.0.0 - clear-output-folder: true -``` ``` yaml $(python) && $(track2) -python-mode: create azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.mgmt.support package-name: azure-mgmt-support -package-version: 2.0.0 +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)/support/azure-mgmt-support/azure/mgmt/support -``` -``` yaml $(python) && $(python-mode) == 'create' && !$(track2) -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/support/azure-mgmt-support -``` + ``` yaml $(python) && $(python-mode) == 'update' && $(track2) no-namespace-folders: true output-folder: $(python-sdks-folder)/support/azure-mgmt-support/azure/mgmt/support diff --git a/specification/timeseriesinsights/resource-manager/readme.md b/specification/timeseriesinsights/resource-manager/readme.md index 8e2763cc2876..44eb62b7a8f6 100644 --- a/specification/timeseriesinsights/resource-manager/readme.md +++ b/specification/timeseriesinsights/resource-manager/readme.md @@ -115,7 +115,6 @@ swagger-to-sdk: - repo: azure-sdk-for-go - repo: azure-sdk-for-node - repo: azure-sdk-for-js - - repo: azure-sdk-for-python - repo: azure-sdk-for-python-track2 - repo: azure-resource-manager-schemas ``` diff --git a/specification/timeseriesinsights/resource-manager/readme.python.md b/specification/timeseriesinsights/resource-manager/readme.python.md index 2685e1c694ba..35e69169ad92 100644 --- a/specification/timeseriesinsights/resource-manager/readme.python.md +++ b/specification/timeseriesinsights/resource-manager/readme.python.md @@ -4,37 +4,15 @@ 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.timeseriesinsights - package-name: azure-mgmt-timeseriesinsights - package-version: 0.1.0 - clear-output-folder: true -``` ``` yaml $(python) && $(track2) -python-mode: create azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.mgmt.timeseriesinsights package-name: azure-mgmt-timeseriesinsights -package-version: 0.1.0 +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)/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights -``` -``` yaml $(python) && $(python-mode) == 'create' && !$(track2) -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/timeseriesinsights/azure-mgmt-timeseriesinsights -``` ``` yaml $(python) && $(python-mode) == 'update' && $(track2) no-namespace-folders: true