From 887d1421f363857f5982103fa9c5b81db2d2d189 Mon Sep 17 00:00:00 2001 From: Menghua Xiao Date: Tue, 8 Jun 2021 16:15:06 +0800 Subject: [PATCH] Add configuration to generate AppPlatform SDK for API version 2021-06-01-preview (#14301) * Add configuration to generate AppPlatform SDK for API version 2021-03-03-preview * Update AutoRest configuration after api-version change in #14323 --- .../appplatform/resource-manager/readme.go.md | 10 ++++++++++ .../appplatform/resource-manager/readme.java.md | 14 ++++++++++++++ .../resource-manager/readme.python.md | 17 +++++++++++++++++ .../appplatform/resource-manager/readme.ruby.md | 13 ++++++++++++- 4 files changed, 53 insertions(+), 1 deletion(-) diff --git a/specification/appplatform/resource-manager/readme.go.md b/specification/appplatform/resource-manager/readme.go.md index d67828bed9ae..463b0fc15645 100644 --- a/specification/appplatform/resource-manager/readme.go.md +++ b/specification/appplatform/resource-manager/readme.go.md @@ -13,11 +13,21 @@ go: ``` yaml $(go) && $(multiapi) batch: + - tag: package-preview-2021-06 - tag: package-preview-2020-11 - tag: package-2020-07 - tag: package-2019-05-01-preview ``` +### Tag: package-preview-2021-06 and go + +These settings apply only when `--tag=package-preview-2021-06 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-preview-2021-06' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2021-06-01-preview/$(namespace) +``` + ### Tag: package-preview-2020-11 and go These settings apply only when `--tag=package-preview-2020-11 --go` is specified on the command line. diff --git a/specification/appplatform/resource-manager/readme.java.md b/specification/appplatform/resource-manager/readme.java.md index 6ef8eb3c1a57..a8db157ff0c9 100644 --- a/specification/appplatform/resource-manager/readme.java.md +++ b/specification/appplatform/resource-manager/readme.java.md @@ -16,11 +16,25 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-appplatform ``` yaml $(java) && $(multiapi) batch: + - tag: package-preview-2021-06 - tag: package-preview-2020-11 - tag: package-2020-07 - tag: package-2019-05-01-preview ``` +### Tag: package-preview-2021-06 and java + +These settings apply only when `--tag=package-preview-2021-06 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-preview-2021-06' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.appplatform.v2021_06_01_preview + output-folder: $(azure-libraries-for-java-folder)/sdk/appplatform/mgmt-v2021_06_01_preview +regenerate-manager: true +generate-interface: true +``` + ### Tag: package-preview-2020-11 and java These settings apply only when `--tag=package-preview-2020-11 --java` is specified on the command line. diff --git a/specification/appplatform/resource-manager/readme.python.md b/specification/appplatform/resource-manager/readme.python.md index 0a0051851a78..f3a102599d2c 100644 --- a/specification/appplatform/resource-manager/readme.python.md +++ b/specification/appplatform/resource-manager/readme.python.md @@ -29,6 +29,7 @@ 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 @@ -37,6 +38,7 @@ batch: ```yaml $(python) && $(multiapi) && $(track2) clear-output-folder: true batch: + - tag: package-preview-2021-06 - tag: package-preview-2020-11 - tag: package-2020-07 - tag: package-2019-05-01-preview @@ -49,6 +51,21 @@ clear-output-folder: false perform-load: false ``` +### Tag: package-preview-2021-06 and python + +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 +``` + ### Tag: package-preview-2020-11 and python These settings apply only when `--tag=package-preview-2020-11 --python` is specified on the command line. diff --git a/specification/appplatform/resource-manager/readme.ruby.md b/specification/appplatform/resource-manager/readme.ruby.md index b4130d932c68..379a5ac27cb1 100644 --- a/specification/appplatform/resource-manager/readme.ruby.md +++ b/specification/appplatform/resource-manager/readme.ruby.md @@ -12,11 +12,22 @@ azure-arm: true ``` yaml $(ruby) && $(multiapi) batch: + - tag: package-preview-2021-06 - tag: package-preview-2020-11 - tag: package-2020-07 - tag: package-2019-05-01-preview ``` +### Tag: package-preview-2021-06 and ruby + +These settings apply only when `--tag=package-preview-2021-06 --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +``` yaml $(tag) == 'package-preview-2021-06' && $(ruby) +namespace: "Azure::AppPlatform::Mgmt::V2021_06_01_preview" +output-folder: $(ruby-sdks-folder)/management/azure_mgmt_appplatform/lib +``` + ### Tag: package-preview-2020-11 and ruby These settings apply only when `--tag=package-preview-2020-11 --ruby` is specified on the command line. @@ -45,4 +56,4 @@ Please also specify `--ruby-sdks-folder=