From cd4aa0bbb40650ec6d8fe2a2ae12510bfafe2caa Mon Sep 17 00:00:00 2001 From: Isabella Cai Date: Mon, 6 May 2019 09:57:38 -0700 Subject: [PATCH 1/2] added java readme for storage --- .../storage/resource-manager/readme.java.md | 108 ++++++++++++++++++ .../storage/resource-manager/readme.md | 98 +--------------- 2 files changed, 109 insertions(+), 97 deletions(-) create mode 100644 specification/storage/resource-manager/readme.java.md diff --git a/specification/storage/resource-manager/readme.java.md b/specification/storage/resource-manager/readme.java.md new file mode 100644 index 000000000000..72058f8eb0bf --- /dev/null +++ b/specification/storage/resource-manager/readme.java.md @@ -0,0 +1,108 @@ +## 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.storage +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 2 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-storage +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2019-04 +``` + +### Tag: package-2019-04 and java + +These settings apply only when `--tag=package-2019-04 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2019-04' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.storage.v2019_04_01 + output-folder: $(azure-libraries-for-java-folder)/storage/resource-manager/v2019_04_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2018-07 and java + +These settings apply only when `--tag=package-2018-07 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2018-07' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.storage.v2018_07_01 + output-folder: $(azure-libraries-for-java-folder)/storage/resource-manager/v2018_07_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2018-03 and java + +These settings apply only when `--tag=package-2018-03 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2018-03' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.storage.v2018_03_01_preview + output-folder: $(azure-libraries-for-java-folder)/storage/resource-manager/v2018_03_01_preview +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2018-02 and java + +These settings apply only when `--tag=package-2018-02 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2018-02' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.storage.v2018_02_01 + output-folder: $(azure-libraries-for-java-folder)/storage/resource-manager/v2018_02_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2017-10 and java + +These settings apply only when `--tag=package-2017-10 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2017-10' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.storage.v2017_10_01 + output-folder: $(azure-libraries-for-java-folder)/storage/resource-manager/v2017_10_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2016-01 and java + +These settings apply only when `--tag=package-2016-01 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2016-01' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.storage.v2016_01_01 + output-folder: $(azure-libraries-for-java-folder)/storage/resource-manager/v2016_01_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: profile-hybrid-2019-03-01 + +These settings apply only when `--tag=profile-hybrid-2019-03-01` is specified on the command line. +Creating this tag to pick proper resources from the hybrid profile. + +``` yaml $(tag) == 'profile-hybrid-2019-03-01' +input-file: +- Microsoft.Storage/stable/2017-10-01/storage.json +``` \ No newline at end of file diff --git a/specification/storage/resource-manager/readme.md b/specification/storage/resource-manager/readme.md index 77402f15eed0..a13714aa0987 100644 --- a/specification/storage/resource-manager/readme.md +++ b/specification/storage/resource-manager/readme.md @@ -250,100 +250,4 @@ swagger-to-sdk: ## 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.storage -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 2 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-storage -``` - -### Java multi-api - -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2018-07 - - tag: package-2018-03 - - tag: package-2018-02 - - tag: package-2017-10 - - tag: package-2016-01 -``` - -### Tag: package-2018-07 and java - -These settings apply only when `--tag=package-2018-07 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-2018-07' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.storage.v2018_07_01 - output-folder: $(azure-libraries-for-java-folder)/storage/resource-manager/v2018_07_01 -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2018-03 and java - -These settings apply only when `--tag=package-2018-03 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-2018-03' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.storage.v2018_03_01_preview - output-folder: $(azure-libraries-for-java-folder)/storage/resource-manager/v2018_03_01_preview -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2018-02 and java - -These settings apply only when `--tag=package-2018-02 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-2018-02' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.storage.v2018_02_01 - output-folder: $(azure-libraries-for-java-folder)/storage/resource-manager/v2018_02_01 -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2017-10 and java - -These settings apply only when `--tag=package-2017-10 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-2017-10' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.storage.v2017_10_01 - output-folder: $(azure-libraries-for-java-folder)/storage/resource-manager/v2017_10_01 -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2016-01 and java - -These settings apply only when `--tag=package-2016-01 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-2016-01' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.storage.v2016_01_01 - output-folder: $(azure-libraries-for-java-folder)/storage/resource-manager/v2016_01_01 -regenerate-manager: true -generate-interface: true -``` - -### Tag: profile-hybrid-2019-03-01 - -These settings apply only when `--tag=profile-hybrid-2019-03-01` is specified on the command line. -Creating this tag to pick proper resources from the hybrid profile. - -``` yaml $(tag) == 'profile-hybrid-2019-03-01' -input-file: -- Microsoft.Storage/stable/2017-10-01/storage.json -``` +See configuration in [readme.java.md](./readme.java.md) From 4a7f548e550efd5b5509ba7b0daddfa2324667c3 Mon Sep 17 00:00:00 2001 From: Isabella Cai Date: Mon, 6 May 2019 10:00:12 -0700 Subject: [PATCH 2/2] added back in generation for previous api versions --- specification/storage/resource-manager/readme.java.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/specification/storage/resource-manager/readme.java.md b/specification/storage/resource-manager/readme.java.md index 72058f8eb0bf..b5cfb1914bea 100644 --- a/specification/storage/resource-manager/readme.java.md +++ b/specification/storage/resource-manager/readme.java.md @@ -17,6 +17,11 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-storage ``` yaml $(java) && $(multiapi) batch: - tag: package-2019-04 + - tag: package-2018-07 + - tag: package-2018-03 + - tag: package-2018-02 + - tag: package-2017-10 + - tag: package-2016-01 ``` ### Tag: package-2019-04 and java