diff --git a/specification/monitor/resource-manager/readme.go.md b/specification/monitor/resource-manager/readme.go.md index 53cc31c2fa1e..4218192c948b 100644 --- a/specification/monitor/resource-manager/readme.go.md +++ b/specification/monitor/resource-manager/readme.go.md @@ -5,7 +5,6 @@ These settings apply only when `--go` is specified on the command line. ``` yaml $(go) && !$(track2) go: license-header: MICROSOFT_MIT_NO_VERSION - namespace: insights clear-output-folder: true ``` @@ -40,6 +39,12 @@ batch: - tag: package-2020-10-only - tag: package-2021-07 - tag: package-2021-09 + - tag: package-2016-03-preview-monitorlegacy + - tag: package-2021-05-preview-diagnostics + - tag: package-2020-10-activityLogs + - tag: package-2021-05-metrics + - tag: package-2021-08-scheduledqueryrules + - tag: package-2022-02-01-preview-only ``` ### Tag: package-2017-09 and go @@ -48,6 +53,7 @@ These settings apply only when `--tag=package-2017-09 --go` is specified on the Please also specify `--go-sdk-folder=`. ``` yaml $(tag) == 'package-2017-09' && $(go) +namespace: insights output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2017-05-01-preview/$(namespace) ``` @@ -57,6 +63,7 @@ These settings apply only when `--tag=package-2018-03 --go` is specified on the Please also specify `--go-sdk-folder=`. ``` yaml $(tag) == 'package-2018-03' && $(go) +namespace: insights output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2018-03-01/$(namespace) ``` @@ -66,6 +73,7 @@ These settings apply only when `--tag=package-2018-09 --go` is specified on the Please also specify `--go-sdk-folder=`. ``` yaml $(tag) == 'package-2018-09' && $(go) +namespace: insights output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2018-09-01/$(namespace) ``` @@ -75,6 +83,7 @@ These settings apply only when `--tag=package-2018-11-preview --go` is specified Please also specify `--go-sdk-folder=`. ``` yaml $(tag) == 'package-2018-11-preview' && $(go) +namespace: insights output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2018-11-01-preview/$(namespace) ``` @@ -84,6 +93,7 @@ These settings apply only when `--tag=package-2019-03 --go` is specified on the Please also specify `--go-sdk-folder=`. ``` yaml $(tag) == 'package-2019-03' && $(go) +namespace: insights output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2019-03-01/$(namespace) ``` @@ -93,6 +103,7 @@ These settings apply only when `--tag=package-2019-06 --go` is specified on the Please also specify `--go-sdk-folder=`. ``` yaml $(tag) == 'package-2019-06' && $(go) +namespace: insights output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2019-06-01/$(namespace) ``` @@ -102,6 +113,7 @@ These settings apply only when `--tag=package-2019-11 --go` is specified on the Please also specify `--go-sdk-folder=`. ``` yaml $(tag) == 'package-2019-11' && $(go) +namespace: insights output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2019-11-01-preview/$(namespace) ``` @@ -111,6 +123,7 @@ These settings apply only when `--tag=package-2020-10-only --go` is specified on Please also specify `--go-sdk-folder=`. ``` yaml $(tag) == 'package-2020-10-only' && $(go) +namespace: insights output-folder: $(go-sdk-folder)/services/monitor/mgmt/2020-10-01/$(namespace) ``` @@ -120,6 +133,7 @@ These settings apply only when `--tag=package-2021-07 --go` is specified on the Please also specify `--go-sdk-folder=`. ``` yaml $(tag) == 'package-2021-07' && $(go) +namespace: insights output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2021-07-01-preview/$(namespace) ``` @@ -129,5 +143,66 @@ These settings apply only when `--tag=package-2021-09 --go` is specified on the Please also specify `--go-sdk-folder=`. ``` yaml $(tag) == 'package-2021-09' && $(go) +namespace: insights output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2021-09-01-preview/$(namespace) -``` \ No newline at end of file +``` + +### Tag: package-2022-02-01-preview-only and go + +These settings apply only when `--tag=package-2022-02-01-preview-only --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2022-02-01-preview-only' && $(go) +namespace: datacollection +output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2021-09-01-preview/$(namespace) +``` + +### Tag: package-2021-08-scheduledqueryrules and go + +These settings apply only when `--tag=package-2021-08-scheduledqueryrules --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2021-08-scheduledqueryrules' && $(go) +namespace: scheduledqueryrules +output-folder: $(go-sdk-folder)/services/monitor/mgmt/2021-08-01/$(namespace) +``` + +### Tag: package-2021-05-metrics and go + +These settings apply only when `--tag=package-2021-05-metrics --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2021-05-metrics' && $(go) +namespace: metrics +output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2021-05-01-preview/$(namespace) +``` + +### Tag: package-2020-10-activityLogs and go + +These settings apply only when `--tag=package-2020-10-activityLogs --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2020-10-activityLogs' && $(go) +namespace: activitylogs +output-folder: $(go-sdk-folder)/services/monitor/mgmt/2020-10-01/$(namespace) +``` + +### Tag: package-2021-05-preview-diagnostics and go + +These settings apply only when `--tag=package-2021-05-preview-diagnostics --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2021-05-preview-diagnostics' && $(go) +namespace: diagnostics +output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2021-05-01-preview/$(namespace) +``` + +### Tag: package-2016-03-preview-monitorlegacy and go + +These settings apply only when `--tag=package-2016-03-preview-monitorlegacy --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2016-03-preview-monitorlegacy' && $(go) +namespace: monitorlegacy +output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2016-03-01-preview/$(namespace) +``` diff --git a/specification/monitor/resource-manager/readme.md b/specification/monitor/resource-manager/readme.md index b47dc96d0e0d..76bb437c3e41 100644 --- a/specification/monitor/resource-manager/readme.md +++ b/specification/monitor/resource-manager/readme.md @@ -42,6 +42,82 @@ directive: reason: There are open issues (bugs) in the validator affecting some of the examples and since there is no way to selectively disable the validation for a particular example or paths, all of the example validation is being turned off. ``` +### Tag: package-2016-03-preview-monitorlegacy + +These settings apply only when `--tag=package-2016-03-preview-monitorlegacy` is specified on the command line + +``` yaml $(tag) == 'package-2016-03-preview-monitorlegacy' +input-file: +- Microsoft.Insights/stable/2015-04-01/eventCategories_API.json +- Microsoft.Insights/stable/2016-03-01/alertRules_API.json +- Microsoft.Insights/stable/2016-03-01/alertRulesIncidents_API.json +- Microsoft.Insights/stable/2016-03-01/logProfiles_API.json +- Microsoft.Insights/preview/2018-11-27-preview/vmInsightsOnboarding_API.json +``` + +### Tag: package-2021-05-preview-diagnostics + +These settings apply only when `--tag=package-2021-05-preview-diagnostics` is specified on the command line + +``` yaml $(tag) == 'package-2021-05-preview-diagnostics' +input-file: +- Microsoft.Insights/preview/2021-05-01-preview/autoscale_API.json +- Microsoft.Insights/preview/2021-05-01-preview/diagnosticsSettings_API.json +- Microsoft.Insights/preview/2021-05-01-preview/diagnosticsSettingsCategories_API.json +- Microsoft.Insights/preview/2021-05-01-preview/managementGroupDiagnosticSettings_API.json +- Microsoft.Insights/preview/2021-05-01-preview/subscriptionDiagnosticsSettings_API.json +- Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json +- Microsoft.Insights/stable/2021-09-01/actionGroups_API.json +``` + +### Tag: package-2020-10-activityLogs + +These settings apply only when `--tag=package-2020-10-activityLogs` is specified on the command line + +``` yaml $(tag) == 'package-2020-10-activityLogs' +input-file: +- Microsoft.Insights/stable/2015-04-01/activityLogs_API.json +- Microsoft.Insights/stable/2015-04-01/tenantActivityLogs_API.json +- Microsoft.Insights/stable/2020-10-01/activityLogAlerts_API.json +directive: +- from: activityLogAlerts_API.json + where: $.definitions + transform: delete $["ErrorResponse"] + reason: Description doesn't match, the definition will be "inherit" from activityLogs_API.json +``` + +### Tag: package-2021-05-metrics + +These settings apply only when `--tag=package-2021-05-metrics` is specified on the command line + +``` yaml $(tag) == 'package-2021-05-metrics' +input-file: +- Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json +- Microsoft.Insights/stable/2018-03-01/metricAlert_API.json +- Microsoft.Insights/stable/2019-03-01/metricBaselines_API.json +- Microsoft.Insights/stable/2021-05-01/metricDefinitions_API.json +- Microsoft.Insights/stable/2021-05-01/metrics_API.json +- Microsoft.Insights/stable/2021-05-01/operations_API.json +directive: +- from: metricBaselines_API.json + where: $.parameters + transform: delete $["MetricNamespaceParameter"] + reason: Description doesn't match, the definition will be "inherit" from metrics_API.json +- from: metricBaselines_API.json + where: $.parameters + transform: delete $["MetricNamesParameter"] + reason: Description doesn't match, the definition will be "inherit" from metrics_API.json +``` + +### Tag: package-2021-08-scheduledqueryrules + +These settings apply only when `--tag=package-2021-08-scheduledqueryrules` is specified on the command line + +``` yaml $(tag) == 'package-2021-08-scheduledqueryrules' +input-file: +- Microsoft.Insights/stable/2021-08-01/scheduledQueryRule_API.json +``` + ### Tag: package-2022-02 These settings apply only when `--tag=package-2022-02` is specified on the command line