From 65fa4ae8230d3cfd9789f09f99de79762dda0026 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Tue, 10 Jan 2023 15:40:20 +0800 Subject: [PATCH] mgmt, autorest configure for Java codegen --- .../resource-manager/readme.java.md | 115 +----------------- .../resource-manager/readme.java.md | 7 ++ .../resource-manager/readme.md | 4 + 3 files changed, 13 insertions(+), 113 deletions(-) create mode 100644 specification/loadtestservice/resource-manager/readme.java.md diff --git a/specification/desktopvirtualization/resource-manager/readme.java.md b/specification/desktopvirtualization/resource-manager/readme.java.md index 01df28911ab1..be90edf596b7 100644 --- a/specification/desktopvirtualization/resource-manager/readme.java.md +++ b/specification/desktopvirtualization/resource-manager/readme.java.md @@ -1,118 +1,7 @@ ## Java These settings apply only when `--java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. -``` yaml $(java) -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.desktopvirtualization -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-desktopvirtualization +```yaml $(java) +generate-async-methods: true ``` - -### Java multi-api - -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2020-10-19-preview - - tag: package-2020-11-02-preview - - tag: package-2020-11-10-preview - - tag: package-2021-01-14-preview - - tag: package-2021-02-01-preview - - tag: package-2021-03-09-preview - - tag: package-2021-04-01-preview -``` - -### Tag: package-2021-04-01-preview and java - -These settings apply only when `--tag=package-2021-04-01-preview --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2021-04-01-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.desktopvirtualization.v2021_04-01-preview - output-folder: $(azure-libraries-for-java-folder)/sdk/desktopvirtualization/mgmt-v2021_04-01-preview -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2021-03-09-preview and java - -These settings apply only when `--tag=package-2021-03-09-preview --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2021-03-09-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.desktopvirtualization.v2021_03-09-preview - output-folder: $(azure-libraries-for-java-folder)/sdk/desktopvirtualization/mgmt-v2021_03-09-preview -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2021-02-01-preview and java - -These settings apply only when `--tag=package-2021-02-01-preview --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2021-02-01-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.desktopvirtualization.v2021_02-01-preview - output-folder: $(azure-libraries-for-java-folder)/sdk/desktopvirtualization/mgmt-v2021_02-01-preview -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2021-01-14-preview and java - -These settings apply only when `--tag=package-2021-01-14-preview --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2021-01-14-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.desktopvirtualization.v2021_01-14-preview - output-folder: $(azure-libraries-for-java-folder)/sdk/desktopvirtualization/mgmt-v2021_01-14-preview -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2020-11-10-preview and java - -These settings apply only when `--tag=package-2020-11-10-preview --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2020-11-10-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.desktopvirtualization.v2020_11-10-preview - output-folder: $(azure-libraries-for-java-folder)/sdk/desktopvirtualization/mgmt-v2020_11-10-preview -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2020-11-02-preview and java - -These settings apply only when `--tag=package-2020-11-02-preview --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2020-11-02-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.desktopvirtualization.v2020_11-02-preview - output-folder: $(azure-libraries-for-java-folder)/sdk/desktopvirtualization/mgmt-v2020_11-02-preview -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2020-10-19-preview and java - -These settings apply only when `--tag=package-2020-10-19-preview --java` is specified on the command line. -Please also specify `--azure-libraries-for-java=`. - -``` yaml $(tag) == 'package-2020-10-19-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.desktopvirtualization.v2020_10_19_preview - output-folder: $(azure-libraries-for-java-folder)/sdk/desktopvirtualization/mgmt-v2020_10_19_preview -regenerate-manager: true -generate-interface: true -``` - diff --git a/specification/loadtestservice/resource-manager/readme.java.md b/specification/loadtestservice/resource-manager/readme.java.md new file mode 100644 index 000000000000..472346c01651 --- /dev/null +++ b/specification/loadtestservice/resource-manager/readme.java.md @@ -0,0 +1,7 @@ +## Java + +These settings apply only when `--java` is specified on the command line. + +```yaml $(java) +property-include-always: EncryptionPropertiesIdentity.resourceId +``` diff --git a/specification/loadtestservice/resource-manager/readme.md b/specification/loadtestservice/resource-manager/readme.md index eb7082ea7cc2..5bd66ddd9a6a 100644 --- a/specification/loadtestservice/resource-manager/readme.md +++ b/specification/loadtestservice/resource-manager/readme.md @@ -94,3 +94,7 @@ See configuration in [readme.typescript.md](./readme.typescript.md) ## CSharp See configuration in [readme.csharp.md](./readme.csharp.md) + +## Java + +See configuration in [readme.java.md](./readme.java.md)