Skip to content

Commit 9d75071

Browse files
Introduce go SDK track 2 configurations for monitor (#14588)
* introduce monitor track 2 configurations * add directive to solve the duplicate schema error * update package name * append a comment for the reason of directive
1 parent c51580c commit 9d75071

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,27 @@
22

33
These settings apply only when `--go` is specified on the command line.
44

5-
``` yaml $(go)
5+
``` yaml $(go) && !$(track2)
66
go:
77
license-header: MICROSOFT_MIT_NO_VERSION
88
namespace: insights
99
clear-output-folder: true
1010
```
1111
12+
``` yaml $(go) && $(track2)
13+
license-header: MICROSOFT_MIT_NO_VERSION
14+
module-name: sdk/monitor/armmonitor
15+
module: github.com/Azure/azure-sdk-for-go/$(module-name)
16+
output-folder: $(go-sdk-folder)/$(module-name)
17+
azure-arm: true
18+
19+
directive:
20+
- from: scheduledQueryRule_API.json # this is to resolve the duplicated schema issue in this swagger
21+
where: "$.definitions.Resource"
22+
transform: >
23+
$["x-ms-client-name"] = "TrackedEntityResource";
24+
```
25+
1226
### Go multi-api
1327
1428
``` yaml $(go) && $(multiapi)

0 commit comments

Comments
 (0)