diff --git a/specification/monitor/resource-manager/readme.java.md b/specification/monitor/resource-manager/readme.java.md new file mode 100644 index 000000000000..2da0274592b3 --- /dev/null +++ b/specification/monitor/resource-manager/readme.java.md @@ -0,0 +1,165 @@ +## 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.monitor +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-monitor +service-name: Monitor +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2018-09-01-only + - tag: package-2018-04-16-only + - tag: package-2018-03-01-only + - tag: package-2017-04-01-only + - tag: package-2017-03-01-preview-only + - tag: package-2016-03-01-only + - tag: package-2015-07-01-only +``` + +## Suppression + +``` yaml +directive: + - suppress: R3016 # DefinitionsPropertiesNamesCamelCase (to suppress the error due to odata.type) + reason: The feature (polymorphic types) is in the process of deprecation and fixing this will require changes in the backend. +``` + +### Tag: package-2018-09-01-only and java + +These settings apply only when `--tag=package-2018-09-01-only --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2018-09-01-only' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.monitor.v2018_09_01 + output-folder: $(azure-libraries-for-java-folder)/monitor/resource-manager/v2018_09_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2018-04-16-only and java + +These settings apply only when `--tag=package-2018-04-16-only --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2018-04-16-only' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.monitor.v2018_04_16 + output-folder: $(azure-libraries-for-java-folder)/monitor/resource-manager/v2018_04_16 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2018-03-01-only and java + +These settings apply only when `--tag=package-2018-03-01-only --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2018-03-01-only' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.monitor.v2018_03_01 + output-folder: $(azure-libraries-for-java-folder)/monitor/resource-manager/v2018_03_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2018-01-01-only and java + +These settings apply only when `--tag=package-2018-01-01-only --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2018-01-01-only' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.monitor.v2018_01_01 + output-folder: $(azure-libraries-for-java-folder)/monitor/resource-manager/v2018_01_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2017-05-01-preview-only and java + +These settings apply only when `--tag=package-2017-05-01-preview-only --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2017-05-01-preview-only' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.monitor.v2017_05_01_preview + output-folder: $(azure-libraries-for-java-folder)/monitor/resource-manager/v2017_05_01_preview +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2017-04-01-only and java + +These settings apply only when `--tag=package-2017-04-01-only --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2017-04-01-only' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.monitor.v2017_04_01 + output-folder: $(azure-libraries-for-java-folder)/monitor/resource-manager/v2017_04_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2017-03-01-preview-only and java + +These settings apply only when `--tag=package-2017-03-01-preview-only --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2017-03-01-preview-only' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.monitor.v2017_03_01_preview + output-folder: $(azure-libraries-for-java-folder)/monitor/resource-manager/v2017_03_01_preview +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2016-03-01-only and java + +These settings apply only when `--tag=package-2016-03-01-only --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2016-03-01-only' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.monitor.v2016_03_01 + output-folder: $(azure-libraries-for-java-folder)/monitor/resource-manager/v2016_03_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2015-07-01-only and java + +These settings apply only when `--tag=package-2015-07-01-only --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2015-07-01-only' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.monitor.v2015_07_01 + output-folder: $(azure-libraries-for-java-folder)/monitor/resource-manager/v2015_07_01 +regenerate-manager: true +generate-interface: true +``` + +### Tag: package-2015-04-01-only and java + +These settings apply only when `--tag=package-2015-04-01-only --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2015-04-01-only' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.monitor.v2015_04_01 + output-folder: $(azure-libraries-for-java-folder)/monitor/resource-manager/v2015_04_01 +regenerate-manager: true +generate-interface: true +``` \ No newline at end of file diff --git a/specification/monitor/resource-manager/readme.md b/specification/monitor/resource-manager/readme.md index 9debf04da650..91f60dca8901 100644 --- a/specification/monitor/resource-manager/readme.md +++ b/specification/monitor/resource-manager/readme.md @@ -230,6 +230,17 @@ input-file: - Microsoft.Insights/stable/2017-04-01/activityLogAlerts_API.json ``` +### Tag: package-2018-09-01-only + +These settings apply only when `--tag=package-2018-09-01-only` is specified on the command line. + +``` yaml $(tag) == 'package-2018-09-01-only' +input-file: +- Microsoft.Insights/stable/2018-09-01/actionGroups_API.json +- Microsoft.Insights/stable/2018-09-01/baseline_API.json +- Microsoft.Insights/stable/2018-09-01/calculateBaseline_API.json +``` + ### Tag: package-2018-01-01-only These settings apply only when `--tag=package-2018-01-01-only` is specified on the command line. @@ -259,6 +270,15 @@ input-file: - Microsoft.Insights/stable/2018-04-16/scheduledQueryRule_API.json ``` +### Tag: package-2015-07-01-only + +These settings apply only when `--tag=package-2015-07-01-only` is specified on the command line. + +``` yaml $(tag) == 'package-2015-07-01-only' +input-file: +- Microsoft.Insights/stable/2015-07-01/serviceDiagnosticsSettings_API.json +``` + ### Tag: package-2015-04-01-only These settings apply only when `--tag=package-2015-04-01-only` is specified on the command line. @@ -304,6 +324,15 @@ input-file: - Microsoft.Insights/stable/2017-04-01/activityLogAlerts_API.json ``` +### Tag: package-2017-03-01-preview-only + +These settings apply only when `--tag=package-2017-03-01-preview-only` is specified on the command line. + +``` yaml $(tag) == 'package-2017-03-01-preview-only' +input-file: +- Microsoft.Insights/preview/2017-03-01-preview/activityLogAlerts_API.json +``` + ### Tag: package-2017-05-01-preview-only These settings apply only when `--tag=package-2017-05-01-preview-only` is specified on the command line. @@ -357,39 +386,4 @@ 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.monitor -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-monitor -``` - -# Validation - -## Suppression - -``` yaml -directive: - - suppress: R3016 # DefinitionsPropertiesNamesCamelCase (to suppress the error due to odata.type) - reason: The feature (polymorphic types) is in the process of deprecation and fixing this will require changes in the backend. -``` - -### 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.Insights/stable/2018-01-01/metricDefinitions_API.json -- Microsoft.Insights/stable/2018-01-01/metrics_API.json -- Microsoft.Insights/preview/2017-05-01-preview/diagnosticsSettings_API.json -- Microsoft.Insights/preview/2017-05-01-preview/diagnosticsSettingsCategories_API.json -- Microsoft.Insights/stable/2015-04-01/eventCategories_API.json -- Microsoft.Insights/stable/2015-04-01/operations_API.json -``` +See configuration in [readme.java.md](./readme.java.md) \ No newline at end of file