From e03bfc8e8e3bd0bb072f04cfe49b4edef50bd13e Mon Sep 17 00:00:00 2001 From: Zed <601306339@qq.com> Date: Wed, 12 May 2021 10:51:56 +0800 Subject: [PATCH 1/7] sql t2 readme config --- specification/sql/resource-manager/readme.md | 29 +---------- .../sql/resource-manager/readme.python.md | 49 +++++++++++++++++++ 2 files changed, 51 insertions(+), 27 deletions(-) create mode 100644 specification/sql/resource-manager/readme.python.md diff --git a/specification/sql/resource-manager/readme.md b/specification/sql/resource-manager/readme.md index 9e6aeaadf6a6..e98d72fc8cef 100644 --- a/specification/sql/resource-manager/readme.md +++ b/specification/sql/resource-manager/readme.md @@ -1426,6 +1426,7 @@ This is not used by Autorest itself. 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-node @@ -1452,33 +1453,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.sql - package-name: azure-mgmt-sql - package-version: 0.9.0 - clear-output-folder: true -``` - -``` yaml $(python) && $(python-mode) == 'update' -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/sql/azure-mgmt-sql/azure/mgmt/sql -``` - -``` yaml $(python) && $(python-mode) == 'create' -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/sql/azure-mgmt-sql -``` +See configuration in [readme.python.md](./readme.python.md) ### Go diff --git a/specification/sql/resource-manager/readme.python.md b/specification/sql/resource-manager/readme.python.md new file mode 100644 index 000000000000..fff44f6b620b --- /dev/null +++ b/specification/sql/resource-manager/readme.python.md @@ -0,0 +1,49 @@ +### 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)&& !$(track2) +python-mode: create +python: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: azure.mgmt.sql + package-name: azure-mgmt-sql + package-version: 0.9.0 + clear-output-folder: true +``` + +``` yaml $(python)&& $(track2) +python-mode: create +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +namespace: azure.mgmt.sql +package-name: azure-mgmt-sql +package-version: 0.9.0 +clear-output-folder: true +``` + +``` yaml $(python) && $(python-mode) == 'update'&& !$(track2) +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/sql/azure-mgmt-sql/azure/mgmt/sql +``` + +``` yaml $(python) && $(python-mode) == 'create'&& !$(track2) +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/sql/azure-mgmt-sql +``` + +``` yaml $(python) && $(python-mode) == 'update'&& $(track2) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/sql/azure-mgmt-sql/azure/mgmt/sql +``` + +``` yaml $(python) && $(python-mode) == 'create'&& $(track2) +basic-setup-py: true +output-folder: $(python-sdks-folder)/sql/azure-mgmt-sql +``` \ No newline at end of file From 70e264164f09afa16ea72e31c4d8d050f35262d0 Mon Sep 17 00:00:00 2001 From: Zed <601306339@qq.com> Date: Wed, 12 May 2021 11:22:07 +0800 Subject: [PATCH 2/7] readme config --- specification/sql/resource-manager/readme.python.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/sql/resource-manager/readme.python.md b/specification/sql/resource-manager/readme.python.md index fff44f6b620b..39b86e5fe800 100644 --- a/specification/sql/resource-manager/readme.python.md +++ b/specification/sql/resource-manager/readme.python.md @@ -4,7 +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) +``` yaml $(python) && !$(track2) python-mode: create python: azure-arm: true @@ -16,7 +16,7 @@ python: clear-output-folder: true ``` -``` yaml $(python)&& $(track2) +``` yaml $(python) && $(track2) python-mode: create azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION @@ -26,24 +26,24 @@ package-version: 0.9.0 clear-output-folder: true ``` -``` yaml $(python) && $(python-mode) == 'update'&& !$(track2) +``` yaml $(python) && $(python-mode) == 'update' && !$(track2) python: no-namespace-folders: true output-folder: $(python-sdks-folder)/sql/azure-mgmt-sql/azure/mgmt/sql ``` -``` yaml $(python) && $(python-mode) == 'create'&& !$(track2) +``` yaml $(python) && $(python-mode) == 'create' && !$(track2) python: basic-setup-py: true output-folder: $(python-sdks-folder)/sql/azure-mgmt-sql ``` -``` yaml $(python) && $(python-mode) == 'update'&& $(track2) +``` yaml $(python) && $(python-mode) == 'update' && $(track2) no-namespace-folders: true output-folder: $(python-sdks-folder)/sql/azure-mgmt-sql/azure/mgmt/sql ``` -``` yaml $(python) && $(python-mode) == 'create'&& $(track2) +``` yaml $(python) && $(python-mode) == 'create' && $(track2) basic-setup-py: true output-folder: $(python-sdks-folder)/sql/azure-mgmt-sql ``` \ No newline at end of file From 624cc268b2651df4e4a7a09759958adf80247557 Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Wed, 12 May 2021 15:27:30 +0800 Subject: [PATCH 3/7] Update readme.python.md --- specification/sql/resource-manager/readme.python.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specification/sql/resource-manager/readme.python.md b/specification/sql/resource-manager/readme.python.md index 39b86e5fe800..ec2988c8da73 100644 --- a/specification/sql/resource-manager/readme.python.md +++ b/specification/sql/resource-manager/readme.python.md @@ -24,6 +24,8 @@ namespace: azure.mgmt.sql package-name: azure-mgmt-sql package-version: 0.9.0 clear-output-folder: true +modelerfour: + lenient-model-deduplication: true ``` ``` yaml $(python) && $(python-mode) == 'update' && !$(track2) @@ -46,4 +48,4 @@ output-folder: $(python-sdks-folder)/sql/azure-mgmt-sql/azure/mgmt/sql ``` yaml $(python) && $(python-mode) == 'create' && $(track2) basic-setup-py: true output-folder: $(python-sdks-folder)/sql/azure-mgmt-sql -``` \ No newline at end of file +``` From 72dd592bd16b790869c73c8ea3962ec326ee3270 Mon Sep 17 00:00:00 2001 From: Zed <601306339@qq.com> Date: Thu, 13 May 2021 10:09:49 +0800 Subject: [PATCH 4/7] conflient resolve --- specification/sql/resource-manager/readme.python.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/specification/sql/resource-manager/readme.python.md b/specification/sql/resource-manager/readme.python.md index 64da894d43b7..ec2988c8da73 100644 --- a/specification/sql/resource-manager/readme.python.md +++ b/specification/sql/resource-manager/readme.python.md @@ -48,8 +48,4 @@ output-folder: $(python-sdks-folder)/sql/azure-mgmt-sql/azure/mgmt/sql ``` yaml $(python) && $(python-mode) == 'create' && $(track2) basic-setup-py: true output-folder: $(python-sdks-folder)/sql/azure-mgmt-sql -<<<<<<< HEAD ``` -======= -``` ->>>>>>> azure/master From ee71921d8b2cae5b563e5dbfdf4ac50fdb75ce3a Mon Sep 17 00:00:00 2001 From: Zed <601306339@qq.com> Date: Tue, 1 Jun 2021 11:01:58 +0800 Subject: [PATCH 5/7] mariadb readme config --- .../mariadb/resource-manager/readme.md | 44 +------------------ 1 file changed, 2 insertions(+), 42 deletions(-) diff --git a/specification/mariadb/resource-manager/readme.md b/specification/mariadb/resource-manager/readme.md index d66cf11b7e12..d3c6b117ac55 100644 --- a/specification/mariadb/resource-manager/readme.md +++ b/specification/mariadb/resource-manager/readme.md @@ -113,6 +113,7 @@ This is not used by Autorest itself. 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 @@ -138,48 +139,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) && !$(track2) -python-mode: create -python: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - namespace: azure.mgmt.rdbms.mariadb - package-name: azure-mgmt-rdbms - clear-output-folder: true -``` -``` yaml $(python) && $(track2) -python-mode: create -azure-arm: true -license-header: MICROSOFT_MIT_NO_VERSION -namespace: azure.mgmt.rdbms.mariadb -package-name: azure-mgmt-rdbms -clear-output-folder: true -modelerfour: - lenient-model-deduplication: true -``` -``` yaml $(python) && $(python-mode) == 'update' && !$(track2) -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb -``` -``` yaml $(python) && $(python-mode) == 'create' && !$(track2) -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms -``` -``` yaml $(python) && $(python-mode) == 'update' && $(track2) -no-namespace-folders: true -output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb -``` -``` yaml $(python) && $(python-mode) == 'create' && $(track2) -basic-setup-py: true -output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms -``` +See configuration in [readme.python.md](./readme.python.md) ## Go From e89985f8fabb569b3ccf93dea9514b7d57346f7f Mon Sep 17 00:00:00 2001 From: Zed <601306339@qq.com> Date: Tue, 1 Jun 2021 11:03:08 +0800 Subject: [PATCH 6/7] readme.python config --- .../mariadb/resource-manager/readme.python.md | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 specification/mariadb/resource-manager/readme.python.md diff --git a/specification/mariadb/resource-manager/readme.python.md b/specification/mariadb/resource-manager/readme.python.md new file mode 100644 index 000000000000..43e1fba1d977 --- /dev/null +++ b/specification/mariadb/resource-manager/readme.python.md @@ -0,0 +1,46 @@ +## 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) && !$(track2) +python-mode: create +python: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: azure.mgmt.rdbms.mariadb + package-name: azure-mgmt-rdbms + 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.rdbms.mariadb +package-name: azure-mgmt-rdbms +package-version: 1.0.0b1 +clear-output-folder: true +modelerfour: + lenient-model-deduplication: true +``` +``` yaml $(python) && $(python-mode) == 'update' && !$(track2) +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb +``` +``` yaml $(python) && $(python-mode) == 'create' && !$(track2) +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms +``` +``` yaml $(python) && $(python-mode) == 'update' && $(track2) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb +``` +``` yaml $(python) && $(python-mode) == 'create' && $(track2) +basic-setup-py: true +output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms +``` \ No newline at end of file From 5d36f85574e1c2052e457256310c215d11843be5 Mon Sep 17 00:00:00 2001 From: Zed <601306339@qq.com> Date: Tue, 1 Jun 2021 16:29:23 +0800 Subject: [PATCH 7/7] track1 del --- .../mariadb/resource-manager/readme.md | 1 - .../mariadb/resource-manager/readme.python.md | 23 ++----------------- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/specification/mariadb/resource-manager/readme.md b/specification/mariadb/resource-manager/readme.md index d3c6b117ac55..ecc148f8d3fc 100644 --- a/specification/mariadb/resource-manager/readme.md +++ b/specification/mariadb/resource-manager/readme.md @@ -112,7 +112,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/mariadb/resource-manager/readme.python.md b/specification/mariadb/resource-manager/readme.python.md index 43e1fba1d977..6a0735e0f490 100644 --- a/specification/mariadb/resource-manager/readme.python.md +++ b/specification/mariadb/resource-manager/readme.python.md @@ -4,17 +4,6 @@ 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.rdbms.mariadb - package-name: azure-mgmt-rdbms - package-version: 0.1.0 - clear-output-folder: true -``` ``` yaml $(python) && $(track2) python-mode: create azure-arm: true @@ -26,16 +15,8 @@ clear-output-folder: true modelerfour: lenient-model-deduplication: true ``` -``` yaml $(python) && $(python-mode) == 'update' && !$(track2) -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb -``` -``` yaml $(python) && $(python-mode) == 'create' && !$(track2) -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms -``` + + ``` yaml $(python) && $(python-mode) == 'update' && $(track2) no-namespace-folders: true output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb