Skip to content

Commit eebf237

Browse files
ArcturusZhangLeiWang3
authored andcommitted
Add latest version of monitor to go track 1 SDK (Azure#17128)
* upgrade one api-version and add to go, see what happens * fix monitor generation in track 1 * fix the condition
1 parent fb7f80b commit eebf237

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

specification/monitor/resource-manager/readme.go.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ batch:
3939
- tag: package-2019-11
4040
- tag: package-2020-10-only
4141
- tag: package-2021-07
42+
- tag: package-2021-09
4243
```
4344
4445
### Tag: package-2017-09 and go
@@ -120,4 +121,13 @@ Please also specify `--go-sdk-folder=<path to the root directory of your azure-s
120121

121122
``` yaml $(tag) == 'package-2021-07' && $(go)
122123
output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2021-07-01-preview/$(namespace)
124+
```
125+
126+
### Tag: package-2021-09 and go
127+
128+
These settings apply only when `--tag=package-2021-09 --go` is specified on the command line.
129+
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
130+
131+
``` yaml $(tag) == 'package-2021-09' && $(go)
132+
output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2021-09-01-preview/$(namespace)
123133
```

specification/monitor/resource-manager/readme.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ input-file:
6767
- Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json
6868
- Microsoft.Insights/preview/2018-11-27-preview/vmInsightsOnboarding_API.json
6969
- Microsoft.Insights/preview/2019-10-17-preview/privateLinkScopes_API.json
70-
- Microsoft.Insights/stable/2017-04-01/activityLogAlerts_API.json
70+
- Microsoft.Insights/stable/2020-10-01/activityLogAlerts_API.json
7171
- Microsoft.Insights/stable/2021-04-01/dataCollectionEndpoints_API.json
7272
- Microsoft.Insights/stable/2021-04-01/dataCollectionRuleAssociations_API.json
7373
- Microsoft.Insights/stable/2021-04-01/dataCollectionRules_API.json
@@ -898,7 +898,9 @@ directive:
898898
reason: 'Operations API is defined in a separate swagger spec for Microsoft.Insights namespace (https://github.com/Azure/azure-rest-api-specs/blob/master/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/operations_API.json)'
899899
```
900900

901-
``` yaml ($(go) && !$(track2) && $(tag) == 'package-2021-07') || $(csharp) || $(validation)
901+
This section is a temporary solution to resolve the failure in those pipeline that is still using modeler v1.
902+
903+
``` yaml ($(go) && !$(track2) && ($(tag) == 'package-2021-07' || $(tag) == 'package-2021-09')) || $(csharp) || $(validation)
902904
directive:
903905
- from: activityLogAlerts_API.json
904906
where: $.definitions

0 commit comments

Comments
 (0)