Skip to content

Commit

Permalink
Update readme.go.md (#18065)
Browse files Browse the repository at this point in the history
* Update readme.go.md

Enable 2021-05-01-preview diagnostic setting api for Go

* Added 2202-03 tag and update go file

* Add output folder

* Add 'package-2022-03' to directives condition

* Update package-2022-03 resources (DCR, DCRA, DCE)

* Set Monitor to package-2022-03

* Split packages 1

* Split packages 1 (fix on go output folder)

* Split packages second attempt

* Split packages third attempt

* Split packages four attempt

* Split packages fifth attempt

* Fix folders

* fixing go output folder

* fix

* test

* namespace

* fix namespace

Co-authored-by: ArcturusZhang <dapzhang@microsoft.com>
Co-authored-by: Jorge Herrera <69991673+herreraj-ms@users.noreply.github.com>
Co-authored-by: Jorge Herrera <herreraj@microsoft.com>
  • Loading branch information
4 people authored Mar 30, 2022
1 parent e43e772 commit 83f6c7b
Show file tree
Hide file tree
Showing 2 changed files with 153 additions and 2 deletions.
79 changes: 77 additions & 2 deletions specification/monitor/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down Expand Up @@ -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
Expand All @@ -48,6 +53,7 @@ These settings apply only when `--tag=package-2017-09 --go` is specified on the
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag) == 'package-2017-09' && $(go)
namespace: insights
output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2017-05-01-preview/$(namespace)
```

Expand All @@ -57,6 +63,7 @@ These settings apply only when `--tag=package-2018-03 --go` is specified on the
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag) == 'package-2018-03' && $(go)
namespace: insights
output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2018-03-01/$(namespace)
```

Expand All @@ -66,6 +73,7 @@ These settings apply only when `--tag=package-2018-09 --go` is specified on the
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag) == 'package-2018-09' && $(go)
namespace: insights
output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2018-09-01/$(namespace)
```

Expand All @@ -75,6 +83,7 @@ These settings apply only when `--tag=package-2018-11-preview --go` is specified
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag) == 'package-2018-11-preview' && $(go)
namespace: insights
output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2018-11-01-preview/$(namespace)
```

Expand All @@ -84,6 +93,7 @@ These settings apply only when `--tag=package-2019-03 --go` is specified on the
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag) == 'package-2019-03' && $(go)
namespace: insights
output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2019-03-01/$(namespace)
```

Expand All @@ -93,6 +103,7 @@ These settings apply only when `--tag=package-2019-06 --go` is specified on the
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag) == 'package-2019-06' && $(go)
namespace: insights
output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2019-06-01/$(namespace)
```

Expand All @@ -102,6 +113,7 @@ These settings apply only when `--tag=package-2019-11 --go` is specified on the
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag) == 'package-2019-11' && $(go)
namespace: insights
output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2019-11-01-preview/$(namespace)
```

Expand All @@ -111,6 +123,7 @@ These settings apply only when `--tag=package-2020-10-only --go` is specified on
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag) == 'package-2020-10-only' && $(go)
namespace: insights
output-folder: $(go-sdk-folder)/services/monitor/mgmt/2020-10-01/$(namespace)
```

Expand All @@ -120,6 +133,7 @@ These settings apply only when `--tag=package-2021-07 --go` is specified on the
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag) == 'package-2021-07' && $(go)
namespace: insights
output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2021-07-01-preview/$(namespace)
```

Expand All @@ -129,5 +143,66 @@ These settings apply only when `--tag=package-2021-09 --go` is specified on the
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag) == 'package-2021-09' && $(go)
namespace: insights
output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2021-09-01-preview/$(namespace)
```
```

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

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

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

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

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

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

``` yaml $(tag) == 'package-2016-03-preview-monitorlegacy' && $(go)
namespace: monitorlegacy
output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2016-03-01-preview/$(namespace)
```
76 changes: 76 additions & 0 deletions specification/monitor/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83f6c7b

Please sign in to comment.