From f75972eb4dc4f6a7da338829ebeaed1c0fe5a7f9 Mon Sep 17 00:00:00 2001 From: Daeun Yim Date: Mon, 24 May 2021 12:58:55 -0700 Subject: [PATCH 01/11] multi api for typescript --- .../postgresql/resource-manager/readme.md | 5 ++++ .../resource-manager/readme.typescript.md | 29 ++++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/specification/postgresql/resource-manager/readme.md b/specification/postgresql/resource-manager/readme.md index b984ff26c82e..182c69dbe6fd 100644 --- a/specification/postgresql/resource-manager/readme.md +++ b/specification/postgresql/resource-manager/readme.md @@ -30,6 +30,7 @@ description: The Microsoft Azure management API provides create, read, update, a openapi-type: arm tag: package-2020-01-01 ``` + ### Tag: package-2021-04-10-privatepreview These settings apply only when `--tag=package-2021-04-10-privatepreview` is specified on the command line. @@ -216,6 +217,10 @@ See configuration in [readme.go.md](./readme.go.md) See configuration in [readme.java.md](./readme.java.md) +## TypeScript + +See configuration in [readme.typescript.md](./readme.typescript.md) + ## Multi-API/Profile support for AutoRest v3 generators diff --git a/specification/postgresql/resource-manager/readme.typescript.md b/specification/postgresql/resource-manager/readme.typescript.md index f0fb5561e92a..6cc87fa1b8e6 100644 --- a/specification/postgresql/resource-manager/readme.typescript.md +++ b/specification/postgresql/resource-manager/readme.typescript.md @@ -7,7 +7,34 @@ Please also specify `--typescript-sdks-folder=`. + +``` yaml $(tag) == 'package-2021-04-10-privatepreview' && $(typescript) +output-folder: "$(typescript-sdks-folder)/sdk/postgresql/arm-postgresql/ +``` + +### Tag: package-2020-01-01 and TypeScript + +These settings apply only when `--tag=package-2020-01-01 --typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +``` yaml $(tag) == 'package-2020-01-01' && $(typescript) +output-folder: "$(typescript-sdks-folder)/sdk/postgresql/arm-postgresql-flexibleserver/ +``` + From 2e50a09b4d5f1bd873478cd27fe8b2dc0035b6c5 Mon Sep 17 00:00:00 2001 From: Daeun Yim Date: Mon, 24 May 2021 13:10:37 -0700 Subject: [PATCH 02/11] fix typo --- .../postgresql/resource-manager/readme.typescript.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/specification/postgresql/resource-manager/readme.typescript.md b/specification/postgresql/resource-manager/readme.typescript.md index 6cc87fa1b8e6..ac9d06ea149c 100644 --- a/specification/postgresql/resource-manager/readme.typescript.md +++ b/specification/postgresql/resource-manager/readme.typescript.md @@ -19,14 +19,13 @@ batch: - tag: package-2021-04-10-privatepreview ``` - ### Tag: package-2021-04-10-privatepreview and TypeScript These settings apply only when `--tag=package-2021-04-10-privatepreview --typescript` is specified on the command line. Please also specify `--typescript-sdks-folder=`. ``` yaml $(tag) == 'package-2021-04-10-privatepreview' && $(typescript) -output-folder: "$(typescript-sdks-folder)/sdk/postgresql/arm-postgresql/ +output-folder: "$(typescript-sdks-folder)/sdk/postgresql/arm-postgresql/" ``` ### Tag: package-2020-01-01 and TypeScript @@ -35,6 +34,6 @@ These settings apply only when `--tag=package-2020-01-01 --typescript` is specif Please also specify `--typescript-sdks-folder=`. ``` yaml $(tag) == 'package-2020-01-01' && $(typescript) -output-folder: "$(typescript-sdks-folder)/sdk/postgresql/arm-postgresql-flexibleserver/ +output-folder: "$(typescript-sdks-folder)/sdk/postgresql/arm-postgresql-flexibleserver/" ``` From a37887a6cc9946a5a247e7d9f6d56647f7f5a013 Mon Sep 17 00:00:00 2001 From: Daeun Yim Date: Thu, 3 Jun 2021 07:57:35 -0700 Subject: [PATCH 03/11] update multiapi --- .../postgresql/resource-manager/readme.typescript.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/postgresql/resource-manager/readme.typescript.md b/specification/postgresql/resource-manager/readme.typescript.md index ac9d06ea149c..f7b31b775bbe 100644 --- a/specification/postgresql/resource-manager/readme.typescript.md +++ b/specification/postgresql/resource-manager/readme.typescript.md @@ -25,7 +25,7 @@ These settings apply only when `--tag=package-2021-04-10-privatepreview --typesc Please also specify `--typescript-sdks-folder=`. ``` yaml $(tag) == 'package-2021-04-10-privatepreview' && $(typescript) -output-folder: "$(typescript-sdks-folder)/sdk/postgresql/arm-postgresql/" +output-folder: "$(typescript-sdks-folder)/sdk/postgresql/arm-postgresql-flexibleserver/" ``` ### Tag: package-2020-01-01 and TypeScript @@ -34,6 +34,6 @@ These settings apply only when `--tag=package-2020-01-01 --typescript` is specif Please also specify `--typescript-sdks-folder=`. ``` yaml $(tag) == 'package-2020-01-01' && $(typescript) -output-folder: "$(typescript-sdks-folder)/sdk/postgresql/arm-postgresql-flexibleserver/" +output-folder: "$(typescript-sdks-folder)/sdk/postgresql/arm-postgresql/" ``` From 99a7b9e3bde08e88da254d2a2873af2d284df589 Mon Sep 17 00:00:00 2001 From: Daeun Yim Date: Wed, 9 Jun 2021 15:45:11 -0700 Subject: [PATCH 04/11] js md file added title --- specification/postgresql/resource-manager/readme.typescript.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/postgresql/resource-manager/readme.typescript.md b/specification/postgresql/resource-manager/readme.typescript.md index f7b31b775bbe..1a7579273ad4 100644 --- a/specification/postgresql/resource-manager/readme.typescript.md +++ b/specification/postgresql/resource-manager/readme.typescript.md @@ -25,6 +25,7 @@ These settings apply only when `--tag=package-2021-04-10-privatepreview --typesc Please also specify `--typescript-sdks-folder=`. ``` yaml $(tag) == 'package-2021-04-10-privatepreview' && $(typescript) +title: PostgreSQLManagementFlexibleServerClient output-folder: "$(typescript-sdks-folder)/sdk/postgresql/arm-postgresql-flexibleserver/" ``` From 733c3548afabba8c844b1faacfaacf5ef6201a6e Mon Sep 17 00:00:00 2001 From: Daeun Yim <69321306+DaeunYim@users.noreply.github.com> Date: Wed, 9 Jun 2021 16:48:16 -0700 Subject: [PATCH 05/11] Removing multi api support for typescript --- .../postgresql/resource-manager/readme.typescript.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/specification/postgresql/resource-manager/readme.typescript.md b/specification/postgresql/resource-manager/readme.typescript.md index 1a7579273ad4..898083476664 100644 --- a/specification/postgresql/resource-manager/readme.typescript.md +++ b/specification/postgresql/resource-manager/readme.typescript.md @@ -11,14 +11,6 @@ typescript: generate-metadata: true ``` -### TypeScript multi-api - -```yaml $(typescript) && $(multiapi) -batch: - - tag: package-2020-01-01 - - tag: package-2021-04-10-privatepreview -``` - ### Tag: package-2021-04-10-privatepreview and TypeScript These settings apply only when `--tag=package-2021-04-10-privatepreview --typescript` is specified on the command line. From 55f8f8999e19fdfadbeb95d42f48cb956d44598c Mon Sep 17 00:00:00 2001 From: Daeun Yim <69321306+DaeunYim@users.noreply.github.com> Date: Wed, 9 Jun 2021 21:59:34 -0700 Subject: [PATCH 06/11] Update specification/postgresql/resource-manager/readme.typescript.md Co-authored-by: Wei Dong <40835867+dw511214992@users.noreply.github.com> --- specification/postgresql/resource-manager/readme.typescript.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/specification/postgresql/resource-manager/readme.typescript.md b/specification/postgresql/resource-manager/readme.typescript.md index 898083476664..f06dbb9675e3 100644 --- a/specification/postgresql/resource-manager/readme.typescript.md +++ b/specification/postgresql/resource-manager/readme.typescript.md @@ -6,7 +6,6 @@ Please also specify `--typescript-sdks-folder= Date: Wed, 9 Jun 2021 21:59:39 -0700 Subject: [PATCH 07/11] Update specification/postgresql/resource-manager/readme.typescript.md Co-authored-by: Wei Dong <40835867+dw511214992@users.noreply.github.com> --- specification/postgresql/resource-manager/readme.typescript.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/postgresql/resource-manager/readme.typescript.md b/specification/postgresql/resource-manager/readme.typescript.md index f06dbb9675e3..98791b6dd6c1 100644 --- a/specification/postgresql/resource-manager/readme.typescript.md +++ b/specification/postgresql/resource-manager/readme.typescript.md @@ -17,6 +17,7 @@ Please also specify `--typescript-sdks-folder= Date: Wed, 9 Jun 2021 21:59:46 -0700 Subject: [PATCH 08/11] Update specification/postgresql/resource-manager/readme.typescript.md Co-authored-by: Wei Dong <40835867+dw511214992@users.noreply.github.com> --- specification/postgresql/resource-manager/readme.typescript.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/postgresql/resource-manager/readme.typescript.md b/specification/postgresql/resource-manager/readme.typescript.md index 98791b6dd6c1..8b9e5c8f3631 100644 --- a/specification/postgresql/resource-manager/readme.typescript.md +++ b/specification/postgresql/resource-manager/readme.typescript.md @@ -27,5 +27,6 @@ These settings apply only when `--tag=package-2020-01-01 --typescript` is specif Please also specify `--typescript-sdks-folder=`. ``` yaml $(tag) == 'package-2020-01-01' && $(typescript) +package-name: "@azure/arm-postgresql" output-folder: "$(typescript-sdks-folder)/sdk/postgresql/arm-postgresql/" ``` From 0143aab7f586c0292558f247398e56081933c253 Mon Sep 17 00:00:00 2001 From: Daeun Yim <69321306+DaeunYim@users.noreply.github.com> Date: Wed, 9 Jun 2021 22:03:12 -0700 Subject: [PATCH 09/11] Update package name --- .../postgresql/resource-manager/readme.typescript.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/postgresql/resource-manager/readme.typescript.md b/specification/postgresql/resource-manager/readme.typescript.md index 8b9e5c8f3631..610f791239cb 100644 --- a/specification/postgresql/resource-manager/readme.typescript.md +++ b/specification/postgresql/resource-manager/readme.typescript.md @@ -17,8 +17,8 @@ Please also specify `--typescript-sdks-folder= Date: Wed, 9 Jun 2021 22:55:45 -0700 Subject: [PATCH 10/11] Change API version --- .../postgresql/resource-manager/readme.typescript.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/postgresql/resource-manager/readme.typescript.md b/specification/postgresql/resource-manager/readme.typescript.md index 610f791239cb..43643e8c6ea3 100644 --- a/specification/postgresql/resource-manager/readme.typescript.md +++ b/specification/postgresql/resource-manager/readme.typescript.md @@ -10,12 +10,12 @@ typescript: generate-metadata: true ``` -### Tag: package-2021-04-10-privatepreview and TypeScript +### Tag: package-2021-06-01-preview and TypeScript -These settings apply only when `--tag=package-2021-04-10-privatepreview --typescript` is specified on the command line. +These settings apply only when `--tag=package-2021-06-01-preview --typescript` is specified on the command line. Please also specify `--typescript-sdks-folder=`. -``` yaml $(tag) == 'package-2021-04-10-privatepreview' && $(typescript) +``` yaml $(tag) == 'package-2021-06-01-preview' && $(typescript) title: PostgreSQLManagementFlexibleServerClient package-name: "@azure/arm-postgresql-flexible" output-folder: "$(typescript-sdks-folder)/sdk/postgresql/arm-postgresql-flexible/" From 5c9982f5206390fa3920ec3a5ddc8669f31252c7 Mon Sep 17 00:00:00 2001 From: Daeun Yim <69321306+DaeunYim@users.noreply.github.com> Date: Wed, 9 Jun 2021 23:03:46 -0700 Subject: [PATCH 11/11] remove API change --- .../postgresql/resource-manager/readme.typescript.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/postgresql/resource-manager/readme.typescript.md b/specification/postgresql/resource-manager/readme.typescript.md index 43643e8c6ea3..610f791239cb 100644 --- a/specification/postgresql/resource-manager/readme.typescript.md +++ b/specification/postgresql/resource-manager/readme.typescript.md @@ -10,12 +10,12 @@ typescript: generate-metadata: true ``` -### Tag: package-2021-06-01-preview and TypeScript +### Tag: package-2021-04-10-privatepreview and TypeScript -These settings apply only when `--tag=package-2021-06-01-preview --typescript` is specified on the command line. +These settings apply only when `--tag=package-2021-04-10-privatepreview --typescript` is specified on the command line. Please also specify `--typescript-sdks-folder=`. -``` yaml $(tag) == 'package-2021-06-01-preview' && $(typescript) +``` yaml $(tag) == 'package-2021-04-10-privatepreview' && $(typescript) title: PostgreSQLManagementFlexibleServerClient package-name: "@azure/arm-postgresql-flexible" output-folder: "$(typescript-sdks-folder)/sdk/postgresql/arm-postgresql-flexible/"