Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monitor: added tags for Java, created Java readme #6157

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
165 changes: 165 additions & 0 deletions specification/monitor/resource-manager/readme.java.md
Original file line number Diff line number Diff line change
@@ -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=<path to the root directory of your azure-libraries-for-java clone>`.

``` 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=<path to the root directory of your azure-sdk-for-java clone>`.

``` 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=<path to the root directory of your azure-sdk-for-java clone>`.

``` 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=<path to the root directory of your azure-sdk-for-java clone>`.

``` 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=<path to the root directory of your azure-sdk-for-java clone>`.

``` 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=<path to the root directory of your azure-sdk-for-java clone>`.

``` 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=<path to the root directory of your azure-sdk-for-java clone>`.

``` 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=<path to the root directory of your azure-sdk-for-java clone>`.

``` 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=<path to the root directory of your azure-sdk-for-java clone>`.

``` 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=<path to the root directory of your azure-sdk-for-java clone>`.

``` 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=<path to the root directory of your azure-sdk-for-java clone>`.

``` 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
```
66 changes: 30 additions & 36 deletions specification/monitor/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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=<path to the root directory of your azure-libraries-for-java clone>`.

``` 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)