-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Fix readme.go.md in compute RP #14631
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
Changes from 3 commits
3dc479a
2181492
67dbeba
4be9c5e
90982d0
ecf713f
7d45eb6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
|
|
||
| These settings apply only when `--go` is specified on the command line. | ||
|
|
||
| ```yaml $(go) && !(track2) | ||
| ```yaml $(go) && !$(track2) | ||
| go: | ||
| license-header: MICROSOFT_MIT_NO_VERSION | ||
| clear-output-folder: true | ||
|
|
@@ -16,15 +16,6 @@ directive: | |
| $.push('DummyOrchestrationServiceName'); | ||
| } | ||
| return $; | ||
|
|
||
| - from: source-file-go | ||
| where: $ | ||
| transform: >- | ||
| return $. | ||
| replace(/\/\/ DummyOrchestrationServiceName .../g,''). | ||
| replace(/DummyOrchestrationServiceName OrchestrationServiceNames = "DummyOrchestrationServiceName"\n/g,''). | ||
| replace(/,DummyOrchestrationServiceName/,''). | ||
| replace(/, 'DummyOrchestrationServiceName'/,''); | ||
| ``` | ||
|
|
||
| ``` yaml $(go) && $(track2) | ||
|
|
@@ -35,6 +26,15 @@ output-folder: $(go-sdk-folder)/$(module-name) | |
| azure-arm: true | ||
|
|
||
| directive: | ||
| # dynamically add a DummyOrchestrationServiceName value to the enum | ||
| - from: compute.json | ||
| where: $..enum | ||
| transform: >- | ||
| if( $.length === 1 && $[0] === "AutomaticRepairs") { | ||
| $.push('DummyOrchestrationServiceName'); | ||
|
||
| } | ||
| return $; | ||
|
|
||
| - from: disk.json | ||
| where: "$.definitions.PurchasePlan" | ||
| transform: > | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we don't need this any more for track 1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do not need this anymore. Once the enum entry was added into the modeler, the generator can handle it properly. We do not need replace the generated code anymore.