From 4a2e25f68dc4a0528ebdc6b0c0d6c7d691089b4d Mon Sep 17 00:00:00 2001 From: Chuang <54572251+xccc-msft@users.noreply.github.com> Date: Wed, 4 Sep 2019 00:45:20 +0800 Subject: [PATCH] Policy: add Java readme for package-policy-2019-06 (#7106) * add Java readme for resources * move Java section to readme.java.md --- .../resources/resource-manager/readme.java.md | 272 ++++++++++++++++++ .../resources/resource-manager/readme.md | 271 +---------------- 2 files changed, 273 insertions(+), 270 deletions(-) create mode 100644 specification/resources/resource-manager/readme.java.md diff --git a/specification/resources/resource-manager/readme.java.md b/specification/resources/resource-manager/readme.java.md new file mode 100644 index 000000000000..e9efe358eded --- /dev/null +++ b/specification/resources/resource-manager/readme.java.md @@ -0,0 +1,272 @@ +## 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.resources +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-resources +``` + +### Java multi-api + +Generate all API versions currently shipped for this package + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-features-2015-12 + - tag: package-locks-2016-09 + - tag: package-policy-2019-06 + - tag: package-policy-2019-01 + - tag: package-policy-2018-05 + - tag: package-policy-2018-03 + - tag: package-policy-2016-12 + - tag: package-resources-2019-08 + - tag: package-resources-2019-07 + - tag: package-resources-2019-0510 + - tag: package-resources-2019-05 + - tag: package-resources-2019-03 + - tag: package-resources-2018-02 + - tag: package-resources-2016-09 + - tag: package-subscriptions-2018-06 + - tag: package-subscriptions-2016-06 +``` + +### Tag: package-features-2015-12 and java + +These settings apply only when `--tag=package-features-2015-12 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-features-2015-12' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.features.v2015_12_01 + output-folder: $(azure-libraries-for-java-folder)/features/resource-manager/v2015_12_01 +regenerate-manager: true +generate-interface: true +fconfig: '{"moduleName": "Features"}' +``` + +### Tag: package-locks-2016-09 and java + +These settings apply only when `--tag=package-locks-2016-09 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-locks-2016-09' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.locks.v2016_09_01 + output-folder: $(azure-libraries-for-java-folder)/locks/resource-manager/v2016_09_01 +regenerate-manager: true +generate-interface: true +fconfig: '{"moduleName": "Locks"}' +``` + +### Tag: package-policy-2019-06 and java + +These settings apply only when `--tag=package-policy-2019-06 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-policy-2019-06' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.policy.v2019_06_01 + output-folder: $(azure-libraries-for-java-folder)/policy/resource-manager/v2019_06_01 +regenerate-manager: true +generate-interface: true +fconfig: '{"moduleName": "Policy"}' +directive: + from: policyAssignments.json + where: $.definitions.PolicyAssignmentProperties.properties.scope + transform: $['x-ms-client-name'] = 'scopeProperty' +``` + +### Tag: package-policy-2019-01 and java + +These settings apply only when `--tag=package-policy-2019-01 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-policy-2019-01' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.policy.v2019_01_01 + output-folder: $(azure-libraries-for-java-folder)/policy/resource-manager/v2019_01_01 +regenerate-manager: true +generate-interface: true +fconfig: '{"moduleName": "Policy"}' +directive: + from: policyAssignments.json + where: $.definitions.PolicyAssignmentProperties.properties.scope + transform: $['x-ms-client-name'] = 'scopeProperty' +``` + +### Tag: package-policy-2018-05 and java + +These settings apply only when `--tag=package-policy-2018-05 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-policy-2018-05' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.policy.v2018_05_01 + output-folder: $(azure-libraries-for-java-folder)/policy/resource-manager/v2018_05_01 +regenerate-manager: true +generate-interface: true +fconfig: '{"moduleName": "Policy"}' +directive: + from: policyAssignments.json + where: $.definitions.PolicyAssignmentProperties.properties.scope + transform: $['x-ms-client-name'] = 'scopeProperty' +``` + +### Tag: package-policy-2018-03 and java + +These settings apply only when `--tag=package-policy-2018-03 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-policy-2018-03' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.policy.v2018_03_01 + output-folder: $(azure-libraries-for-java-folder)/policy/resource-manager/v2018_03_01 +regenerate-manager: true +generate-interface: true +fconfig: '{"moduleName": "Policy"}' +directive: + from: policyAssignments.json + where: $.definitions.PolicyAssignmentProperties.properties.scope + transform: $['x-ms-client-name'] = 'scopeProperty' +``` + +### Tag: package-policy-2016-12 and java + +These settings apply only when `--tag=package-policy-2016-12 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-policy-2016-12' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.policy.v2016_12_01 + output-folder: $(azure-libraries-for-java-folder)/policy/resource-manager/v2016_12_01 +regenerate-manager: true +generate-interface: true +fconfig: '{"moduleName": "Policy"}' +directive: + from: policyAssignments.json + where: $.definitions.PolicyAssignmentProperties.properties.scope + transform: $['x-ms-client-name'] = 'scopeProperty' +``` + +### Tag: package-resources-2019-08 and java + +These settings apply only when `--tag=package-resources-2019-08 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-resources-2019-08' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.resources.v2019_08_01 + output-folder: $(azure-libraries-for-java-folder)/resources/resource-manager/v2019_08_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-resources-2019-07 and java + +These settings apply only when `--tag=package-resources-2019-07 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-resources-2019-07' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.resources.v2019_07_01 + output-folder: $(azure-libraries-for-java-folder)/resources/resource-manager/v2019_07_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-resources-2019-0510 and java + +These settings apply only when `--tag=package-resources-2019-0510 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-resources-2019-0510' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.resources.v2019_05_10 + output-folder: $(azure-libraries-for-java-folder)/resources/resource-manager/v2019_05_10 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-resources-2019-05 and java + +These settings apply only when `--tag=package-resources-2019-05 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-resources-2019-05' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.resources.v2019_05_01 + output-folder: $(azure-libraries-for-java-folder)/resources/resource-manager/v2019_05_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-resources-2019-03 and java + +These settings apply only when `--tag=package-resources-2019-03 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-resources-2019-03' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.resources.v2019_03_01 + output-folder: $(azure-libraries-for-java-folder)/resources/resource-manager/v2019_03_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-resources-2018-02 and java + +These settings apply only when `--tag=package-resources-2018-02 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-resources-2018-02' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.resources.v2018_02_01 + output-folder: $(azure-libraries-for-java-folder)/resources/resource-manager/v2018_02_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-resources-2016-09 and java + +These settings apply only when `--tag=package-resources-2016-09 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-resources-2016-09' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.resources.v2016_09_01 + output-folder: $(azure-libraries-for-java-folder)/resources/resource-manager/v2016_09_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-subscriptions-2018-06 and java + +These settings apply only when `--tag=package-subscriptions-2018-06--java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-subscriptions-2018-06' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.resources.v2018_06_01 + output-folder: $(azure-libraries-for-java-folder)/resources/resource-manager/v2018_06_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-subscriptions-2016-06 and java + +These settings apply only when `--tag=package-subscriptions-2016-06--java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-subscriptions-2016-06' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.resources.v2016_06_01 + output-folder: $(azure-libraries-for-java-folder)/resources/resource-manager/v2016_06_01 +regenerate-manager: true +generate-interface: true +``` diff --git a/specification/resources/resource-manager/readme.md b/specification/resources/resource-manager/readme.md index 88ea43b5333c..aa73db63b301 100644 --- a/specification/resources/resource-manager/readme.md +++ b/specification/resources/resource-manager/readme.md @@ -490,276 +490,7 @@ See configuration in [readme.go.md](./readme.go.md) ## 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.resources -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-resources -``` - -### Java multi-api - -Generate all API versions currently shipped for this package - -``` yaml $(java) && $(multiapi) -batch: - - tag: package-features-2015-12 - - tag: package-locks-2016-09 - - tag: package-policy-2019-06 - - tag: package-policy-2019-01 - - tag: package-policy-2018-05 - - tag: package-policy-2018-03 - - tag: package-policy-2016-12 - - tag: package-resources-2019-08 - - tag: package-resources-2019-07 - - tag: package-resources-2019-0510 - - tag: package-resources-2019-05 - - tag: package-resources-2019-03 - - tag: package-resources-2018-02 - - tag: package-resources-2016-09 - - tag: package-subscriptions-2018-06 - - tag: package-subscriptions-2016-06 -``` - -### Tag: package-features-2015-12 and java - -These settings apply only when `--tag=package-features-2015-12 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-features-2015-12' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.features.v2015_12_01 - output-folder: $(azure-libraries-for-java-folder)/features/resource-manager/v2015_12_01 -regenerate-manager: true -generate-interface: true -fconfig: '{"moduleName": "Features"}' -``` - -### Tag: package-locks-2016-09 and java - -These settings apply only when `--tag=package-locks-2016-09 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-locks-2016-09' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.locks.v2016_09_01 - output-folder: $(azure-libraries-for-java-folder)/locks/resource-manager/v2016_09_01 -regenerate-manager: true -generate-interface: true -fconfig: '{"moduleName": "Locks"}' -``` - -### Tag: package-policy-2019-06 and java - -These settings apply only when `--tag=package-policy-2019-06 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-policy-2019-06' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.policy.v2019_06_01 - output-folder: $(azure-libraries-for-java-folder)/policy/resource-manager/v2019_06_01 -regenerate-manager: true -generate-interface: true -fconfig: '{"moduleName": "Policy"}' -directive: - from: policyAssignments.json - where: $.definitions.PolicyAssignmentProperties.properties.scope - transform: $['x-ms-client-name'] = 'scopeProperty' -``` - -### Tag: package-policy-2019-01 and java - -These settings apply only when `--tag=package-policy-2019-01 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-policy-2019-01' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.policy.v2019_01_01 - output-folder: $(azure-libraries-for-java-folder)/policy/resource-manager/v2019_01_01 -regenerate-manager: true -generate-interface: true -fconfig: '{"moduleName": "Policy"}' -directive: - from: policyAssignments.json - where: $.definitions.PolicyAssignmentProperties.properties.scope - transform: $['x-ms-client-name'] = 'scopeProperty' -``` - -### Tag: package-policy-2018-05 and java - -These settings apply only when `--tag=package-policy-2018-05 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-policy-2018-05' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.policy.v2018_05_01 - output-folder: $(azure-libraries-for-java-folder)/policy/resource-manager/v2018_05_01 -regenerate-manager: true -generate-interface: true -fconfig: '{"moduleName": "Policy"}' -directive: - from: policyAssignments.json - where: $.definitions.PolicyAssignmentProperties.properties.scope - transform: $['x-ms-client-name'] = 'scopeProperty' -``` - -### Tag: package-policy-2018-03 and java - -These settings apply only when `--tag=package-policy-2018-03 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-policy-2018-03' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.policy.v2018_03_01 - output-folder: $(azure-libraries-for-java-folder)/policy/resource-manager/v2018_03_01 -regenerate-manager: true -generate-interface: true -fconfig: '{"moduleName": "Policy"}' -directive: - from: policyAssignments.json - where: $.definitions.PolicyAssignmentProperties.properties.scope - transform: $['x-ms-client-name'] = 'scopeProperty' -``` - -### Tag: package-policy-2016-12 and java - -These settings apply only when `--tag=package-policy-2016-12 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-policy-2016-12' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.policy.v2016_12_01 - output-folder: $(azure-libraries-for-java-folder)/policy/resource-manager/v2016_12_01 -regenerate-manager: true -generate-interface: true -fconfig: '{"moduleName": "Policy"}' -directive: - from: policyAssignments.json - where: $.definitions.PolicyAssignmentProperties.properties.scope - transform: $['x-ms-client-name'] = 'scopeProperty' -``` - -### Tag: package-resources-2019-08 and java - -These settings apply only when `--tag=package-resources-2019-08 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-resources-2019-08' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.resources.v2019_08_01 - output-folder: $(azure-libraries-for-java-folder)/resources/resource-manager/v2019_08_01 -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-resources-2019-07 and java - -These settings apply only when `--tag=package-resources-2019-07 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-resources-2019-07' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.resources.v2019_07_01 - output-folder: $(azure-libraries-for-java-folder)/resources/resource-manager/v2019_07_01 -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-resources-2019-0510 and java - -These settings apply only when `--tag=package-resources-2019-0510 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-resources-2019-0510' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.resources.v2019_05_10 - output-folder: $(azure-libraries-for-java-folder)/resources/resource-manager/v2019_05_10 -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-resources-2019-05 and java - -These settings apply only when `--tag=package-resources-2019-05 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-resources-2019-05' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.resources.v2019_05_01 - output-folder: $(azure-libraries-for-java-folder)/resources/resource-manager/v2019_05_01 -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-resources-2019-03 and java - -These settings apply only when `--tag=package-resources-2019-03 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-resources-2019-03' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.resources.v2019_03_01 - output-folder: $(azure-libraries-for-java-folder)/resources/resource-manager/v2019_03_01 -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-resources-2018-02 and java - -These settings apply only when `--tag=package-resources-2018-02 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-resources-2018-02' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.resources.v2018_02_01 - output-folder: $(azure-libraries-for-java-folder)/resources/resource-manager/v2018_02_01 -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-resources-2016-09 and java - -These settings apply only when `--tag=package-resources-2016-09 --java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-resources-2016-09' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.resources.v2016_09_01 - output-folder: $(azure-libraries-for-java-folder)/resources/resource-manager/v2016_09_01 -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-subscriptions-2018-06 and java - -These settings apply only when `--tag=package-subscriptions-2018-06--java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-subscriptions-2018-06' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.resources.v2018_06_01 - output-folder: $(azure-libraries-for-java-folder)/resources/resource-manager/v2018_06_01 -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-subscriptions-2016-06 and java - -These settings apply only when `--tag=package-subscriptions-2016-06--java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-subscriptions-2016-06' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.resources.v2016_06_01 - output-folder: $(azure-libraries-for-java-folder)/resources/resource-manager/v2016_06_01 -regenerate-manager: true -generate-interface: true -``` +See configuration in [readme.java.md](./readme.java.md) # Validation